| Top |
Functions
Description
GladePropertyDef is a structure based on a GParamSpec and parameters from the Glade catalog files and describes how properties are to be handled in Glade; it also provides an interface to convert GValue to strings and va_lists etc (back and forth).
Functions
glade_property_def_new ()
GladePropertyDef * glade_property_def_new (GladeWidgetAdaptor *adaptor,const gchar *id);
Parameters
adaptor |
The GladeWidgetAdaptor to create this property for |
|
id |
the id for the new property class |
glade_property_def_new_from_spec ()
GladePropertyDef * glade_property_def_new_from_spec (GladeWidgetAdaptor *adaptor,GParamSpec *spec);
glade_property_def_clone ()
GladePropertyDef *
glade_property_def_clone (GladePropertyDef *property_def);
glade_property_def_free ()
void
glade_property_def_free (GladePropertyDef *property_def);
Frees property_def
and its associated memory.
glade_property_def_is_visible ()
gboolean
glade_property_def_is_visible (GladePropertyDef *property_def);
glade_property_def_is_object ()
gboolean
glade_property_def_is_object (GladePropertyDef *property_def);
glade_property_def_make_flags_from_string ()
guint glade_property_def_make_flags_from_string (GType type,const char *string);
glade_property_def_make_gvalue_from_string ()
GValue * glade_property_def_make_gvalue_from_string (GladePropertyDef *property_def,const gchar *string,GladeProject *project);
Parameters
property_def |
||
string |
a string representation of this property |
|
project |
the GladeProject that the property should be resolved for |
glade_property_def_make_string_from_gvalue ()
gchar * glade_property_def_make_string_from_gvalue (GladePropertyDef *property_def,const GValue *value);
glade_property_def_make_gvalue_from_vl ()
GValue * glade_property_def_make_gvalue_from_vl (GladePropertyDef *property_def,va_list vl);
glade_property_def_set_vl_from_gvalue ()
void glade_property_def_set_vl_from_gvalue (GladePropertyDef *property_def,GValue *value,va_list vl);
Sets vl
from value
based on property_def
criteria.
Parameters
property_def |
||
value |
A GValue to set |
|
vl |
a va_list holding one argument of the correct type
specified by |
glade_property_def_make_gvalue ()
GValue * glade_property_def_make_gvalue (GladePropertyDef *property_def,...);
glade_property_def_get_from_gvalue ()
void glade_property_def_get_from_gvalue (GladePropertyDef *property_def,GValue *value,...);
Assignes the provided return location to value
glade_property_def_update_from_node ()
gboolean glade_property_def_update_from_node (GladeXmlNode *node,GType object_type,GladePropertyDef **property_def_ref,const gchar *domain);
Updates the property_def_ref
with the contents of the node in the xml
file. Only the values found in the xml file are overridden.
Parameters
node |
the property node |
|
object_type |
the GType of the owning object |
|
property_def_ref |
a pointer to the property class. |
[inout][nullable] |
domain |
the domain to translate catalog strings from |
glade_property_def_make_adjustment ()
GtkAdjustment *
glade_property_def_make_adjustment (GladePropertyDef *property_def);
Creates and appropriate GtkAdjustment for use in the editor
glade_property_def_match ()
gboolean glade_property_def_match (GladePropertyDef *property_def,GladePropertyDef *comp);
glade_property_def_void_value ()
gboolean glade_property_def_void_value (GladePropertyDef *property_def,GValue *value);
Returns
Whether value
for this property_def
is voided; a voided value
can be a NULL value for boxed or object type param specs.
glade_property_def_compare ()
gint glade_property_def_compare (GladePropertyDef *property_def,const GValue *value1,const GValue *value2);
Compares value1 with value2 according to property_def
.
glade_property_def_create_type ()
const gchar *
glade_property_def_create_type (GladePropertyDef *property_def);
glade_property_def_custom_layout ()
gboolean
glade_property_def_custom_layout (GladePropertyDef *property_def);
glade_property_def_deprecated ()
gboolean
glade_property_def_deprecated (GladePropertyDef *property_def);
glade_property_def_get_adaptor ()
GladeWidgetAdaptor *
glade_property_def_get_adaptor (GladePropertyDef *property_def);
glade_property_def_get_construct_only ()
gboolean
glade_property_def_get_construct_only (GladePropertyDef *property_def);
glade_property_def_get_default ()
const GValue *
glade_property_def_get_default (GladePropertyDef *property_def);
glade_property_def_get_default_from_spec ()
GValue *
glade_property_def_get_default_from_spec
(GParamSpec *spec);
glade_property_def_get_ignore ()
gboolean
glade_property_def_get_ignore (GladePropertyDef *property_def);
glade_property_def_get_is_packing ()
gboolean
glade_property_def_get_is_packing (GladePropertyDef *property_def);
glade_property_def_get_name ()
const gchar *
glade_property_def_get_name (GladePropertyDef *property_def);
glade_property_def_get_original_default ()
const GValue *
glade_property_def_get_original_default
(GladePropertyDef *property_def);
glade_property_def_get_pspec ()
GParamSpec *
glade_property_def_get_pspec (GladePropertyDef *property_def);
glade_property_def_get_tooltip ()
const gchar *
glade_property_def_get_tooltip (GladePropertyDef *property_def);
glade_property_def_get_virtual ()
gboolean
glade_property_def_get_virtual (GladePropertyDef *property_def);
glade_property_def_load_defaults_from_spec ()
void
glade_property_def_load_defaults_from_spec
(GladePropertyDef *property_def);
glade_property_def_multiline ()
gboolean
glade_property_def_multiline (GladePropertyDef *property_def);
glade_property_def_needs_sync ()
gboolean
glade_property_def_needs_sync (GladePropertyDef *property_def);
glade_property_def_new_from_spec_full ()
GladePropertyDef * glade_property_def_new_from_spec_full (GladeWidgetAdaptor *adaptor,GParamSpec *spec,gboolean need_handle);
glade_property_def_optional ()
gboolean
glade_property_def_optional (GladePropertyDef *property_def);
glade_property_def_optional_default ()
gboolean
glade_property_def_optional_default (GladePropertyDef *property_def);
glade_property_def_parentless_widget ()
gboolean
glade_property_def_parentless_widget (GladePropertyDef *property_def);
glade_property_def_save_always ()
gboolean
glade_property_def_save_always (GladePropertyDef *property_def);
glade_property_def_set_adaptor ()
void glade_property_def_set_adaptor (GladePropertyDef *property_def,GladeWidgetAdaptor *adaptor);
glade_property_def_set_construct_only ()
void glade_property_def_set_construct_only (GladePropertyDef *property_def,gboolean construct_only);
glade_property_def_set_ignore ()
void glade_property_def_set_ignore (GladePropertyDef *property_def,gboolean ignore);
glade_property_def_set_is_packing ()
void glade_property_def_set_is_packing (GladePropertyDef *property_def,gboolean is_packing);
glade_property_def_set_name ()
void glade_property_def_set_name (GladePropertyDef *property_def,const gchar *name);
glade_property_def_set_pspec ()
void glade_property_def_set_pspec (GladePropertyDef *property_def,GParamSpec *pspec);
glade_property_def_set_tooltip ()
void glade_property_def_set_tooltip (GladePropertyDef *property_def,const gchar *tooltip);
glade_property_def_set_virtual ()
void glade_property_def_set_virtual (GladePropertyDef *property_def,gboolean value);
glade_property_def_set_weights ()
void glade_property_def_set_weights (GList **properties,GType parent);
This function assigns "weight" to each property in its natural order staring from 1. If parent is 0 weight will be set for every GladePropertyDef in the list. This function will not override weight if it is already set (weight >= 0.0)
Parameters
properties |
a list of GladePropertyDef. |
[element-type GladePropertyDef] |
parent |
the GType of the parent |
glade_property_def_since_major ()
guint16
glade_property_def_since_major (GladePropertyDef *property_def);
glade_property_def_since_minor ()
guint16
glade_property_def_since_minor (GladePropertyDef *property_def);
glade_property_def_stock_icon ()
gboolean
glade_property_def_stock_icon (GladePropertyDef *property_def);
glade_property_def_themed_icon ()
gboolean
glade_property_def_themed_icon (GladePropertyDef *property_def);
glade_property_def_transfer_on_paste ()
gboolean
glade_property_def_transfer_on_paste (GladePropertyDef *property_def);
glade_property_def_translatable ()
gboolean
glade_property_def_translatable (GladePropertyDef *property_def);
