Name
Parameter Specifications --
Synopsis
#include <gobject.h>
struct GParamSpec;
struct GParamSpecClass;
#define G_PARAM_SPEC_TYPE (pspec)
#define G_PARAM_SPEC_TYPE_NAME (pspec)
#define G_PARAM_SPEC (pspec)
#define G_IS_PARAM_SPEC (pspec)
#define G_PARAM_SPEC_GET_CLASS (pspec)
#define G_IS_PARAM_VALUE (pspec, value)
#define G_PARAM_SPEC_VALUE_TYPE (pspec)
#define G_TYPE_IS_PARAM (type)
enum GParamFlags;
GParamSpec* g_param_spec_ref (GParamSpec *pspec);
void g_param_spec_unref (GParamSpec *pspec);
gpointer g_param_spec_get_qdata (GParamSpec *pspec,
GQuark quark);
void g_param_spec_set_qdata (GParamSpec *pspec,
GQuark quark,
gpointer data);
void g_param_spec_set_qdata_full (GParamSpec *pspec,
GQuark quark,
gpointer data,
GDestroyNotify destroy);
gpointer g_param_spec_steal_qdata (GParamSpec *pspec,
GQuark quark);
void g_param_value_set_default (GParamSpec *pspec,
GValue *value);
gboolean g_param_value_defaults (GParamSpec *pspec,
GValue *value);
gboolean g_param_value_validate (GParamSpec *pspec,
GValue *value);
gint g_param_values_cmp (GParamSpec *pspec,
const GValue *value1,
const GValue *value2);
gpointer g_param_spec_internal (GType param_type,
const gchar *name,
const gchar *nick,
const gchar *blurb,
GParamFlags flags);
GHashTable* g_param_spec_hash_table_new (void);
void g_param_spec_hash_table_insert (GHashTable *hash_table,
GParamSpec *pspec,
GType owner_type);
void g_param_spec_hash_table_remove (GHashTable *hash_table,
GParamSpec *pspec);
GParamSpec* g_param_spec_hash_table_lookup (GHashTable *hash_table,
const gchar *param_name,
GType owner_type,
gboolean try_ancestors,
const gchar **trailer); |
Details
struct GParamSpec
struct GParamSpec
{
GTypeInstance g_instance;
gchar *name;
gchar *nick;
gchar *blurb;
GParamFlags flags;
/*< private >*/
GType owner_type;
GData *qdata;
guint ref_count;
}; |
G_PARAM_SPEC_TYPE()
#define G_PARAM_SPEC_TYPE(pspec) (G_TYPE_FROM_INSTANCE (pspec)) |
G_PARAM_SPEC_TYPE_NAME()
#define G_PARAM_SPEC_TYPE_NAME(pspec) (g_type_name (G_PARAM_SPEC_TYPE (pspec))) |
G_PARAM_SPEC()
#define G_PARAM_SPEC(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM, GParamSpec)) |
G_IS_PARAM_SPEC()
#define G_IS_PARAM_SPEC(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM)) |
G_PARAM_SPEC_GET_CLASS()
#define G_PARAM_SPEC_GET_CLASS(pspec) (G_TYPE_INSTANCE_GET_CLASS ((pspec), G_TYPE_PARAM, GParamSpecClass)) |
G_IS_PARAM_VALUE()
#define G_IS_PARAM_VALUE(pspec, value) (g_type_is_a (G_VALUE_TYPE (value), G_PARAM_SPEC_VALUE_TYPE (pspec))) /* FIXME */ |
G_PARAM_SPEC_VALUE_TYPE()
#define G_PARAM_SPEC_VALUE_TYPE(pspec) (G_PARAM_SPEC_GET_CLASS (pspec)->value_type) |
G_TYPE_IS_PARAM()
#define G_TYPE_IS_PARAM(type) |
enum GParamFlags
typedef enum
{
G_PARAM_READABLE = 1 << 0,
G_PARAM_WRITABLE = 1 << 1,
G_PARAM_MASK = 0x000f,
/* bits in the range 0xfff0 are reserved for 3rd party usage */
G_PARAM_USER_MASK = 0xfff0
} GParamFlags; |
g_param_spec_get_qdata ()
g_param_spec_set_qdata ()
g_param_spec_set_qdata_full ()
g_param_spec_steal_qdata ()
g_param_value_set_default ()
g_param_value_defaults ()
g_param_value_validate ()
g_param_spec_hash_table_new ()
g_param_spec_hash_table_insert ()
g_param_spec_hash_table_remove ()
g_param_spec_hash_table_lookup ()