Glade User Interface Designer Reference Manual | ||||
---|---|---|---|---|
Top | Description |
GladeParameter; GladeParameter * glade_parameter_new (void
); GladeParameter * glade_parameter_clone (GladeParameter *parameter
); void glade_parameter_free (GladeParameter *parameter
); void glade_parameter_get_float (GList *parameters
,const gchar *key
,gfloat *value
); void glade_parameter_get_integer (GList *parameters
,const gchar *key
,gint *value
); void glade_parameter_get_boolean (GList *parameters
,const gchar *key
,gboolean *value
); void glade_parameter_get_string (GList *parameters
,const gchar *key
,gchar **value
); GList * glade_parameter_list_new_from_node (GList *list
,GladeXmlNode *node
);
Parameters can be set in your catalog file that may determine how your plugin will treat certain widget classes.
typedef struct { gchar *key; /* The name of the parameter */ gchar *value; /* The textual representation of the parameter */ } GladeParameter;
GladeParameter * glade_parameter_clone (GladeParameter *parameter
);
|
a GladeParameter |
Returns : |
a new GladeParameter cloned from parameter
|
void glade_parameter_free (GladeParameter *parameter
);
Frees parameter
and its associated memory.
|
a GladeParameter |
void glade_parameter_get_float (GList *parameters
,const gchar *key
,gfloat *value
);
Searches through parameters
looking for a GladeParameter named key
. If
found, it stores a gfloat representation of its value into value
.
|
a GList of GladeParameters |
|
a string containing the parameter name |
|
a pointer to a gfloat |
void glade_parameter_get_integer (GList *parameters
,const gchar *key
,gint *value
);
Searches through parameters
looking for a GladeParameter named key
. If
found, it stores a gint representation of its value into value
.
|
a GList of GladeParameters |
|
a string containing the parameter name |
|
a pointer to a gint |
void glade_parameter_get_boolean (GList *parameters
,const gchar *key
,gboolean *value
);
Searches through parameters
looking for a GladeParameter named key
. If
found, it stores a gboolean representation of its value into value
.
|
a GList of GladeParameters |
|
a string containing the parameter name |
|
a pointer to a gboolean |
void glade_parameter_get_string (GList *parameters
,const gchar *key
,gchar **value
);
Searches through parameters
looking for a GladeParameter named key
. If
found, it stores a newly copied string representation of its value into
value
.
|
a GList of GladeParameters |
|
a string containing the parameter name |
|
a pointer to an string |