Class

GIRepositoryFieldInfo

since: 2.80

Description

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

A GIFieldInfo struct represents a field of a struct, union, or object.

The GIFieldInfo is fetched by calling gi_struct_info_get_field(), gi_union_info_get_field() or gi_object_info_get_field().

A field has a size, type and a struct offset associated and a set of flags, which are currently GI_FIELD_IS_READABLE or GI_FIELD_IS_WRITABLE.

See also: GIStructInfo, GIUnionInfo, GIObjectInfo

Available since: 2.80

Ancestors

Instance methods

gi_field_info_get_field

Reads a field identified by a GIFieldInfo from a C structure or union.

since: 2.80

gi_field_info_get_flags

Obtain the flags for this GIFieldInfo. See GIFieldInfoFlags for possible flag values.

since: 2.80

gi_field_info_get_offset

Obtain the offset of the field member, in bytes. This is relative to the beginning of the struct or union.

since: 2.80

gi_field_info_get_size

Obtain the size of the field member, in bits. This is how much space you need to allocate to store the field.

since: 2.80

gi_field_info_get_type_info

Obtain the type of a field as a GITypeInfo.

since: 2.80

gi_field_info_set_field

Writes a field identified by a GIFieldInfo to a C structure or union.

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