mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
Some more doc cleanups
This commit is contained in:
parent
c4ea7d58f7
commit
81e2aa941b
@ -2066,6 +2066,8 @@ g_zlib_decompressor_get_type
|
||||
<TITLE>GFileDescriptorBased</TITLE>
|
||||
GFileDescriptorBased
|
||||
g_file_descriptor_based_get_fd
|
||||
<SUBSECTION Standard>
|
||||
GFileDescriptorBaseIFace
|
||||
<SUBSECTION Private>
|
||||
g_file_descriptor_based_get_type
|
||||
G_FILE_DESCRIPTOR_BASED
|
||||
|
@ -54,7 +54,6 @@ g_type_class_peek_static
|
||||
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
|
||||
@ -119,6 +118,7 @@ g_type_check_is_value_type
|
||||
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
|
||||
|
@ -64,6 +64,15 @@ are set for @type.
|
||||
@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
|
||||
|
@ -4373,39 +4373,12 @@ g_type_init (void)
|
||||
* 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,
|
||||
|
Loading…
Reference in New Issue
Block a user