_GParamSpecTypeInfo Struct Reference

#include <stdapis/glib-2.0/gobject/gparam.h>

struct _GParamSpecTypeInfo

Detailed Description

GParamSpecTypeInfo: : Size of the instance (object) structure. : Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching). Since GLib 2.10, it is ignored, since instances are allocated with the <link linkend="glib-Memory-Slices">slice allocator</link> now. : Location of the instance initialization function (optional). : The GType of values conforming to this GParamSpec : The instance finalization function (optional). : Resets a to the default value for (recommended, the default is g_value_reset()), see g_param_value_set_default(). : Ensures that the contents of comply with the specifications set out by (optional), see g_param_value_set_validate(). : Compares with according to (recommended, the default is memcmp()), see g_param_values_cmp().

This structure is used to provide the type system with the information required to initialize and destruct (finalize) a parameter's class and instances thereof. The initialized structure is passed to the g_param_type_register_static() The type system will perform a deep copy of this structure, so its memory does not need to be persistent across invocation of g_param_type_register_static().

Member Attribute Documentation

finalize

void(*finalize

instance_init

void(*instance_init

instance_size

guint16 instance_size

n_preallocs

guint16 n_preallocs

value_set_default

void(*value_set_default

value_type

GType value_type

value_validate

gboolean(*value_validate

values_cmp

gint(*values_cmp