g_type_class_unref
g_type_class_peek_parent
g_type_class_add_private
-g_type_class_get_private
g_type_add_class_private
g_type_interface_peek
g_type_interface_peek_parent
g_type_check_value
g_type_check_value_holds
g_type_instance_get_private
+g_type_class_get_private
g_type_test_flags
g_type_name_from_instance
g_type_name_from_class
@flags: Bitwise combination of #GTypeFlags and #GTypeFundamentalFlags.
@Returns: #TRUE if all @flags are set for @type, #FALSE otherwise.
+<!-- ##### FUNCTION g_type_class_get_private ##### -->
+<para>
+
+</para>
+
+@klass:
+@private_type:
+@Returns:
+
<!-- ##### FUNCTION g_type_instance_is_a ##### -->
<para>
Determines if @instance adheres to the interface exported
* the type and all of its parent types are allocated
* sequentially in the same memory block as the public
* structures. This function should be called in the
- * type's class_init() function. The private structure can
- * be retrieved using the G_TYPE_INSTANCE_GET_PRIVATE() macro.
- * The following example shows attaching a private structure
- * <structname>MyObjectPrivate</structname> to an object
- * <structname>MyObject</structname> defined in the standard GObject
- * fashion.
+ * type's class_init() function.
*
- * |[
- * typedef struct _MyObjectPrivate MyObjectPrivate;
- *
- * struct _MyObjectPrivate {
- * int some_field;
- * };
- *
- * #define MY_OBJECT_GET_PRIVATE(o) \
- * (G_TYPE_INSTANCE_GET_PRIVATE ((o), MY_TYPE_OBJECT, MyObjectPrivate))
- *
- * static void
- * my_object_class_init (MyObjectClass *klass)
- * {
- * g_type_class_add_private (klass, sizeof (MyObjectPrivate));
- * }
- *
- * static int
- * my_object_get_some_field (MyObject *my_object)
- * {
- * MyObjectPrivate *priv = MY_OBJECT_GET_PRIVATE (my_object);
- *
- * return priv->some_field;
- * }
- * ]|
- *
- * Since: 2.4
+ * The private structure can be retrieved using the
+ * G_TYPE_CLASS_GET_PRIVATE() macro.
+
+ * Since: 2.24
*/
void
g_type_class_add_private (gpointer g_class,