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


Namespace: GI

Content:

Creation methods:

Methods: