### Class

# GIRepository ObjectInfo

since: 2.80

#### Description [src]

    final class GIRepository.ObjectInfo : GObject.TypeInstance
    {
      /* No available fields */
    }

`GIObjectInfo` represents a classed type.

Classed types in `GType` inherit from `GTypeInstance`; the most common type is `GObject`.

A `GIObjectInfo` doesn’t represent a specific instance of a classed type, instead this represent the object type (i.e. the class).

A `GIObjectInfo` has methods, fields, properties, signals, interfaces, constants and virtual functions.

Available since: 2.80

#### Hierarchy

#### Ancestors

- GIRegisteredTypeInfo
- GIBaseInfo

#### Instance methods

###### gi_object_info_find_method

Obtain a method of the object type given a `name`.

since: 2.80

###### gi_object_info_find_method_using_interfaces

Obtain a method of the object given a `name`, searching both the object `info` and any interfaces it implements.

since: 2.80

###### gi_object_info_find_signal

Obtain a signal of the object type given a `name`.

since: 2.80

###### gi_object_info_find_vfunc

Locate a virtual function slot with name `name`.

since: 2.80

###### gi_object_info_find_vfunc_using_interfaces

Locate a virtual function slot with name `name`, searching both the object `info` and any interfaces it implements.

since: 2.80

###### gi_object_info_get_abstract

Obtain if the object type is an abstract type, i.e. if it cannot be instantiated.

since: 2.80

###### gi_object_info_get_class_struct

Every `GObject` has two structures; an instance structure and a class structure. This function returns the metadata for the class structure.

since: 2.80

###### gi_object_info_get_constant

Obtain an object type constant at index `n`.

since: 2.80

###### gi_object_info_get_field

Obtain an object type field at index `n`.

since: 2.80

###### gi_object_info_get_final

Checks whether the object type is a final type, i.e. if it cannot be derived.

since: 2.80

###### gi_object_info_get_fundamental

Obtain if the object type is of a fundamental type which is not `G_TYPE_OBJECT`.

since: 2.80

###### gi_object_info_get_get_value_function_name

Obtain the symbol name of the function that should be called to convert an object instance pointer of this object type to a `GValue`.

since: 2.80

###### gi_object_info_get_get_value_function_pointer

Obtain a pointer to a function which can be used to extract an instance of this object type out of a `GValue`.

since: 2.80

###### gi_object_info_get_interface

Obtain an object type interface at index `n`.

since: 2.80

###### gi_object_info_get_method

Obtain an object type method at index `n`.

since: 2.80

###### gi_object_info_get_n_constants

Obtain the number of constants that this object type has.

since: 2.80

###### gi_object_info_get_n_fields

Obtain the number of fields that this object type has.

since: 2.80

###### gi_object_info_get_n_interfaces

Obtain the number of interfaces that this object type has.

since: 2.80

###### gi_object_info_get_n_methods

Obtain the number of methods that this object type has.

since: 2.80

###### gi_object_info_get_n_properties

Obtain the number of properties that this object type has.

since: 2.80

###### gi_object_info_get_n_signals

Obtain the number of signals that this object type has.

since: 2.80

###### gi_object_info_get_n_vfuncs

Obtain the number of virtual functions that this object type has.

since: 2.80

###### gi_object_info_get_parent

Obtain the parent of the object type.

since: 2.80

###### gi_object_info_get_property

Obtain an object type property at index `n`.

since: 2.80

###### gi_object_info_get_ref_function_name

Obtain the symbol name of the function that should be called to ref this object type.

since: 2.80

###### gi_object_info_get_ref_function_pointer

Obtain a pointer to a function which can be used to increase the reference count an instance of this object type.

since: 2.80

###### gi_object_info_get_set_value_function_name

Obtain the symbol name of the function that should be called to set a `GValue`, given an object instance pointer of this object type.

since: 2.80

###### gi_object_info_get_set_value_function_pointer

Obtain a pointer to a function which can be used to set a `GValue`, given an instance of this object type.

since: 2.80

###### gi_object_info_get_signal

Obtain an object type signal at index `n`.

since: 2.80

###### gi_object_info_get_type_init_function_name

Obtain the name of the function which, when called, will return the `GType` for this object type.

since: 2.80

###### gi_object_info_get_type_name

Obtain the name of the object’s class/type.

since: 2.80

###### gi_object_info_get_unref_function_name

Obtain the symbol name of the function that should be called to unref this object type.

since: 2.80

###### gi_object_info_get_unref_function_pointer

Obtain a pointer to a function which can be used to decrease the reference count an instance of this object type.

since: 2.80

###### gi_object_info_get_vfunc

Obtain an object type virtual function at index `n`.

since: 2.80

##### Methods inherited from GIRegisteredTypeInfo (4)

###### gi_registered_type_info_get_g_type

Obtain the `GType` for this registered type.

since: 2.80

###### gi_registered_type_info_get_type_init_function_name

Obtain the type init function for `info`.

since: 2.80

###### gi_registered_type_info_get_type_name

Obtain the type name of the struct within the GObject type system.

since: 2.80

###### gi_registered_type_info_is_boxed

Get whether the registered type is a boxed type.

since: 2.80

##### Methods inherited from GIBaseInfo (11)

###### gi_base_info_clear

Clears memory allocated internally by a stack-allocated `GIBaseInfo`.

since: 2.80

###### gi_base_info_equal

Compare two `GIBaseInfo`s.

since: 2.80

###### gi_base_info_get_attribute

Retrieve an arbitrary attribute associated with this node.

since: 2.80

###### gi_base_info_get_container

Obtain the container of the `info`.

since: 2.80

###### gi_base_info_get_name

Obtain the name of the `info`.

since: 2.80

###### gi_base_info_get_namespace

Obtain the namespace of `info`.

since: 2.80

###### gi_base_info_get_typelib

Obtain the typelib this `info` belongs to.

since: 2.80

###### gi_base_info_is_deprecated

Obtain whether the `info` is represents a metadata which is deprecated.

since: 2.80

###### gi_base_info_iterate_attributes

Iterate over all attributes associated with this node.

since: 2.80

###### gi_base_info_ref

Increases the reference count of `info`.

since: 2.80

###### gi_base_info_unref

Decreases the reference count of `info`. When its reference count drops to 0, the info is freed.

since: 2.80