Synopsis#include <glib-object.h> #define G_IS_PARAM_SPEC_BOOLEAN (pspec) #define G_PARAM_SPEC_BOOLEAN (pspec) #define G_VALUE_HOLDS_BOOLEAN (value) #define G_TYPE_PARAM_BOOLEAN GParamSpecBoolean; GParamSpec* g_param_spec_boolean (const gchar *name, const gchar *nick, const gchar *blurb, gboolean default_value, GParamFlags flags); void g_value_set_boolean (GValue *value, gboolean v_boolean); gboolean g_value_get_boolean (const GValue *value); #define G_IS_PARAM_SPEC_CHAR (pspec) #define G_PARAM_SPEC_CHAR (pspec) #define G_VALUE_HOLDS_CHAR (value) #define G_TYPE_PARAM_CHAR GParamSpecChar; GParamSpec* g_param_spec_char (const gchar *name, const gchar *nick, const gchar *blurb, gint8 minimum, gint8 maximum, gint8 default_value, GParamFlags flags); void g_value_set_char (GValue *value, gchar v_char); gchar g_value_get_char (const GValue *value); #define G_IS_PARAM_SPEC_UCHAR (pspec) #define G_PARAM_SPEC_UCHAR (pspec) #define G_VALUE_HOLDS_UCHAR (value) #define G_TYPE_PARAM_UCHAR GParamSpecUChar; GParamSpec* g_param_spec_uchar (const gchar *name, const gchar *nick, const gchar *blurb, guint8 minimum, guint8 maximum, guint8 default_value, GParamFlags flags); void g_value_set_uchar (GValue *value, guchar v_uchar); guchar g_value_get_uchar (const GValue *value); #define G_IS_PARAM_SPEC_INT (pspec) #define G_PARAM_SPEC_INT (pspec) #define G_VALUE_HOLDS_INT (value) #define G_TYPE_PARAM_INT GParamSpecInt; GParamSpec* g_param_spec_int (const gchar *name, const gchar *nick, const gchar *blurb, gint minimum, gint maximum, gint default_value, GParamFlags flags); void g_value_set_int (GValue *value, gint v_int); gint g_value_get_int (const GValue *value); #define G_IS_PARAM_SPEC_UINT (pspec) #define G_PARAM_SPEC_UINT (pspec) #define G_VALUE_HOLDS_UINT (value) #define G_TYPE_PARAM_UINT GParamSpecUInt; GParamSpec* g_param_spec_uint (const gchar *name, const gchar *nick, const gchar *blurb, guint minimum, guint maximum, guint default_value, GParamFlags flags); void g_value_set_uint (GValue *value, guint v_uint); guint g_value_get_uint (const GValue *value); #define G_IS_PARAM_SPEC_LONG (pspec) #define G_PARAM_SPEC_LONG (pspec) #define G_VALUE_HOLDS_LONG (value) #define G_TYPE_PARAM_LONG GParamSpecLong; GParamSpec* g_param_spec_long (const gchar *name, const gchar *nick, const gchar *blurb, glong minimum, glong maximum, glong default_value, GParamFlags flags); void g_value_set_long (GValue *value, glong v_long); glong g_value_get_long (const GValue *value); #define G_IS_PARAM_SPEC_ULONG (pspec) #define G_PARAM_SPEC_ULONG (pspec) #define G_VALUE_HOLDS_ULONG (value) #define G_TYPE_PARAM_ULONG GParamSpecULong; GParamSpec* g_param_spec_ulong (const gchar *name, const gchar *nick, const gchar *blurb, gulong minimum, gulong maximum, gulong default_value, GParamFlags flags); void g_value_set_ulong (GValue *value, gulong v_ulong); gulong g_value_get_ulong (const GValue *value); #define G_IS_PARAM_SPEC_INT64 (pspec) #define G_PARAM_SPEC_INT64 (pspec) #define G_VALUE_HOLDS_INT64 (value) #define G_TYPE_PARAM_INT64 GParamSpecInt64; GParamSpec* g_param_spec_int64 (const gchar *name, const gchar *nick, const gchar *blurb, gint64 minimum, gint64 maximum, gint64 default_value, GParamFlags flags); void g_value_set_int64 (GValue *value, gint64 v_int64); gint64 g_value_get_int64 (const GValue *value); #define G_IS_PARAM_SPEC_UINT64 (pspec) #define G_PARAM_SPEC_UINT64 (pspec) #define G_VALUE_HOLDS_UINT64 (value) #define G_TYPE_PARAM_UINT64 GParamSpecUInt64; GParamSpec* g_param_spec_uint64 (const gchar *name, const gchar *nick, const gchar *blurb, guint64 minimum, guint64 maximum, guint64 default_value, GParamFlags flags); void g_value_set_uint64 (GValue *value, guint64 v_uint64); guint64 g_value_get_uint64 (const GValue *value); #define G_IS_PARAM_SPEC_FLOAT (pspec) #define G_PARAM_SPEC_FLOAT (pspec) #define G_VALUE_HOLDS_FLOAT (value) #define G_TYPE_PARAM_FLOAT GParamSpecFloat; GParamSpec* g_param_spec_float (const gchar *name, const gchar *nick, const gchar *blurb, gfloat minimum, gfloat maximum, gfloat default_value, GParamFlags flags); void g_value_set_float (GValue *value, gfloat v_float); gfloat g_value_get_float (const GValue *value); #define G_IS_PARAM_SPEC_DOUBLE (pspec) #define G_PARAM_SPEC_DOUBLE (pspec) #define G_VALUE_HOLDS_DOUBLE (value) #define G_TYPE_PARAM_DOUBLE GParamSpecDouble; GParamSpec* g_param_spec_double (const gchar *name, const gchar *nick, const gchar *blurb, gdouble minimum, gdouble maximum, gdouble default_value, GParamFlags flags); void g_value_set_double (GValue *value, gdouble v_double); gdouble g_value_get_double (const GValue *value); #define G_IS_PARAM_SPEC_ENUM (pspec) #define G_PARAM_SPEC_ENUM (pspec) #define G_VALUE_HOLDS_ENUM (value) #define G_TYPE_PARAM_ENUM GParamSpecEnum; GParamSpec* g_param_spec_enum (const gchar *name, const gchar *nick, const gchar *blurb, GType enum_type, gint default_value, GParamFlags flags); void g_value_set_enum (GValue *value, gint v_enum); gint g_value_get_enum (const GValue *value); #define G_IS_PARAM_SPEC_FLAGS (pspec) #define G_PARAM_SPEC_FLAGS (pspec) #define G_VALUE_HOLDS_FLAGS (value) #define G_TYPE_PARAM_FLAGS GParamSpecFlags; GParamSpec* g_param_spec_flags (const gchar *name, const gchar *nick, const gchar *blurb, GType flags_type, guint default_value, GParamFlags flags); void g_value_set_flags (GValue *value, guint v_flags); guint g_value_get_flags (const GValue *value); #define G_IS_PARAM_SPEC_STRING (pspec) #define G_PARAM_SPEC_STRING (pspec) #define G_VALUE_HOLDS_STRING (value) #define G_TYPE_PARAM_STRING GParamSpecString; typedef gchararray; GParamSpec* g_param_spec_string (const gchar *name, const gchar *nick, const gchar *blurb, const gchar *default_value, GParamFlags flags); void g_value_set_string (GValue *value, const gchar *v_string); void g_value_set_static_string (GValue *value, const gchar *v_string); void g_value_take_string (GValue *value, gchar *v_string); void g_value_set_string_take_ownership (GValue *value, gchar *v_string); const gchar* g_value_get_string (const GValue *value); gchar* g_value_dup_string (const GValue *value); #define G_IS_PARAM_SPEC_PARAM (pspec) #define G_PARAM_SPEC_PARAM (pspec) #define G_VALUE_HOLDS_PARAM (value) #define G_TYPE_PARAM_PARAM GParamSpecParam; GParamSpec* g_param_spec_param (const gchar *name, const gchar *nick, const gchar *blurb, GType param_type, GParamFlags flags); void g_value_set_param (GValue *value, GParamSpec *param); void g_value_take_param (GValue *value, GParamSpec *param); void g_value_set_param_take_ownership (GValue *value, GParamSpec *param); GParamSpec* g_value_get_param (const GValue *value); GParamSpec* g_value_dup_param (const GValue *value); #define G_IS_PARAM_SPEC_BOXED (pspec) #define G_PARAM_SPEC_BOXED (pspec) #define G_VALUE_HOLDS_BOXED (value) #define G_TYPE_PARAM_BOXED GParamSpecBoxed; GParamSpec* g_param_spec_boxed (const gchar *name, const gchar *nick, const gchar *blurb, GType boxed_type, GParamFlags flags); void g_value_set_boxed (GValue *value, gconstpointer v_boxed); void g_value_set_static_boxed (GValue *value, gconstpointer v_boxed); void g_value_take_boxed (GValue *value, gconstpointer v_boxed); void g_value_set_boxed_take_ownership (GValue *value, gconstpointer v_boxed); gpointer g_value_get_boxed (const GValue *value); gpointer g_value_dup_boxed (const GValue *value); #define G_IS_PARAM_SPEC_POINTER (pspec) #define G_PARAM_SPEC_POINTER (pspec) #define G_VALUE_HOLDS_POINTER (value) #define G_TYPE_PARAM_POINTER GParamSpecPointer; GParamSpec* g_param_spec_pointer (const gchar *name, const gchar *nick, const gchar *blurb, GParamFlags flags); void g_value_set_pointer (GValue *value, gpointer v_pointer); gpointer g_value_get_pointer (const GValue *value); #define G_IS_PARAM_SPEC_OBJECT (pspec) #define G_PARAM_SPEC_OBJECT (pspec) #define G_VALUE_HOLDS_OBJECT (value) #define G_TYPE_PARAM_OBJECT GParamSpecObject; GParamSpec* g_param_spec_object (const gchar *name, const gchar *nick, const gchar *blurb, GType object_type, GParamFlags flags); void g_value_set_object (GValue *value, gpointer v_object); void g_value_take_object (GValue *value, gpointer v_object); void g_value_set_object_take_ownership (GValue *value, gpointer v_object); gpointer g_value_get_object (const GValue *value); gpointer g_value_dup_object (const GValue *value); #define G_IS_PARAM_SPEC_UNICHAR (pspec) #define G_PARAM_SPEC_UNICHAR (pspec) #define G_TYPE_PARAM_UNICHAR GParamSpecUnichar; GParamSpec* g_param_spec_unichar (const gchar *name, const gchar *nick, const gchar *blurb, gunichar default_value, GParamFlags flags); #define G_IS_PARAM_SPEC_VALUE_ARRAY (pspec) #define G_PARAM_SPEC_VALUE_ARRAY (pspec) #define G_TYPE_PARAM_VALUE_ARRAY GParamSpecValueArray; GParamSpec* g_param_spec_value_array (const gchar *name, const gchar *nick, const gchar *blurb, GParamSpec *element_spec, GParamFlags flags); #define G_IS_PARAM_SPEC_OVERRIDE (pspec) #define G_PARAM_SPEC_OVERRIDE (pspec) #define G_TYPE_PARAM_OVERRIDE GParamSpecOverride; GParamSpec* g_param_spec_override (const gchar *name, GParamSpec *overridden); #define G_IS_PARAM_SPEC_GTYPE (pspec) #define G_PARAM_SPEC_GTYPE (pspec) #define G_VALUE_HOLDS_GTYPE (value) #define G_TYPE_PARAM_GTYPE GParamSpecGType; GParamSpec* g_param_spec_gtype (const gchar *name, const gchar *nick, const gchar *blurb, GType is_a_type, GParamFlags flags); GType g_value_get_gtype (const GValue *value); void g_value_set_gtype (GValue *value, GType v_gtype); DescriptionGValue provides an abstract container structure which can be copied, transformed and compared while holding a value of any (derived) type, which is registered as a GType with a GTypeValueTable in its GTypeInfo structure. Parameter specifications for most value types can be created as GParamSpec derived instances, to implement e.g. GObject properties which operate on GValue containers. Parameter names need to start with a letter (a-z or A-Z). Subsequent characters can be letters, numbers or a '-'. All other characters are replaced by a '-' during construction.
DetailsG_IS_PARAM_SPEC_BOOLEAN()#define G_IS_PARAM_SPEC_BOOLEAN(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_BOOLEAN))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_BOOLEAN()#define G_PARAM_SPEC_BOOLEAN(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_BOOLEAN, GParamSpecBoolean)) Cast a GParamSpec instance into a GParamSpecBoolean.
G_VALUE_HOLDS_BOOLEAN()#define G_VALUE_HOLDS_BOOLEAN(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_BOOLEAN))
Checks whether the given GValue can hold values of type
G_TYPE_PARAM_BOOLEAN#define G_TYPE_PARAM_BOOLEAN (g_param_spec_types[2]) The GType of GParamSpecBoolean.
GParamSpecBooleantypedef struct {
GParamSpec parent_instance;
gboolean default_value;
} GParamSpecBoolean;
A GParamSpec derived structure that contains the meta data for boolean properties.
g_param_spec_boolean ()GParamSpec* g_param_spec_boolean (const gchar *name, const gchar *nick, const gchar *blurb, gboolean default_value, GParamFlags flags);
Creates a new GParamSpecBoolean instance specifying a
See
g_value_set_boolean ()void g_value_set_boolean (GValue *value, gboolean v_boolean);
Set the contents of a
g_value_get_boolean ()gboolean g_value_get_boolean (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_CHAR()#define G_IS_PARAM_SPEC_CHAR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_CHAR))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_CHAR()#define G_PARAM_SPEC_CHAR(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_CHAR, GParamSpecChar)) Cast a GParamSpec instance into a GParamSpecChar.
G_VALUE_HOLDS_CHAR()#define G_VALUE_HOLDS_CHAR(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_CHAR))
Checks whether the given GValue can hold values of type
GParamSpecChartypedef struct {
GParamSpec parent_instance;
gint8 minimum;
gint8 maximum;
gint8 default_value;
} GParamSpecChar;
A GParamSpec derived structure that contains the meta data for character properties.
g_param_spec_char ()GParamSpec* g_param_spec_char (const gchar *name, const gchar *nick, const gchar *blurb, gint8 minimum, gint8 maximum, gint8 default_value, GParamFlags flags);
Creates a new GParamSpecChar instance specifying a
g_value_set_char ()void g_value_set_char (GValue *value, gchar v_char);
Set the contents of a
g_value_get_char ()gchar g_value_get_char (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_UCHAR()#define G_IS_PARAM_SPEC_UCHAR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UCHAR))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_UCHAR()#define G_PARAM_SPEC_UCHAR(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UCHAR, GParamSpecUChar)) Cast a GParamSpec instance into a GParamSpecUChar.
G_VALUE_HOLDS_UCHAR()#define G_VALUE_HOLDS_UCHAR(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_UCHAR))
Checks whether the given GValue can hold values of type
GParamSpecUChartypedef struct {
GParamSpec parent_instance;
guint8 minimum;
guint8 maximum;
guint8 default_value;
} GParamSpecUChar;
A GParamSpec derived structure that contains the meta data for unsigned character properties.
g_param_spec_uchar ()GParamSpec* g_param_spec_uchar (const gchar *name, const gchar *nick, const gchar *blurb, guint8 minimum, guint8 maximum, guint8 default_value, GParamFlags flags);
Creates a new GParamSpecUChar instance specifying a
g_value_set_uchar ()void g_value_set_uchar (GValue *value, guchar v_uchar);
Set the contents of a
g_value_get_uchar ()guchar g_value_get_uchar (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_INT()#define G_IS_PARAM_SPEC_INT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_INT))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_INT()#define G_PARAM_SPEC_INT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_INT, GParamSpecInt)) Cast a GParamSpec instance into a GParamSpecInt.
G_VALUE_HOLDS_INT()#define G_VALUE_HOLDS_INT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_INT))
Checks whether the given GValue can hold values of type
GParamSpecInttypedef struct {
GParamSpec parent_instance;
gint minimum;
gint maximum;
gint default_value;
} GParamSpecInt;
A GParamSpec derived structure that contains the meta data for integer properties.
g_param_spec_int ()GParamSpec* g_param_spec_int (const gchar *name, const gchar *nick, const gchar *blurb, gint minimum, gint maximum, gint default_value, GParamFlags flags);
Creates a new GParamSpecInt instance specifying a
See
g_value_set_int ()void g_value_set_int (GValue *value, gint v_int);
Set the contents of a
g_value_get_int ()gint g_value_get_int (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_UINT()#define G_IS_PARAM_SPEC_UINT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UINT))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_UINT()#define G_PARAM_SPEC_UINT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UINT, GParamSpecUInt)) Cast a GParamSpec instance into a GParamSpecUInt.
G_VALUE_HOLDS_UINT()#define G_VALUE_HOLDS_UINT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_UINT))
Checks whether the given GValue can hold values of type
GParamSpecUInttypedef struct {
GParamSpec parent_instance;
guint minimum;
guint maximum;
guint default_value;
} GParamSpecUInt;
A GParamSpec derived structure that contains the meta data for unsigned integer properties.
g_param_spec_uint ()GParamSpec* g_param_spec_uint (const gchar *name, const gchar *nick, const gchar *blurb, guint minimum, guint maximum, guint default_value, GParamFlags flags);
Creates a new GParamSpecUInt instance specifying a
See
g_value_set_uint ()void g_value_set_uint (GValue *value, guint v_uint);
Set the contents of a
g_value_get_uint ()guint g_value_get_uint (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_LONG()#define G_IS_PARAM_SPEC_LONG(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_LONG))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_LONG()#define G_PARAM_SPEC_LONG(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_LONG, GParamSpecLong)) Cast a GParamSpec instance into a GParamSpecLong.
G_VALUE_HOLDS_LONG()#define G_VALUE_HOLDS_LONG(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_LONG))
Checks whether the given GValue can hold values of type
GParamSpecLongtypedef struct {
GParamSpec parent_instance;
glong minimum;
glong maximum;
glong default_value;
} GParamSpecLong;
A GParamSpec derived structure that contains the meta data for long integer properties.
g_param_spec_long ()GParamSpec* g_param_spec_long (const gchar *name, const gchar *nick, const gchar *blurb, glong minimum, glong maximum, glong default_value, GParamFlags flags);
Creates a new GParamSpecLong instance specifying a
See
g_value_set_long ()void g_value_set_long (GValue *value, glong v_long);
Set the contents of a
g_value_get_long ()glong g_value_get_long (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_ULONG()#define G_IS_PARAM_SPEC_ULONG(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_ULONG))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_ULONG()#define G_PARAM_SPEC_ULONG(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_ULONG, GParamSpecULong)) Cast a GParamSpec instance into a GParamSpecULong.
G_VALUE_HOLDS_ULONG()#define G_VALUE_HOLDS_ULONG(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_ULONG))
Checks whether the given GValue can hold values of type
GParamSpecULongtypedef struct {
GParamSpec parent_instance;
gulong minimum;
gulong maximum;
gulong default_value;
} GParamSpecULong;
A GParamSpec derived structure that contains the meta data for unsigned long integer properties.
g_param_spec_ulong ()GParamSpec* g_param_spec_ulong (const gchar *name, const gchar *nick, const gchar *blurb, gulong minimum, gulong maximum, gulong default_value, GParamFlags flags);
Creates a new GParamSpecULong instance specifying a
See
g_value_set_ulong ()void g_value_set_ulong (GValue *value, gulong v_ulong);
Set the contents of a
g_value_get_ulong ()gulong g_value_get_ulong (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_INT64()#define G_IS_PARAM_SPEC_INT64(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_INT64))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_INT64()#define G_PARAM_SPEC_INT64(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_INT64, GParamSpecInt64)) Cast a GParamSpec instance into a GParamSpecInt64.
G_VALUE_HOLDS_INT64()#define G_VALUE_HOLDS_INT64(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_INT64))
Checks whether the given GValue can hold values of type
GParamSpecInt64typedef struct {
GParamSpec parent_instance;
gint64 minimum;
gint64 maximum;
gint64 default_value;
} GParamSpecInt64;
A GParamSpec derived structure that contains the meta data for 64bit integer properties.
g_param_spec_int64 ()GParamSpec* g_param_spec_int64 (const gchar *name, const gchar *nick, const gchar *blurb, gint64 minimum, gint64 maximum, gint64 default_value, GParamFlags flags);
Creates a new GParamSpecInt64 instance specifying a
See
g_value_set_int64 ()void g_value_set_int64 (GValue *value, gint64 v_int64);
Set the contents of a
g_value_get_int64 ()gint64 g_value_get_int64 (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_UINT64()#define G_IS_PARAM_SPEC_UINT64(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UINT64))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_UINT64()#define G_PARAM_SPEC_UINT64(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UINT64, GParamSpecUInt64)) Cast a GParamSpec instance into a GParamSpecUInt64.
G_VALUE_HOLDS_UINT64()#define G_VALUE_HOLDS_UINT64(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_UINT64))
Checks whether the given GValue can hold values of type
G_TYPE_PARAM_UINT64#define G_TYPE_PARAM_UINT64 (g_param_spec_types[8]) The GType of GParamSpecUInt64.
GParamSpecUInt64typedef struct {
GParamSpec parent_instance;
guint64 minimum;
guint64 maximum;
guint64 default_value;
} GParamSpecUInt64;
A GParamSpec derived structure that contains the meta data for unsigned 64bit integer properties.
g_param_spec_uint64 ()GParamSpec* g_param_spec_uint64 (const gchar *name, const gchar *nick, const gchar *blurb, guint64 minimum, guint64 maximum, guint64 default_value, GParamFlags flags);
Creates a new GParamSpecUInt64 instance specifying a
See
g_value_set_uint64 ()void g_value_set_uint64 (GValue *value, guint64 v_uint64);
Set the contents of a
g_value_get_uint64 ()guint64 g_value_get_uint64 (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_FLOAT()#define G_IS_PARAM_SPEC_FLOAT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_FLOAT))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_FLOAT()#define G_PARAM_SPEC_FLOAT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_FLOAT, GParamSpecFloat)) Cast a GParamSpec instance into a GParamSpecFloat.
G_VALUE_HOLDS_FLOAT()#define G_VALUE_HOLDS_FLOAT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_FLOAT))
Checks whether the given GValue can hold values of type
G_TYPE_PARAM_FLOAT#define G_TYPE_PARAM_FLOAT (g_param_spec_types[12]) The GType of GParamSpecFloat.
GParamSpecFloattypedef struct {
GParamSpec parent_instance;
gfloat minimum;
gfloat maximum;
gfloat default_value;
gfloat epsilon;
} GParamSpecFloat;
A GParamSpec derived structure that contains the meta data for float properties.
g_param_spec_float ()GParamSpec* g_param_spec_float (const gchar *name, const gchar *nick, const gchar *blurb, gfloat minimum, gfloat maximum, gfloat default_value, GParamFlags flags);
Creates a new GParamSpecFloat instance specifying a
See
g_value_set_float ()void g_value_set_float (GValue *value, gfloat v_float);
Set the contents of a
g_value_get_float ()gfloat g_value_get_float (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_DOUBLE()#define G_IS_PARAM_SPEC_DOUBLE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_DOUBLE))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_DOUBLE()#define G_PARAM_SPEC_DOUBLE(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_DOUBLE, GParamSpecDouble)) Cast a GParamSpec instance into a GParamSpecDouble.
G_VALUE_HOLDS_DOUBLE()#define G_VALUE_HOLDS_DOUBLE(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_DOUBLE))
Checks whether the given GValue can hold values of type
G_TYPE_PARAM_DOUBLE#define G_TYPE_PARAM_DOUBLE (g_param_spec_types[13]) The GType of GParamSpecDouble.
GParamSpecDoubletypedef struct {
GParamSpec parent_instance;
gdouble minimum;
gdouble maximum;
gdouble default_value;
gdouble epsilon;
} GParamSpecDouble;
A GParamSpec derived structure that contains the meta data for double properties.
g_param_spec_double ()GParamSpec* g_param_spec_double (const gchar *name, const gchar *nick, const gchar *blurb, gdouble minimum, gdouble maximum, gdouble default_value, GParamFlags flags);
Creates a new GParamSpecDouble instance specifying a
See
g_value_set_double ()void g_value_set_double (GValue *value, gdouble v_double);
Set the contents of a
g_value_get_double ()gdouble g_value_get_double (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_ENUM()#define G_IS_PARAM_SPEC_ENUM(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_ENUM))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_ENUM()#define G_PARAM_SPEC_ENUM(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_ENUM, GParamSpecEnum)) Cast a GParamSpec instance into a GParamSpecEnum.
G_VALUE_HOLDS_ENUM()#define G_VALUE_HOLDS_ENUM(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_ENUM))
Checks whether the given GValue can hold values derived from type
GParamSpecEnumtypedef struct {
GParamSpec parent_instance;
GEnumClass *enum_class;
gint default_value;
} GParamSpecEnum;
A GParamSpec derived structure that contains the meta data for enum properties.
g_param_spec_enum ()GParamSpec* g_param_spec_enum (const gchar *name, const gchar *nick, const gchar *blurb, GType enum_type, gint default_value, GParamFlags flags);
Creates a new GParamSpecEnum instance specifying a
See
g_value_set_enum ()void g_value_set_enum (GValue *value, gint v_enum);
Set the contents of a
g_value_get_enum ()gint g_value_get_enum (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_FLAGS()#define G_IS_PARAM_SPEC_FLAGS(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_FLAGS))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_FLAGS()#define G_PARAM_SPEC_FLAGS(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_FLAGS, GParamSpecFlags)) Cast a GParamSpec instance into a GParamSpecFlags.
G_VALUE_HOLDS_FLAGS()#define G_VALUE_HOLDS_FLAGS(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_FLAGS))
Checks whether the given GValue can hold values derived from type
G_TYPE_PARAM_FLAGS#define G_TYPE_PARAM_FLAGS (g_param_spec_types[11]) The GType of GParamSpecFlags.
GParamSpecFlagstypedef struct {
GParamSpec parent_instance;
GFlagsClass *flags_class;
guint default_value;
} GParamSpecFlags;
A GParamSpec derived structure that contains the meta data for flags properties.
g_param_spec_flags ()GParamSpec* g_param_spec_flags (const gchar *name, const gchar *nick, const gchar *blurb, GType flags_type, guint default_value, GParamFlags flags);
Creates a new GParamSpecFlags instance specifying a
See
g_value_set_flags ()void g_value_set_flags (GValue *value, guint v_flags);
Set the contents of a
g_value_get_flags ()guint g_value_get_flags (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_STRING()#define G_IS_PARAM_SPEC_STRING(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_STRING))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_STRING()#define G_PARAM_SPEC_STRING(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_STRING, GParamSpecString)) Casts a GParamSpec instance into a GParamSpecString.
G_VALUE_HOLDS_STRING()#define G_VALUE_HOLDS_STRING(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_STRING))
Checks whether the given GValue can hold values of type
G_TYPE_PARAM_STRING#define G_TYPE_PARAM_STRING (g_param_spec_types[14]) The GType of GParamSpecString.
GParamSpecStringtypedef struct {
GParamSpec parent_instance;
gchar *default_value;
gchar *cset_first;
gchar *cset_nth;
gchar substitutor;
guint null_fold_if_empty : 1;
guint ensure_non_null : 1;
} GParamSpecString;
A GParamSpec derived structure that contains the meta data for string properties.
g_param_spec_string ()GParamSpec* g_param_spec_string (const gchar *name, const gchar *nick, const gchar *blurb, const gchar *default_value, GParamFlags flags); Creates a new GParamSpecString instance.
See
g_value_set_string ()void g_value_set_string (GValue *value, const gchar *v_string);
Set the contents of a
g_value_set_static_string ()void g_value_set_static_string (GValue *value, const gchar *v_string);
Set the contents of a
g_value_take_string ()void g_value_take_string (GValue *value, gchar *v_string);
Sets the contents of a
Since 2.4 g_value_set_string_take_ownership ()void g_value_set_string_take_ownership (GValue *value, gchar *v_string); Warning
This is an internal function introduced mainly for C marshallers.
g_value_get_string ()const gchar* g_value_get_string (const GValue *value);
Get the contents of a
g_value_dup_string ()gchar* g_value_dup_string (const GValue *value);
Get a copy the contents of a
G_IS_PARAM_SPEC_PARAM()#define G_IS_PARAM_SPEC_PARAM(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_PARAM))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_PARAM()#define G_PARAM_SPEC_PARAM(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_PARAM, GParamSpecParam)) Casts a GParamSpec instance into a GParamSpecParam.
G_VALUE_HOLDS_PARAM()#define G_VALUE_HOLDS_PARAM(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_PARAM))
Checks whether the given GValue can hold values derived from type
G_TYPE_PARAM_PARAM#define G_TYPE_PARAM_PARAM (g_param_spec_types[15]) The GType of GParamSpecParam.
GParamSpecParamtypedef struct {
GParamSpec parent_instance;
} GParamSpecParam;
A GParamSpec derived structure that contains the meta data for
g_param_spec_param ()GParamSpec* g_param_spec_param (const gchar *name, const gchar *nick, const gchar *blurb, GType param_type, GParamFlags flags);
Creates a new GParamSpecParam instance specifying a
See
g_value_set_param ()void g_value_set_param (GValue *value, GParamSpec *param);
Set the contents of a
g_value_take_param ()void g_value_take_param (GValue *value, GParamSpec *param);
Sets the contents of a
Since 2.4 g_value_set_param_take_ownership ()void g_value_set_param_take_ownership (GValue *value, GParamSpec *param); Warning
This is an internal function introduced mainly for C marshallers.
g_value_get_param ()GParamSpec* g_value_get_param (const GValue *value);
Get the contents of a
g_value_dup_param ()GParamSpec* g_value_dup_param (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_BOXED()#define G_IS_PARAM_SPEC_BOXED(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_BOXED))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_BOXED()#define G_PARAM_SPEC_BOXED(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_BOXED, GParamSpecBoxed)) Cast a GParamSpec instance into a GParamSpecBoxed.
G_VALUE_HOLDS_BOXED()#define G_VALUE_HOLDS_BOXED(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_BOXED))
Checks whether the given GValue can hold values derived from type
G_TYPE_PARAM_BOXED#define G_TYPE_PARAM_BOXED (g_param_spec_types[16]) The GType of GParamSpecBoxed.
GParamSpecBoxedtypedef struct {
GParamSpec parent_instance;
} GParamSpecBoxed;
A GParamSpec derived structure that contains the meta data for boxed properties.
g_param_spec_boxed ()GParamSpec* g_param_spec_boxed (const gchar *name, const gchar *nick, const gchar *blurb, GType boxed_type, GParamFlags flags);
Creates a new GParamSpecBoxed instance specifying a
See
g_value_set_boxed ()void g_value_set_boxed (GValue *value, gconstpointer v_boxed);
Set the contents of a
g_value_set_static_boxed ()void g_value_set_static_boxed (GValue *value, gconstpointer v_boxed);
Set the contents of a
g_value_take_boxed ()void g_value_take_boxed (GValue *value, gconstpointer v_boxed);
Sets the contents of a
Since 2.4 g_value_set_boxed_take_ownership ()void g_value_set_boxed_take_ownership (GValue *value, gconstpointer v_boxed); Warning
This is an internal function introduced mainly for C marshallers.
g_value_get_boxed ()gpointer g_value_get_boxed (const GValue *value);
Get the contents of a
g_value_dup_boxed ()gpointer g_value_dup_boxed (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_POINTER()#define G_IS_PARAM_SPEC_POINTER(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_POINTER))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_POINTER()#define G_PARAM_SPEC_POINTER(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_POINTER, GParamSpecPointer)) Casts a GParamSpec instance into a GParamSpecPointer.
G_VALUE_HOLDS_POINTER()#define G_VALUE_HOLDS_POINTER(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_POINTER))
Checks whether the given GValue can hold values of type
G_TYPE_PARAM_POINTER#define G_TYPE_PARAM_POINTER (g_param_spec_types[17]) The GType of GParamSpecPointer.
GParamSpecPointertypedef struct {
GParamSpec parent_instance;
} GParamSpecPointer;
A GParamSpec derived structure that contains the meta data for pointer properties.
g_param_spec_pointer ()GParamSpec* g_param_spec_pointer (const gchar *name, const gchar *nick, const gchar *blurb, GParamFlags flags); Creates a new GParamSpecPoiner instance specifying a pointer property.
See
g_value_set_pointer ()void g_value_set_pointer (GValue *value, gpointer v_pointer);
Set the contents of a pointer GValue to
g_value_get_pointer ()gpointer g_value_get_pointer (const GValue *value); Get the contents of a pointer GValue.
G_IS_PARAM_SPEC_OBJECT()#define G_IS_PARAM_SPEC_OBJECT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_OBJECT))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_OBJECT()#define G_PARAM_SPEC_OBJECT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_OBJECT, GParamSpecObject)) Casts a GParamSpec instance into a GParamSpecObject.
G_VALUE_HOLDS_OBJECT()#define G_VALUE_HOLDS_OBJECT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_OBJECT))
Checks whether the given GValue can hold values derived from type
G_TYPE_PARAM_OBJECT#define G_TYPE_PARAM_OBJECT (g_param_spec_types[19]) The GType of GParamSpecObject.
GParamSpecObjecttypedef struct {
GParamSpec parent_instance;
} GParamSpecObject;
A GParamSpec derived structure that contains the meta data for object properties.
g_param_spec_object ()GParamSpec* g_param_spec_object (const gchar *name, const gchar *nick, const gchar *blurb, GType object_type, GParamFlags flags);
Creates a new GParamSpecBoxed instance specifying a
See
g_value_set_object ()void g_value_set_object (GValue *value, gpointer v_object);
Set the contents of a
It is important that your GValue holds a reference to
g_value_take_object ()void g_value_take_object (GValue *value, gpointer v_object);
Sets the contents of a
If you want the GValue to hold its own reference to
Since 2.4 g_value_set_object_take_ownership ()void g_value_set_object_take_ownership (GValue *value, gpointer v_object); Warning
This is an internal function introduced mainly for C marshallers.
g_value_get_object ()gpointer g_value_get_object (const GValue *value);
Get the contents of a
g_value_dup_object ()gpointer g_value_dup_object (const GValue *value);
Get the contents of a
G_IS_PARAM_SPEC_UNICHAR()#define G_IS_PARAM_SPEC_UNICHAR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UNICHAR))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_UNICHAR()#define G_PARAM_SPEC_UNICHAR(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UNICHAR, GParamSpecUnichar)) Cast a GParamSpec instance into a GParamSpecUnichar.
G_TYPE_PARAM_UNICHAR#define G_TYPE_PARAM_UNICHAR (g_param_spec_types[9]) The GType of GParamSpecUnichar.
GParamSpecUnichartypedef struct {
GParamSpec parent_instance;
gunichar default_value;
} GParamSpecUnichar;
A GParamSpec derived structure that contains the meta data for unichar (unsigned integer) properties.
g_param_spec_unichar ()GParamSpec* g_param_spec_unichar (const gchar *name, const gchar *nick, const gchar *blurb, gunichar default_value, GParamFlags flags);
Creates a new GParamSpecUnichar instance specifying a
See
G_IS_PARAM_SPEC_VALUE_ARRAY()#define G_IS_PARAM_SPEC_VALUE_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_VALUE_ARRAY))
Checks whether the given GParamSpec is of type
G_PARAM_SPEC_VALUE_ARRAY()#define G_PARAM_SPEC_VALUE_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_VALUE_ARRAY, GParamSpecValueArray)) Cast a GParamSpec instance into a GParamSpecValueArray.
G_TYPE_PARAM_VALUE_ARRAY#define G_TYPE_PARAM_VALUE_ARRAY (g_param_spec_types[18]) The GType of GParamSpecValueArray.
GParamSpecValueArraytypedef struct {
GParamSpec parent_instance;
GParamSpec *element_spec;
guint fixed_n_elements;
} GParamSpecValueArray;
A GParamSpec derived structure that contains the meta data for GValueArray properties.
g_param_spec_value_array ()GParamSpec* g_param_spec_value_array (const gchar *name, const gchar *nick, const gchar *blurb, GParamSpec *element_spec, GParamFlags flags);
Creates a new GParamSpecValueArray instance specifying a
See
G_IS_PARAM_SPEC_OVERRIDE()#define G_IS_PARAM_SPEC_OVERRIDE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_OVERRIDE))
Checks whether the given GParamSpec is of type
Since 2.4 G_PARAM_SPEC_OVERRIDE()#define G_PARAM_SPEC_OVERRIDE(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_OVERRIDE, GParamSpecOverride)) Casts a GParamSpec into a GParamSpecOverride.
Since 2.4 G_TYPE_PARAM_OVERRIDE#define G_TYPE_PARAM_OVERRIDE (g_param_spec_types[20]) The GType of GParamSpecOverride.
Since 2.4 GParamSpecOverridetypedef struct {
} GParamSpecOverride;
This is a type of GParamSpec type that simply redirects operations to
another paramspec. All operations other than getting or
setting the value are redirected, including accessing the nick and
blurb, validating a value, and so forth. See
Since 2.4 g_param_spec_override ()GParamSpec* g_param_spec_override (const gchar *name, GParamSpec *overridden); Creates a new property of type GParamSpecOverride. This is used to direct operations to another paramspec, and will not be directly useful unless you are implementing a new base type similar to GObject.
Since 2.4 G_IS_PARAM_SPEC_GTYPE()#define G_IS_PARAM_SPEC_GTYPE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_GTYPE))
Checks whether the given GParamSpec is of type
Since 2.10 G_PARAM_SPEC_GTYPE()#define G_PARAM_SPEC_GTYPE(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_GTYPE, GParamSpecGType)) Casts a GParamSpec into a GParamSpecGType.
Since 2.10 G_VALUE_HOLDS_GTYPE()#define G_VALUE_HOLDS_GTYPE(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_GTYPE))
Checks whether the given GValue can hold values of type
Since 2.12 G_TYPE_PARAM_GTYPE#define G_TYPE_PARAM_GTYPE (g_param_spec_types[21]) The GType of GParamSpecGType.
Since 2.10 GParamSpecGTypetypedef struct {
GParamSpec parent_instance;
GType is_a_type;
} GParamSpecGType;
A GParamSpec derived structure that contains the meta data for GType properties.
Since 2.10 g_param_spec_gtype ()GParamSpec* g_param_spec_gtype (const gchar *name, const gchar *nick, const gchar *blurb, GType is_a_type, GParamFlags flags);
Creates a new GParamSpecGType instance specifying a
See
Since 2.10 g_value_get_gtype ()GType g_value_get_gtype (const GValue *value);
Get the contents of a
Since 2.12 g_value_set_gtype ()void g_value_set_gtype (GValue *value, GType v_gtype);
Set the contents of a
Since 2.12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||