#include <stdapis/glib-2.0/gobject/gparam.h>
struct _GParamSpecTypeInfo |
Public Attributes | |
---|---|
void(* | finalize |
void(* | instance_init |
guint16 | instance_size |
guint16 | n_preallocs |
void(* | value_set_default |
GType | value_type |
gboolean(* | value_validate |
gint(* | values_cmp |
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().