BaseInfo
Object Hierarchy:
GI.BaseInfo
GI.BaseInfo
GI.BaseInfo
Description:
[ CCode ( lower_case_cprefix = "g_base_info_" , lower_case_csuffix = "base_info_gtype" , ref_function = "g_base_info_ref" , type_id = "g_base_info_gtype_get_type ()" , unref_function = "g_base_info_unref" ) ] [ Compact ]public class BaseInfo
GIBaseInfo is the common base struct of all other Info structs accessible through the
Repository API.
All info structures can be cast to a BaseInfo , for instance:
GIFunctionInfo *function_info = ...; GIBaseInfo *info = (GIBaseInfo *) function_info;
Most Repository APIs returning a BaseInfo is actually creating
a new struct; in other words, g_base_info_unref
has to be called when done accessing the data.
BaseInfo structuress are normally accessed by calling either
find_by_name ,
find_by_gtype or get_info .
GIBaseInfo *button_info = g_irepository_find_by_name (NULL , "Gtk" , "Button" );// ... use button_info ... g_base_info_unref (button_info);
typeof (unichar2 )
typeof
(unichar2 )
Hierarchy
GIBaseInfo +---- GIArgInfo +---- GICallableInfo +---- GIConstantInfo +---- GIFieldInfo +---- GIPropertyInfo +---- GIRegisteredTypeInfo +---- GITypeInfo
Content:
Creation methods:
Methods:
public bool equal (BaseInfo info2)
Compare two BaseInfo .
public unowned string get_attribute (string name)
Retrieve an arbitrary attribute associated with this node.
public unowned BaseInfo get_container ()
Obtain the container of the this .
public unowned string get_name ()
Obtain the name of the this .
public unowned string get_namespace ()
Obtain the namespace of this .
public InfoType get_type ()
Obtain the info type of the GIBaseInfo.
public unowned Typelib get_typelib ()
Obtain the typelib this this belongs
to
public bool is_deprecated ()
Obtain whether the this is
represents a metadata which is deprecated or not.
public bool iterate_attributes (ref AttributeIter iterator, out unowned string name, out unowned string value)
Iterate over all attributes associated with this node.