Back to Seed Clases

GIRepository


Classes

Interfaces

Structs

Unions

Enums

Struct GIRepository.BaseInfo

Import line: GIRepository = imports.gi.GIRepository;
GIR File: GIRepository-2.0.gir
C documentation: GIRepository
Struct : BaseInfo
GIBaseInfo is the common base struct of all other *Info structs
accessible through the GIRepository API.
All other structs can be casted to a GIBaseInfo, for instance:

Casting a <b>GIFunctionInfo</b> to <b>GIBaseInfo</b>

GIFunctionInfo *function_info = ...;
GIBaseInfo *info = (GIBaseInfo*)function_info;


Most GIRepository APIs returning a GIBaseInfo is actually creating a new struct, in other
words, g_base_info_unref() has to be called when done accessing the data.
GIBaseInfos are normally accessed by calling either
g_irepository_find_by_name(), g_irepository_find_by_gtype() or g_irepository_get_info().

Getting the Button of the Gtk typelib

GIBaseInfo *button_info = g_irepository_find_by_name(NULL, "Gtk", "Button");
... use button_info ...
g_base_info_unref(button_info);



Struct hierarchy

GIBaseInfo
+----GIArgInfo
+----GICallableInfo
+----GIConstantInfo
+----GIErrorDomainInfo
+----GIFieldInfo
+----GIPropertyInfo
+----GIRegisteredTypeInfo
+----GITypeInfo

Properties
None
Methods / Constructors
Method / Constructor Defined By
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
GIRepository
Method
GIRepository.arg_info_get_closure (BaseInfo info) : gint32
Obtain the index of the user data argument.
GIRepository
Method
GIRepository.arg_info_get_destroy (BaseInfo info) : gint32
Obtains the index of the GDestroyNotify argument.
GIRepository
Method
GIRepository.arg_info_get_direction (BaseInfo info) : GIRepository.Direction
Obtain the direction of the argument.
GIRepository
Method
GIRepository.arg_info_get_ownership_transfer (BaseInfo info) : GIRepository.Transfer
Obtain the ownership transfer for this argument.
GIRepository
Method
GIRepository.arg_info_get_scope (BaseInfo info) : GIRepository.ScopeType
Obtain the scope type for this argument.
GIRepository
Method
GIRepository.arg_info_get_type (BaseInfo info) : GIRepository.BaseInfo
Obtain the type information for info.
GIRepository
Method
GIRepository.arg_info_is_caller_allocates (BaseInfo info) : gboolean
Obtain if the argument is a pointer to a struct or object that will
receive an output of a function.
GIRepository
Method
GIRepository.arg_info_is_optional (BaseInfo info) : gboolean
Obtain if the argument is optional.
GIRepository
Method
GIRepository.arg_info_is_return_value (BaseInfo info) : gboolean
Obtain if the argument is a return value.
GIRepository
Method
GIRepository.arg_info_load_type (BaseInfo info) : GIRepository.BaseInfo
Obtain information about a the type of given argument info; this
function is a variant of g_arg_info_get_type() designed for stack
allocation.
GIRepository
Method
GIRepository.arg_info_may_be_null (BaseInfo info) : gboolean
Obtain if the argument accepts NULL.
GIRepository
Method
GIRepository.base_info_get_type (BaseInfo info) : GIRepository.InfoType
Obtain the info type of the GIBaseInfo.
GIRepository
Method
GIRepository.callable_info_get_arg (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain information about a particular argument of this callable.
GIRepository
Method
GIRepository.callable_info_get_caller_owns (BaseInfo info) : GIRepository.Transfer
See whether the caller owns the return value of this callable.
GIRepository
Method
GIRepository.callable_info_get_n_args (BaseInfo info) : gint32
Obtain the number of arguments (both IN and OUT) for this callable.
GIRepository
Method
GIRepository.callable_info_get_return_attribute (BaseInfo info, String name) : String
Retrieve an arbitrary attribute associated with the return value.
GIRepository
Method
GIRepository.callable_info_get_return_type (BaseInfo info) : GIRepository.BaseInfo
Obtain the return type of a callable item as a GITypeInfo.
GIRepository
Method
GIRepository.callable_info_iterate_return_attributes (BaseInfo info, AttributeIter iterator, Object out_values) : gboolean
Iterate over all attributes associated with the return value.
GIRepository
Method
GIRepository.callable_info_load_arg (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain information about a particular argument of this callable; this
function is a variant of g_callable_info_get_arg() designed for stack
allocation.
GIRepository
Method
GIRepository.callable_info_load_return_type (BaseInfo info) : GIRepository.BaseInfo
Obtain information about a return value of callable; this
function is a variant of g_callable_info_get_return_type() designed for stack
allocation.
GIRepository
Method
GIRepository.callable_info_may_return_null (BaseInfo info) : gboolean
See if a callable could return NULL.
GIRepository
Method
GIRepository.constant_info_get_type (BaseInfo info) : GIRepository.BaseInfo
Obtain the type of the constant as a GITypeInfo.
GIRepository
Method
GIRepository.constant_info_get_value (BaseInfo info, Object out_values) : gint32
Obtain the value associated with the GIConstantInfo and store it in the
The size of the constant value stored in argument will be returned.
GIRepository
Method
GIRepository.enum_info_get_n_values (BaseInfo info) : gint32
GIRepository
Method
GIRepository.enum_info_get_storage_type (BaseInfo info) : GIRepository.TypeTag
Obtain the tag of the type used for the enum in the C ABI.
GIRepository
Method
GIRepository.enum_info_get_value (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain a value for this enumeration.
GIRepository
Method
GIRepository.error_domain_info_get_codes (BaseInfo info) : GIRepository.BaseInfo
Obtain the enum containing all the error codes for this error domain.
GIRepository
Method
GIRepository.error_domain_info_get_quark (BaseInfo info) : String
Obtain a string representing the quark for this error domain.
GIRepository
Method
GIRepository.field_info_get_flags (BaseInfo info) : GIRepository.FieldInfoFlags
Obtain the flags for this GIFieldInfo.
GIRepository
Method
GIRepository.field_info_get_offset (BaseInfo info) : gint32
Obtain the offset in bits of the field member, this is relative
to the beginning of the struct or union.
GIRepository
Method
GIRepository.field_info_get_size (BaseInfo info) : gint32
Obtain the size in bits of the field member, this is how
much space you need to allocate to store the field.
GIRepository
Method
GIRepository.field_info_get_type (BaseInfo info) : GIRepository.BaseInfo
Obtain the type of a field as a GITypeInfo.
GIRepository
Method
GIRepository.function_info_get_flags (BaseInfo info) : GIRepository.FunctionInfoFlags
Obtain the GIFunctionInfoFlags for the info.
GIRepository
Method
GIRepository.function_info_get_property (BaseInfo info) : GIRepository.BaseInfo
Obtain the property associated with this GIFunctionInfo.
GIRepository
Method
GIRepository.function_info_get_symbol (BaseInfo info) : String
Obtain the symbol of the function.
GIRepository
Method
GIRepository.function_info_get_vfunc (BaseInfo info) : GIRepository.BaseInfo
Obtain the virtual function associated with this GIFunctionInfo.
GIRepository
Method
GIRepository.info_new (InfoType type, BaseInfo container, Typelib typelib, guint32 offset) : GIRepository.BaseInfo
GIRepository
Method
GIRepository.interface_info_find_method (BaseInfo info, String name) : GIRepository.BaseInfo
Obtain a method of the interface type given a name.
GIRepository
Method
GIRepository.interface_info_find_vfunc (BaseInfo info, String name) : GIRepository.BaseInfo
Locate a virtual function slot with name name.
GIRepository
Method
GIRepository.interface_info_get_constant (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an interface type constant at index n.
GIRepository
Method
GIRepository.interface_info_get_iface_struct (BaseInfo info) : GIRepository.BaseInfo
Returns the layout C structure associated with this GInterface.
GIRepository
Method
GIRepository.interface_info_get_method (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an interface type method at index n.
GIRepository
Method
GIRepository.interface_info_get_n_constants (BaseInfo info) : gint32
Obtain the number of constants that this interface type has.
GIRepository
Method
GIRepository.interface_info_get_n_methods (BaseInfo info) : gint32
Obtain the number of methods that this interface type has.
GIRepository
Method
GIRepository.interface_info_get_n_prerequisites (BaseInfo info) : gint32
Obtain the number of prerequisites for this interface type.
GIRepository
Method
GIRepository.interface_info_get_n_properties (BaseInfo info) : gint32
Obtain the number of properties that this interface type has.
GIRepository
Method
GIRepository.interface_info_get_n_signals (BaseInfo info) : gint32
Obtain the number of signals that this interface type has.
GIRepository
Method
GIRepository.interface_info_get_n_vfuncs (BaseInfo info) : gint32
Obtain the number of virtual functions that this interface type has.
GIRepository
Method
GIRepository.interface_info_get_prerequisite (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an interface type prerequisites index n.
GIRepository
Method
GIRepository.interface_info_get_property (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an interface type property at index n.
GIRepository
Method
GIRepository.interface_info_get_signal (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an interface type signal at index n.
GIRepository
Method
GIRepository.interface_info_get_vfunc (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an interface type virtual function at index n.
GIRepository
Method
GIRepository.object_info_find_method (BaseInfo info, String name) : GIRepository.BaseInfo
Obtain a method of the object type given a name.
GIRepository
Method
GIRepository.object_info_find_method_using_interfaces (BaseInfo info, String name, Object out_values) : GIRepository.BaseInfo
Obtain a method of the object given a name, searching both the
object info and any interfaces it implements.
GIRepository
Method
GIRepository.object_info_find_vfunc (BaseInfo info, String name) : GIRepository.BaseInfo
Locate a virtual function slot with name name.
GIRepository
Method
GIRepository.object_info_get_abstract (BaseInfo info) : gboolean
Obtain if the object type is an abstract type, eg if it cannot be
instantiated
GIRepository
Method
GIRepository.object_info_get_class_struct (BaseInfo info) : GIRepository.BaseInfo
Every GObject has two structures; an instance structure and a class
structure.
GIRepository
Method
GIRepository.object_info_get_constant (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an object type constant at index n.
GIRepository
Method
GIRepository.object_info_get_field (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an object type field at index n.
GIRepository
Method
GIRepository.object_info_get_fundamental (BaseInfo info) : gboolean
Obtain if the object type is of a fundamental type which is not
G_TYPE_OBJECT.
GIRepository
Method
GIRepository.object_info_get_get_value_function (BaseInfo info) : String
Obtain the symbol name of the function that should be called to convert
an object instance pointer of this object type to a GValue.
GIRepository
Method
GIRepository.object_info_get_interface (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an object type interface at index n.
GIRepository
Method
GIRepository.object_info_get_method (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an object type method at index n.
GIRepository
Method
GIRepository.object_info_get_n_constants (BaseInfo info) : gint32
Obtain the number of constants that this object type has.
GIRepository
Method
GIRepository.object_info_get_n_fields (BaseInfo info) : gint32
Obtain the number of fields that this object type has.
GIRepository
Method
GIRepository.object_info_get_n_interfaces (BaseInfo info) : gint32
Obtain the number of interfaces that this object type has.
GIRepository
Method
GIRepository.object_info_get_n_methods (BaseInfo info) : gint32
Obtain the number of methods that this object type has.
GIRepository
Method
GIRepository.object_info_get_n_properties (BaseInfo info) : gint32
Obtain the number of properties that this object type has.
GIRepository
Method
GIRepository.object_info_get_n_signals (BaseInfo info) : gint32
Obtain the number of signals that this object type has.
GIRepository
Method
GIRepository.object_info_get_n_vfuncs (BaseInfo info) : gint32
Obtain the number of virtual functions that this object type has.
GIRepository
Method
GIRepository.object_info_get_parent (BaseInfo info) : GIRepository.BaseInfo
Obtain the parent of the object type.
GIRepository
Method
GIRepository.object_info_get_property (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an object type property at index n.
GIRepository
Method
GIRepository.object_info_get_ref_function (BaseInfo info) : String
Obtain the symbol name of the function that should be called to ref this
object type.
GIRepository
Method
GIRepository.object_info_get_set_value_function (BaseInfo info) : String
Obtain the symbol name of the function that should be called to convert
set a GValue giving an object instance pointer of this object type.
GIRepository
Method
GIRepository.object_info_get_signal (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an object type signal at index n.
GIRepository
Method
GIRepository.object_info_get_type_init (BaseInfo info) : String
Obtain the function which when called will return the GType
function for which this object type is registered.
GIRepository
Method
GIRepository.object_info_get_type_name (BaseInfo info) : String
Obtain the name of the objects class/type.
GIRepository
Method
GIRepository.object_info_get_unref_function (BaseInfo info) : String
Obtain the symbol name of the function that should be called to unref this
object type.
GIRepository
Method
GIRepository.object_info_get_vfunc (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain an object type virtual function at index n.
GIRepository
Method
GIRepository.property_info_get_flags (BaseInfo info) : GObject.ParamFlags
Obtain the flags for this property info.
GIRepository
Method
GIRepository.property_info_get_ownership_transfer (BaseInfo info) : GIRepository.Transfer
Obtain the ownership transfer for this property.
GIRepository
Method
GIRepository.property_info_get_type (BaseInfo info) : GIRepository.BaseInfo
Obtain the type information for the property info.
GIRepository
Method
GIRepository.registered_type_info_get_g_type (BaseInfo info) : Number
Obtain the GType for this registered type or G_TYPE_NONE which a special meaning.
GIRepository
Method
GIRepository.registered_type_info_get_type_init (BaseInfo info) : String
Obtain the type init function for info.
GIRepository
Method
GIRepository.registered_type_info_get_type_name (BaseInfo info) : String
Obtain the type name of the struct within the GObject type system.
GIRepository
Method
GIRepository.signal_info_get_class_closure (BaseInfo info) : GIRepository.BaseInfo
Obtain the class closure for this signal if one is set.
GIRepository
Method
GIRepository.signal_info_get_flags (BaseInfo info) : GObject.SignalFlags
Obtain the flags for this signal info.
GIRepository
Method
GIRepository.signal_info_true_stops_emit (BaseInfo info) : gboolean
Obtain if the returning true in the signal handler will
stop the emission of the signal.
GIRepository
Method
GIRepository.struct_info_find_method (BaseInfo info, String name) : GIRepository.BaseInfo
Obtain the type information for method named name.
GIRepository
Method
GIRepository.struct_info_get_alignment (BaseInfo info) : guint32
Obtain the required alignment of the structure.
GIRepository
Method
GIRepository.struct_info_get_field (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain the type information for field with specified index.
GIRepository
Method
GIRepository.struct_info_get_method (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain the type information for method with specified index.
GIRepository
Method
GIRepository.struct_info_get_n_fields (BaseInfo info) : gint32
Obtain the number of fields this structure has.
GIRepository
Method
GIRepository.struct_info_get_n_methods (BaseInfo info) : gint32
Obtain the number of methods this structure has.
GIRepository
Method
GIRepository.struct_info_get_size (BaseInfo info) : guint32
Obtain the total size of the structure.
GIRepository
Method
GIRepository.struct_info_is_foreign (BaseInfo info) : gboolean
GIRepository
Method
GIRepository.struct_info_is_gtype_struct (BaseInfo info) : gboolean
Return true if this structure represents the "class structure" for some
GObject or GInterface.
GIRepository
Method
GIRepository.type_info_get_array_fixed_size (BaseInfo info) : gint32
Obtain the fixed array size of the type.
GIRepository
Method
GIRepository.type_info_get_array_length (BaseInfo info) : gint32
Obtain the array length of the type.
GIRepository
Method
GIRepository.type_info_get_array_type (BaseInfo info) : GIRepository.ArrayType
Obtain the array type for this type.
GIRepository
Method
GIRepository.type_info_get_error_domain (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain the error domains at index n for this type.
GIRepository
Method
GIRepository.type_info_get_interface (BaseInfo info) : GIRepository.BaseInfo
For types which have GI_TYPE_TAG_INTERFACE such as GObjects and boxed values,
this function returns full information about the referenced type.
GIRepository
Method
GIRepository.type_info_get_n_error_domains (BaseInfo info) : gint32
Obtain the number of error domains for this type.
GIRepository
Method
GIRepository.type_info_get_param_type (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain the parameter type n.
GIRepository
Method
GIRepository.type_info_get_tag (BaseInfo info) : GIRepository.TypeTag
Obtain the type tag for the type.
GIRepository
Method
GIRepository.type_info_is_pointer (BaseInfo info) : gboolean
Obtain if the type is passed as a reference.
GIRepository
Method
GIRepository.type_info_is_zero_terminated (BaseInfo info) : gboolean
Obtain if the last element of the array is NULL.
GIRepository
Method
GIRepository.union_info_find_method (BaseInfo info, String name) : GIRepository.BaseInfo
Obtain the type information for method named name.
GIRepository
Method
GIRepository.union_info_get_alignment (BaseInfo info) : guint32
Obtain the required alignment of the union.
GIRepository
Method
GIRepository.union_info_get_discriminator (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain discriminator value assigned for n-th union field, i.e.
GIRepository
Method
GIRepository.union_info_get_discriminator_offset (BaseInfo info) : gint32
GIRepository
Method
GIRepository.union_info_get_discriminator_type (BaseInfo info) : GIRepository.BaseInfo
Obtain the type information of the union discriminator.
GIRepository
Method
GIRepository.union_info_get_field (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain the type information for field with specified index.
GIRepository
Method
GIRepository.union_info_get_method (BaseInfo info, gint32 n) : GIRepository.BaseInfo
Obtain the type information for method with specified index.
GIRepository
Method
GIRepository.union_info_get_n_fields (BaseInfo info) : gint32
Obtain the number of fields this union has.
GIRepository
Method
GIRepository.union_info_get_n_methods (BaseInfo info) : gint32
Obtain the number of methods this union has.
GIRepository
Method
GIRepository.union_info_get_size (BaseInfo info) : guint32
Obtain the total size of the union.
GIRepository
Method
GIRepository.union_info_is_discriminated (BaseInfo info) : gboolean
Return true if this union contains discriminator field.
GIRepository
Method
GIRepository.value_info_get_value (BaseInfo info) : gint64
Obtain the enumeration value of the GIValueInfo.
GIRepository
Method
GIRepository.vfunc_info_get_flags (BaseInfo info) : GIRepository.VFuncInfoFlags
Obtain the flags for this virtual function info.
GIRepository
Method
GIRepository.vfunc_info_get_invoker (BaseInfo info) : GIRepository.BaseInfo
If this virtual function has an associated invoker method, this
method will return it.
GIRepository
Method
GIRepository.vfunc_info_get_offset (BaseInfo info) : gint32
Obtain the offset of the function pointer in the class struct.
GIRepository
Method
GIRepository.vfunc_info_get_signal (BaseInfo info) : GIRepository.BaseInfo
Obtain the signal for the virtual function if one is set.
GIRepository.Repository
Method
find_by_gtype (Number gtype) : GIRepository.BaseInfo
Searches all loaded namespaces for a particular GType.
GIRepository.Repository
Method
find_by_name (String namespace_, String name) : GIRepository.BaseInfo
Searches for a particular entry in a namespace.
GIRepository.Repository
Method
get_info (String namespace_, gint32 index) : GIRepository.BaseInfo
This function returns a particular metadata entry in the
given namespace namespace_.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:10:21 GMT+0800 (HKT)