Packages
gobject-introspection-1.0
GI
UnionInfo
find_method
get_alignment
get_copy_function
get_discriminator
get_discriminator_offset
get_discriminator_type
get_field
get_free_function
get_method
get_n_fields
get_n_methods
get_size
is_discriminated
UnionInfo
Object Hierarchy:
GI.UnionInfo
GI.UnionInfo
GI.UnionInfo
GI.BaseInfo
GI.BaseInfo
GI.BaseInfo->GI.UnionInfo
Description:
[
CCode
( type_id =
"g_base_info_gtype_get_type ()"
) ]
[
Compact
]
public
class
UnionInfo
:
BaseInfo
Represents a union.
Namespace:
GI
Package:
gobject-introspection-1.0
Content:
Methods:
public
FunctionInfo
find_method
(
string
name)
Obtain the type information for method named
name
.
public
size_t
get_alignment
()
Obtain the required alignment of the union.
public
unowned
string
?
get_copy_function
()
Retrieves the name of the copy function for
info
, if any is set.
public
ConstantInfo
get_discriminator
(
int
n)
Obtain discriminator value assigned for n-th union field, i.e. n-th union field is the active one if discriminator contains this constant.
public
int
get_discriminator_offset
()
Returns offset of the discriminator field in the structure.
public
TypeInfo
get_discriminator_type
()
Obtain the type information of the union discriminator.
public
FieldInfo
get_field
(
int
n)
Obtain the type information for field with specified index.
public
unowned
string
?
get_free_function
()
Retrieves the name of the free function for
info
, if any is set.
public
FunctionInfo
get_method
(
int
n)
Obtain the type information for method with specified index.
public
int
get_n_fields
()
Obtain the number of fields this union has.
public
int
get_n_methods
()
Obtain the number of methods this union has.
public
size_t
get_size
()
Obtain the total size of the union.
public
bool
is_discriminated
()
Return true if this union contains discriminator field.
Inherited Members:
All known members inherited from class GI.BaseInfo
equal
get_attribute
get_container
get_name
get_namespace
get_type
get_typelib
is_deprecated
iterate_attributes