Class

GIRepositoryRegisteredTypeInfo

since: 2.80

Description [src]

abstract class GIRepository.RegisteredTypeInfo : GObject.TypeInstance
{
  /* No available fields */
}

GIRegisteredTypeInfo represents an entity with a GType associated.

Could be either a GIEnumInfo, GIInterfaceInfo, GIObjectInfo, GIStructInfo or a GIUnionInfo.

A registered type info struct has a name and a type function.

To get the name call gi_registered_type_info_get_type_name(). Most users want to call gi_registered_type_info_get_g_type() and don’t worry about the rest of the details.

If the registered type is a subtype of G_TYPE_BOXED, gi_registered_type_info_is_boxed() will return true, and gi_registered_type_info_get_type_name() is guaranteed to return a non-NULL value. This is relevant for the GIStructInfo and GIUnionInfo subclasses.

Available since: 2.80

Ancestors

Instance methods

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 GIBaseInfos.

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