|
Data Structures
|
struct |
_GTypeClass |
struct |
_GTypeInstance |
struct |
_GTypeInterface |
struct |
_GTypeQuery |
struct |
_GTypeInfo |
struct |
_GTypeFundamentalInfo |
struct |
_GInterfaceInfo |
struct |
_GTypeValueTable |
Defines
|
#define |
G_TYPE_FUNDAMENTAL(type) (g_type_fundamental (type))
|
#define |
G_TYPE_FUNDAMENTAL_MAX (255 << G_TYPE_FUNDAMENTAL_SHIFT)
|
#define |
G_TYPE_INVALID G_TYPE_MAKE_FUNDAMENTAL (0)
|
#define |
G_TYPE_NONE G_TYPE_MAKE_FUNDAMENTAL (1)
|
#define |
G_TYPE_INTERFACE G_TYPE_MAKE_FUNDAMENTAL (2)
|
#define |
G_TYPE_CHAR G_TYPE_MAKE_FUNDAMENTAL (3)
|
#define |
G_TYPE_UCHAR G_TYPE_MAKE_FUNDAMENTAL (4)
|
#define |
G_TYPE_BOOLEAN G_TYPE_MAKE_FUNDAMENTAL (5)
|
#define |
G_TYPE_INT G_TYPE_MAKE_FUNDAMENTAL (6)
|
#define |
G_TYPE_UINT G_TYPE_MAKE_FUNDAMENTAL (7)
|
#define |
G_TYPE_LONG G_TYPE_MAKE_FUNDAMENTAL (8)
|
#define |
G_TYPE_ULONG G_TYPE_MAKE_FUNDAMENTAL (9)
|
#define |
G_TYPE_INT64 G_TYPE_MAKE_FUNDAMENTAL (10)
|
#define |
G_TYPE_UINT64 G_TYPE_MAKE_FUNDAMENTAL (11)
|
#define |
G_TYPE_ENUM G_TYPE_MAKE_FUNDAMENTAL (12)
|
#define |
G_TYPE_FLAGS G_TYPE_MAKE_FUNDAMENTAL (13)
|
#define |
G_TYPE_FLOAT G_TYPE_MAKE_FUNDAMENTAL (14)
|
#define |
G_TYPE_DOUBLE G_TYPE_MAKE_FUNDAMENTAL (15)
|
#define |
G_TYPE_STRING G_TYPE_MAKE_FUNDAMENTAL (16)
|
#define |
G_TYPE_POINTER G_TYPE_MAKE_FUNDAMENTAL (17)
|
#define |
G_TYPE_BOXED G_TYPE_MAKE_FUNDAMENTAL (18)
|
#define |
G_TYPE_PARAM G_TYPE_MAKE_FUNDAMENTAL (19)
|
#define |
G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20)
|
#define |
G_TYPE_FUNDAMENTAL_SHIFT (2)
|
#define |
G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT))
|
#define |
G_TYPE_RESERVED_GLIB_FIRST (21)
|
#define |
G_TYPE_RESERVED_GLIB_LAST (31)
|
#define |
G_TYPE_RESERVED_BSE_FIRST (32)
|
#define |
G_TYPE_RESERVED_BSE_LAST (48)
|
#define |
G_TYPE_RESERVED_USER_FIRST (49)
|
#define |
G_TYPE_IS_FUNDAMENTAL(type) ((type) <= G_TYPE_FUNDAMENTAL_MAX)
|
#define |
G_TYPE_IS_DERIVED(type) ((type) > G_TYPE_FUNDAMENTAL_MAX)
|
#define |
G_TYPE_IS_INTERFACE(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_INTERFACE)
|
#define |
G_TYPE_IS_CLASSED(type) (g_type_test_flags ((type), G_TYPE_FLAG_CLASSED))
|
#define |
G_TYPE_IS_INSTANTIATABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_INSTANTIATABLE))
|
#define |
G_TYPE_IS_DERIVABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_DERIVABLE))
|
#define |
G_TYPE_IS_DEEP_DERIVABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_DEEP_DERIVABLE))
|
#define |
G_TYPE_IS_ABSTRACT(type) (g_type_test_flags ((type), G_TYPE_FLAG_ABSTRACT))
|
#define |
G_TYPE_IS_VALUE_ABSTRACT(type) (g_type_test_flags ((type), G_TYPE_FLAG_VALUE_ABSTRACT))
|
#define |
G_TYPE_IS_VALUE_TYPE(type) (g_type_check_is_value_type (type))
|
#define |
G_TYPE_HAS_VALUE_TABLE(type) (g_type_value_table_peek (type) != NULL)
|
#define |
G_TYPE_CHECK_INSTANCE(instance) (_G_TYPE_CHI ((GTypeInstance*) (instance)))
|
#define |
G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type))
|
#define |
G_TYPE_CHECK_INSTANCE_TYPE(instance, g_type) (_G_TYPE_CIT ((instance), (g_type)))
|
#define |
G_TYPE_INSTANCE_GET_CLASS(instance, g_type, c_type) (_G_TYPE_IGC ((instance), (g_type), c_type))
|
#define |
G_TYPE_INSTANCE_GET_INTERFACE(instance, g_type, c_type) (_G_TYPE_IGI ((instance), (g_type), c_type))
|
#define |
G_TYPE_CHECK_CLASS_CAST(g_class, g_type, c_type) (_G_TYPE_CCC ((g_class), (g_type), c_type))
|
#define |
G_TYPE_CHECK_CLASS_TYPE(g_class, g_type) (_G_TYPE_CCT ((g_class), (g_type)))
|
#define |
G_TYPE_CHECK_VALUE(value) (_G_TYPE_CHV ((value)))
|
#define |
G_TYPE_CHECK_VALUE_TYPE(value, g_type) (_G_TYPE_CVH ((value), (g_type)))
|
#define |
G_TYPE_FROM_INSTANCE(instance) (G_TYPE_FROM_CLASS (((GTypeInstance*) (instance))->g_class))
|
#define |
G_TYPE_FROM_CLASS(g_class) (((GTypeClass*) (g_class))->g_type)
|
#define |
G_TYPE_FROM_INTERFACE(g_iface) (((GTypeInterface*) (g_iface))->g_type)
|
#define |
G_TYPE_INSTANCE_GET_PRIVATE(instance, g_type, c_type) ((c_type*) g_type_instance_get_private ((GTypeInstance*) (instance), (g_type)))
|
#define |
G_DEFINE_TYPE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
|
#define |
G_DEFINE_TYPE_WITH_CODE(TN, t_n, T_P, _C_) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, _C_)
|
#define |
G_DEFINE_ABSTRACT_TYPE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, {})
|
#define |
G_DEFINE_ABSTRACT_TYPE_WITH_CODE(TN, t_n, T_P, _C_) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, _C_)
|
#define |
G_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init)
|
#define |
G_DEFINE_TYPE_EXTENDED(TypeName, type_name, TYPE_PARENT, flags, CODE)
|
#define |
_G_TYPE_CIC(ip, gt, ct) ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
|
#define |
_G_TYPE_CCC(cp, gt, ct) ((ct*) g_type_check_class_cast ((GTypeClass*) cp, gt))
|
#define |
_G_TYPE_CHI(ip) (g_type_check_instance ((GTypeInstance*) ip))
|
#define |
_G_TYPE_CHV(vl) (g_type_check_value ((GValue*) vl))
|
#define |
_G_TYPE_IGC(ip, gt, ct) ((ct*) (((GTypeInstance*) ip)->g_class))
|
#define |
_G_TYPE_IGI(ip, gt, ct) ((ct*) g_type_interface_peek (((GTypeInstance*) ip)->g_class, gt))
|
#define |
_G_TYPE_CIT(ip, gt) (g_type_check_instance_is_a ((GTypeInstance*) ip, gt))
|
#define |
_G_TYPE_CCT(cp, gt) (g_type_check_class_is_a ((GTypeClass*) cp, gt))
|
#define |
_G_TYPE_CVH(vl, gt) (g_type_check_value_holds ((GValue*) vl, gt))
|
#define |
G_TYPE_FLAG_RESERVED_ID_BIT ((GType) (1 << 0))
|
Typedefs
|
typedef gulong
|
GType |
typedef _GValue
|
GValue |
typedef _GTypeCValue
|
GTypeCValue |
typedef _GTypePlugin |
GTypePlugin |
typedef _GTypeClass
|
GTypeClass |
typedef _GTypeInterface
|
GTypeInterface |
typedef _GTypeInstance
|
GTypeInstance |
typedef _GTypeInfo
|
GTypeInfo |
typedef _GTypeFundamentalInfo
|
GTypeFundamentalInfo |
typedef _GInterfaceInfo
|
GInterfaceInfo |
typedef _GTypeValueTable
|
GTypeValueTable |
typedef _GTypeQuery
|
GTypeQuery |
typedef void(* |
GBaseInitFunc )(gpointer g_class)
|
typedef void(* |
GBaseFinalizeFunc )(gpointer g_class)
|
typedef void(* |
GClassInitFunc )(gpointer g_class, gpointer class_data)
|
typedef void(* |
GClassFinalizeFunc )(gpointer g_class, gpointer class_data)
|
typedef void(* |
GInstanceInitFunc )(GTypeInstance *instance, gpointer g_class)
|
typedef void(* |
GInterfaceInitFunc )(gpointer g_iface, gpointer iface_data)
|
typedef void(* |
GInterfaceFinalizeFunc )(gpointer g_iface, gpointer iface_data)
|
typedef gboolean(*
|
GTypeClassCacheFunc )(gpointer cache_data, GTypeClass *g_class)
|
typedef void(* |
GTypeInterfaceCheckFunc )(gpointer check_data, gpointer g_iface)
|
Enumerations
|
enum |
GTypeDebugFlags { G_TYPE_DEBUG_NONE = 0,
G_TYPE_DEBUG_OBJECTS = 1 << 0,
G_TYPE_DEBUG_SIGNALS = 1 << 1,
G_TYPE_DEBUG_MASK = 0x03
}
|
enum |
GTypeFundamentalFlags { G_TYPE_FLAG_CLASSED = (1 << 0),
G_TYPE_FLAG_INSTANTIATABLE = (1 << 1),
G_TYPE_FLAG_DERIVABLE = (1 << 2),
G_TYPE_FLAG_DEEP_DERIVABLE = (1 << 3)
}
|
enum |
GTypeFlags { G_TYPE_FLAG_ABSTRACT = (1 << 4),
G_TYPE_FLAG_VALUE_ABSTRACT = (1 << 5)
}
|
Functions
|
IMPORT_C void |
g_type_init (void)
|
IMPORT_C void |
g_type_init_with_debug_flags (GTypeDebugFlags debug_flags)
|
IMPORT_C G_CONST_RETURN gchar *
|
g_type_name (GType type)
|
IMPORT_C GQuark
|
g_type_qname (GType type)
|
IMPORT_C GType
|
g_type_from_name (const gchar *name)
|
IMPORT_C GType
|
g_type_parent (GType type)
|
IMPORT_C guint
|
g_type_depth (GType type)
|
IMPORT_C GType
|
g_type_next_base (GType leaf_type, GType root_type)
|
IMPORT_C gboolean
|
g_type_is_a (GType type, GType is_a_type)
|
IMPORT_C gpointer
|
g_type_class_ref (GType type)
|
IMPORT_C gpointer
|
g_type_class_peek (GType type)
|
IMPORT_C gpointer
|
g_type_class_peek_static (GType type)
|
IMPORT_C void |
g_type_class_unref (gpointer g_class)
|
IMPORT_C gpointer
|
g_type_class_peek_parent (gpointer g_class)
|
IMPORT_C gpointer
|
g_type_interface_peek (gpointer instance_class, GType iface_type)
|
IMPORT_C gpointer
|
g_type_interface_peek_parent (gpointer g_iface)
|
IMPORT_C gpointer
|
g_type_default_interface_ref (GType g_type)
|
IMPORT_C gpointer
|
g_type_default_interface_peek (GType g_type)
|
IMPORT_C void |
g_type_default_interface_unref (gpointer g_iface)
|
IMPORT_C GType *
|
g_type_children (GType type, guint *n_children)
|
IMPORT_C GType *
|
g_type_interfaces (GType type, guint *n_interfaces)
|
IMPORT_C void |
g_type_set_qdata (GType type, GQuark quark, gpointer data)
|
IMPORT_C gpointer
|
g_type_get_qdata (GType type, GQuark quark)
|
IMPORT_C void |
g_type_query (GType type, GTypeQuery *query)
|
IMPORT_C GType
|
g_type_register_static (GType parent_type, const gchar *type_name, const GTypeInfo *info, GTypeFlags flags)
|
IMPORT_C GType
|
g_type_register_dynamic (GType parent_type, const gchar *type_name, GTypePlugin *plugin, GTypeFlags flags)
|
IMPORT_C GType
|
g_type_register_fundamental (GType type_id, const gchar *type_name, const GTypeInfo *info, const GTypeFundamentalInfo *finfo, GTypeFlags flags)
|
IMPORT_C void |
g_type_add_interface_static (GType instance_type, GType interface_type, const GInterfaceInfo *info)
|
IMPORT_C void |
g_type_add_interface_dynamic (GType instance_type, GType interface_type, GTypePlugin *plugin)
|
IMPORT_C void |
g_type_interface_add_prerequisite (GType interface_type, GType prerequisite_type)
|
IMPORT_C GType *
|
g_type_interface_prerequisites (GType interface_type, guint *n_prerequisites)
|
IMPORT_C void |
g_type_class_add_private (gpointer g_class, gsize private_size)
|
IMPORT_C gpointer
|
g_type_instance_get_private (GTypeInstance *instance, GType private_type)
|
IMPORT_C GTypePlugin *
|
g_type_get_plugin (GType type)
|
IMPORT_C GTypePlugin *
|
g_type_interface_get_plugin (GType instance_type, GType interface_type)
|
IMPORT_C GType
|
g_type_fundamental_next (void)
|
IMPORT_C GType
|
g_type_fundamental (GType type_id)
|
IMPORT_C GTypeInstance *
|
g_type_create_instance (GType type)
|
IMPORT_C void |
g_type_free_instance (GTypeInstance *instance)
|
IMPORT_C void |
g_type_add_class_cache_func (gpointer cache_data, GTypeClassCacheFunc cache_func)
|
IMPORT_C void |
g_type_remove_class_cache_func (gpointer cache_data, GTypeClassCacheFunc cache_func)
|
IMPORT_C void |
g_type_class_unref_uncached (gpointer g_class)
|
IMPORT_C void |
g_type_add_interface_check (gpointer check_data, GTypeInterfaceCheckFunc check_func)
|
IMPORT_C void |
g_type_remove_interface_check (gpointer check_data, GTypeInterfaceCheckFunc check_func)
|
IMPORT_C GTypeValueTable *
|
g_type_value_table_peek (GType type)
|
IMPORT_C gboolean
|
g_type_check_instance (GTypeInstance *instance)
|
IMPORT_C GTypeInstance *
|
g_type_check_instance_cast (GTypeInstance *instance, GType iface_type)
|
IMPORT_C gboolean
|
g_type_check_instance_is_a (GTypeInstance *instance, GType iface_type)
|
IMPORT_C GTypeClass *
|
g_type_check_class_cast (GTypeClass *g_class, GType is_a_type)
|
IMPORT_C gboolean
|
g_type_check_class_is_a (GTypeClass *g_class, GType is_a_type)
|
IMPORT_C gboolean
|
g_type_check_is_value_type (GType type)
|
IMPORT_C gboolean
|
g_type_check_value (GValue *value)
|
IMPORT_C gboolean
|
g_type_check_value_holds (GValue *value, GType type)
|
IMPORT_C gboolean
|
g_type_test_flags (GType type, guint flags)
|
G_CONST_RETURN gchar *
|
g_type_name_from_instance (GTypeInstance *instance)
|
G_CONST_RETURN gchar *
|
g_type_name_from_class (GTypeClass *g_class)
|
void |
g_value_c_init (void) G_GNUC_INTERNAL
|
void |
g_value_types_init (void) G_GNUC_INTERNAL
|
void |
g_enum_types_init (void) G_GNUC_INTERNAL
|
void |
g_param_type_init (void) G_GNUC_INTERNAL
|
void |
g_boxed_type_init (void) G_GNUC_INTERNAL
|
void |
g_object_type_init (void) G_GNUC_INTERNAL
|
void |
g_param_spec_types_init (void) G_GNUC_INTERNAL
|
void |
g_value_transforms_init (void) G_GNUC_INTERNAL
|
void |
g_signal_init (void) G_GNUC_INTERNAL
|
Variables
|
GTypeDebugFlags
|
_g_type_debug_flags |