Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <gobject/gvalue.h>
Go to the source code of this file.
Data Structures | |
struct | _GParamSpec |
struct | _GParamSpecClass |
struct | _GParameter |
struct | _GParamSpecTypeInfo |
Typedefs | |
typedef struct _GParamSpec | GParamSpec |
typedef struct _GParamSpecClass | GParamSpecClass |
typedef struct _GParamSpecPool | GParamSpecPool |
Enumerations | |
enum | GParamFlags { G_PARAM_READABLE = 1 << 0 , G_PARAM_WRITABLE = 1 << 1 , G_PARAM_READWRITE = (G_PARAM_READABLE | G_PARAM_WRITABLE) , G_PARAM_CONSTRUCT = 1 << 2 , G_PARAM_CONSTRUCT_ONLY = 1 << 3 , G_PARAM_LAX_VALIDATION = 1 << 4 , G_PARAM_STATIC_NAME = 1 << 5 , GOBJECT_DEPRECATED_ENUMERATOR_IN_2_26 = G_PARAM_STATIC_NAME , G_PARAM_STATIC_NICK = 1 << 6 , G_PARAM_STATIC_BLURB = 1 << 7 , G_PARAM_EXPLICIT_NOTIFY = 1 << 30 , G_PARAM_DEPRECATED = (gint)(1u << 31) } |
#define G_IS_PARAM_SPEC | ( | pspec | ) | (G_TYPE_CHECK_INSTANCE_FUNDAMENTAL_TYPE ((pspec), G_TYPE_PARAM)) |
G_IS_PARAM_SPEC: @pspec: a GParamSpec
Checks whether @pspec "is a" valid GParamSpec structure of type G_TYPE_PARAM or derived.
#define G_IS_PARAM_SPEC_CLASS | ( | pclass | ) | (G_TYPE_CHECK_CLASS_TYPE ((pclass), G_TYPE_PARAM)) |
G_IS_PARAM_SPEC_CLASS: @pclass: a GParamSpecClass
Checks whether @pclass "is a" valid GParamSpecClass structure of type G_TYPE_PARAM or derived.
#define G_PARAM_MASK (0x000000ff) |
G_PARAM_MASK:
Mask containing the bits of GParamSpec.flags which are reserved for GLib.
#define G_PARAM_SPEC | ( | pspec | ) | (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM, GParamSpec)) |
G_PARAM_SPEC: @pspec: a valid GParamSpec
Casts a derived GParamSpec object (e.g. of type GParamSpecInt) into a GParamSpec object.
#define G_PARAM_SPEC_CLASS | ( | pclass | ) | (G_TYPE_CHECK_CLASS_CAST ((pclass), G_TYPE_PARAM, GParamSpecClass)) |
G_PARAM_SPEC_CLASS: @pclass: a valid GParamSpecClass
Casts a derived GParamSpecClass structure into a GParamSpecClass structure.
#define G_PARAM_SPEC_GET_CLASS | ( | pspec | ) | (G_TYPE_INSTANCE_GET_CLASS ((pspec), G_TYPE_PARAM, GParamSpecClass)) |
G_PARAM_SPEC_GET_CLASS: @pspec: a valid GParamSpec
Retrieves the GParamSpecClass of a GParamSpec.
#define G_PARAM_SPEC_TYPE | ( | pspec | ) | (G_TYPE_FROM_INSTANCE (pspec)) |
G_PARAM_SPEC_TYPE: @pspec: a valid GParamSpec
Retrieves the GType of this @pspec.
#define G_PARAM_SPEC_TYPE_NAME | ( | pspec | ) | (g_type_name (G_PARAM_SPEC_TYPE (pspec))) |
G_PARAM_SPEC_TYPE_NAME: @pspec: a valid GParamSpec
Retrieves the GType name of this @pspec.
#define G_PARAM_SPEC_VALUE_TYPE | ( | pspec | ) | (G_PARAM_SPEC (pspec)->value_type) |
G_PARAM_SPEC_VALUE_TYPE: @pspec: a valid GParamSpec
Retrieves the GType to initialize a GValue for this parameter.
#define G_PARAM_STATIC_STRINGS (G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB) |
G_PARAM_STATIC_STRINGS:
GParamFlags value alias for G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB.
It is recommended to use this for all properties by default, as it allows for internal performance improvements in GObject.
It is very rare that a property would have a dynamically constructed name, nickname or blurb.
Since 2.13.0
#define G_PARAM_USER_SHIFT (8) |
G_PARAM_USER_SHIFT:
Minimum shift count to be used for user defined flags, to be stored in GParamSpec.flags. The maximum allowed is 10.
#define G_TYPE_IS_PARAM | ( | type | ) | (G_TYPE_FUNDAMENTAL (type) == G_TYPE_PARAM) |
#define G_VALUE_HOLDS_PARAM | ( | value | ) | (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_PARAM)) |
typedef struct _GParamSpec GParamSpec |
typedef struct _GParamSpecClass GParamSpecClass |
typedef struct _GParamSpecPool GParamSpecPool |
typedef struct _GParamSpecTypeInfo GParamSpecTypeInfo |
enum GParamFlags |
GParamFlags: @G_PARAM_READABLE: the parameter is readable @G_PARAM_WRITABLE: the parameter is writable @G_PARAM_READWRITE: alias for G_PARAM_READABLE | G_PARAM_WRITABLE @G_PARAM_CONSTRUCT: the parameter will be set upon object construction @G_PARAM_CONSTRUCT_ONLY: the parameter can only be set upon object construction @G_PARAM_LAX_VALIDATION: upon parameter conversion (see g_param_value_convert()) strict validation is not required @G_PARAM_STATIC_NAME: the string used as name when constructing the parameter is guaranteed to remain valid and unmodified for the lifetime of the parameter. Since 2.8 @G_PARAM_STATIC_NICK: the string used as nick when constructing the parameter is guaranteed to remain valid and unmmodified for the lifetime of the parameter. Since 2.8 @G_PARAM_STATIC_BLURB: the string used as blurb when constructing the parameter is guaranteed to remain valid and unmodified for the lifetime of the parameter. Since 2.8 @G_PARAM_EXPLICIT_NOTIFY: calls to g_object_set_property() for this property will not automatically result in a "notify" signal being emitted: the implementation must call g_object_notify() themselves in case the property actually changes. Since: 2.42. @G_PARAM_PRIVATE: internal @G_PARAM_DEPRECATED: the parameter is deprecated and will be removed in a future version. A warning will be generated if it is used while running with G_ENABLE_DIAGNOSTIC=1. Since 2.26
Through the GParamFlags flag values, certain aspects of parameters can be configured.
See also: G_PARAM_STATIC_STRINGS
Definition at line 154 of file gparam.h.
GType _g_param_type_register_static_constant | ( | const gchar * | name, |
const GParamSpecTypeInfo * | pspec_info, | ||
GType | opt_type ) |
GOBJECT_AVAILABLE_IN_ALL const gchar * g_param_spec_get_blurb | ( | GParamSpec * | pspec | ) |
GOBJECT_AVAILABLE_IN_2_36 const GValue * g_param_spec_get_default_value | ( | GParamSpec * | pspec | ) |
GOBJECT_AVAILABLE_IN_ALL const gchar * g_param_spec_get_name | ( | GParamSpec * | pspec | ) |
GOBJECT_AVAILABLE_IN_2_46 GQuark g_param_spec_get_name_quark | ( | GParamSpec * | pspec | ) |
GOBJECT_AVAILABLE_IN_ALL const gchar * g_param_spec_get_nick | ( | GParamSpec * | pspec | ) |
GOBJECT_AVAILABLE_IN_ALL gpointer g_param_spec_get_qdata | ( | GParamSpec * | pspec, |
GQuark | quark ) |
GOBJECT_AVAILABLE_IN_ALL GParamSpec * g_param_spec_get_redirect_target | ( | GParamSpec * | pspec | ) |
Referenced by g_object_notify_queue_add().
GOBJECT_AVAILABLE_IN_ALL gpointer g_param_spec_internal | ( | GType | param_type, |
const gchar * | name, | ||
const gchar * | nick, | ||
const gchar * | blurb, | ||
GParamFlags | flags ) |
GOBJECT_AVAILABLE_IN_2_66 gboolean g_param_spec_is_valid_name | ( | const gchar * | name | ) |
GOBJECT_AVAILABLE_IN_2_80 void g_param_spec_pool_free | ( | GParamSpecPool * | pool | ) |
GOBJECT_AVAILABLE_IN_ALL void g_param_spec_pool_insert | ( | GParamSpecPool * | pool, |
GParamSpec * | pspec, | ||
GType | owner_type ) |
GOBJECT_AVAILABLE_IN_ALL GParamSpec ** g_param_spec_pool_list | ( | GParamSpecPool * | pool, |
GType | owner_type, | ||
guint * | n_pspecs_p ) |
GOBJECT_AVAILABLE_IN_ALL GList * g_param_spec_pool_list_owned | ( | GParamSpecPool * | pool, |
GType | owner_type ) |
GOBJECT_AVAILABLE_IN_ALL GParamSpec * g_param_spec_pool_lookup | ( | GParamSpecPool * | pool, |
const gchar * | param_name, | ||
GType | owner_type, | ||
gboolean | walk_ancestors ) |
GOBJECT_AVAILABLE_IN_ALL GParamSpecPool * g_param_spec_pool_new | ( | gboolean | type_prefixing | ) |
GOBJECT_AVAILABLE_IN_ALL void g_param_spec_pool_remove | ( | GParamSpecPool * | pool, |
GParamSpec * | pspec ) |
GOBJECT_AVAILABLE_IN_ALL GParamSpec * g_param_spec_ref | ( | GParamSpec * | pspec | ) |
GOBJECT_AVAILABLE_IN_ALL GParamSpec * g_param_spec_ref_sink | ( | GParamSpec * | pspec | ) |
GOBJECT_AVAILABLE_IN_ALL void g_param_spec_set_qdata | ( | GParamSpec * | pspec, |
GQuark | quark, | ||
gpointer | data ) |
GOBJECT_AVAILABLE_IN_ALL void g_param_spec_set_qdata_full | ( | GParamSpec * | pspec, |
GQuark | quark, | ||
gpointer | data, | ||
GDestroyNotify | destroy ) |
GOBJECT_AVAILABLE_IN_ALL void g_param_spec_sink | ( | GParamSpec * | pspec | ) |
GOBJECT_AVAILABLE_IN_ALL gpointer g_param_spec_steal_qdata | ( | GParamSpec * | pspec, |
GQuark | quark ) |
GOBJECT_AVAILABLE_IN_ALL void g_param_spec_unref | ( | GParamSpec * | pspec | ) |
GOBJECT_AVAILABLE_IN_ALL GType g_param_type_register_static | ( | const gchar * | name, |
const GParamSpecTypeInfo * | pspec_info ) |
GOBJECT_AVAILABLE_IN_ALL gboolean g_param_value_convert | ( | GParamSpec * | pspec, |
const GValue * | src_value, | ||
GValue * | dest_value, | ||
gboolean | strict_validation ) |
GOBJECT_AVAILABLE_IN_ALL gboolean g_param_value_defaults | ( | GParamSpec * | pspec, |
const GValue * | value ) |
GOBJECT_AVAILABLE_IN_2_74 gboolean g_param_value_is_valid | ( | GParamSpec * | pspec, |
const GValue * | value ) |
GOBJECT_AVAILABLE_IN_ALL void g_param_value_set_default | ( | GParamSpec * | pspec, |
GValue * | value ) |
GOBJECT_AVAILABLE_IN_ALL gboolean g_param_value_validate | ( | GParamSpec * | pspec, |
GValue * | value ) |
GOBJECT_AVAILABLE_IN_ALL gint g_param_values_cmp | ( | GParamSpec * | pspec, |
const GValue * | value1, | ||
const GValue * | value2 ) |
GOBJECT_AVAILABLE_IN_ALL GParamSpec * g_value_dup_param | ( | const GValue * | value | ) |
GOBJECT_AVAILABLE_IN_ALL GParamSpec * g_value_get_param | ( | const GValue * | value | ) |
GOBJECT_AVAILABLE_IN_ALL void g_value_set_param | ( | GValue * | value, |
GParamSpec * | param ) |
void g_value_set_param_take_ownership | ( | GValue * | value, |
GParamSpec * | param ) |
GOBJECT_AVAILABLE_IN_ALL void g_value_take_param | ( | GValue * | value, |
GParamSpec * | param ) |