| Top |
| MxStyle * | mx_style_get_default () |
| MxStyle * | mx_style_new () |
| gboolean | mx_style_load_from_file () |
| void | mx_style_get_property () |
| void | mx_style_get () |
| void | mx_style_get_valist () |
MxStyle is a property data store that can read properties from a style sheet. It is queried with objects that implement the MxStylable interface.
MxStyle *
mx_style_get_default (void);
Return the default MxStyle object. This includes the current theme (if any).
MxStyle *
mx_style_new (void);
Creates a new MxStyle object. This must be freed using g_object_unref when no longer required.
gboolean mx_style_load_from_file (MxStyle *style,const gchar *filename,GError **error);
Load style information from the specified file.
void mx_style_get_property (MxStyle *style,MxStylable *stylable,GParamSpec *pspec,GValue *value);
Requests the property described in pspec
for the specified stylable
style |
the style data store object |
|
stylable |
a stylable to retreive the data for |
|
pspec |
a GParamSpec describing the property required |
|
value |
a GValue to place the return value in. |
[out] |
void mx_style_get (MxStyle *style,MxStylable *stylable,const gchar *first_property_name,...);
Gets the style properties for stylable
from style
.
In general, a copy is made of the property contents and the caller is responsible for freeing the memory in the appropriate manner for the property type.
void mx_style_get_valist (MxStyle *style,MxStylable *stylable,const gchar *first_property_name,va_list va_args);
Gets the style properties for stylable
from style
.
Please refer to mx_style_get() for further information.