FieldInfo
Object Hierarchy:
Description:
[
CCode ( type_id =
"g_base_info_gtype_get_type ()" ) ]
[
Compact ]
public class FieldInfo :
BaseInfo
A `GIFieldInfo` struct represents a field of a struct, union, or object.
The `GIFieldInfo` is fetched by calling [method@GIRepository.StructInfo.get_field], [method@GIRepository.UnionInfo.get_field] or [
method@GIRepository.ObjectInfo.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: [type@GIRepository.StructInfo], [type@GIRepository.UnionInfo], [type@GIRepository.ObjectInfo]
Content:
Methods:
- public bool get_field (void* mem, Argument value)
Reads a field identified by a FieldInfo
from a C structure or union.
- public FieldInfoFlags get_flags ()
Obtain the flags for this FieldInfo.
- public int get_offset ()
Obtain the offset in bytes of the field member, this is relative to
the beginning of the struct or union.
- public int get_size ()
Obtain the size in bits of the field member, this is how much space
you need to allocate to store the field.
- public TypeInfo get_type ()
Obtain the type of a field as a
TypeInfo.
- public bool set_field (void* mem, Argument value)
Writes a field identified by a FieldInfo to
a C structure or union.
Inherited Members:
All known members inherited from class GI.BaseInfo