GIRepository.StructInfo
Description: Reference for GIRepository.StructInfo

### Class

# GIRepositoryStructInfo

since: 2.80

#### Description [src]

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

`GIStructInfo` represents a generic C structure type.

A structure has methods and fields.

Available since: 2.80

#### Hierarchy

#### Ancestors

- GIRegisteredTypeInfo
- GIBaseInfo

#### Instance methods

###### gi_struct_info_find_field

Obtain the type information for field named `name`.

since: 2.80

###### gi_struct_info_find_method

Obtain the type information for method named `name`.

since: 2.80

###### gi_struct_info_get_alignment

Obtain the required alignment of the structure.

since: 2.80

###### gi_struct_info_get_copy_function_name

Retrieves the name of the copy function for `info`, if any is set.

since: 2.80

###### gi_struct_info_get_field

Obtain the type information for field with specified index.

since: 2.80

###### gi_struct_info_get_free_function_name

Retrieves the name of the free function for `info`, if any is set.

since: 2.80

###### gi_struct_info_get_method

Obtain the type information for method with specified index.

since: 2.80

###### gi_struct_info_get_n_fields

Obtain the number of fields this structure has.

since: 2.80

###### gi_struct_info_get_n_methods

Obtain the number of methods this structure has.

since: 2.80

###### gi_struct_info_get_size

Obtain the total size of the structure.

since: 2.80

###### gi_struct_info_is_foreign

Gets whether the structure is foreign, i.e. if it’s expected to be overridden by a native language binding instead of relying of introspected bindings.

since: 2.80

###### gi_struct_info_is_gtype_struct

Return true if this structure represents the ‘class structure’ for some `GObject` or `GInterface`.

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