StyleProperties
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_style_properties_get_type ()" ) ]
public class StyleProperties :
Object,
StyleProvider
GtkStyleProperties provides the storage for style information that is used by StyleContext
and other StyleProvider implementations.
Before style properties can be stored in GtkStyleProperties, they must be registered with
register_property.
Unless you are writing a StyleProvider implementation, you are unlikely to use
this API directly, as @get and its variants are the preferred way to access
styling information from widget implementations and theming engine implementations should use the APIs provided by
ThemingEngine instead.
StyleProperties has been deprecated in GTK 3.16. The CSS machinery does not use it anymore and all users of
this object have been deprecated.
Content:
Static methods:
Creation methods:
Methods:
- public void @get (StateFlags state, ...)
Retrieves several style property values from
this for a given state.
- public void @set (StateFlags state, ...)
Sets several style properties on this
.
- public void clear ()
Clears all style information from this
.
- public bool get_property (string property, StateFlags state, out Value value)
Gets a style property from this for
the given state.
- public void get_valist (StateFlags state, va_list args)
Retrieves several style property values from
this for a given state.
- public unowned SymbolicColor lookup_color (string name)
Returns the symbolic color that is mapped to name.
- public void map_color (string name, SymbolicColor color)
Maps color so it can be referenced by name.
- public void merge (StyleProperties props_to_merge, bool replace)
Merges into this all the style
information contained in props_to_merge.
- public void set_property (string property, StateFlags state, Value value)
Sets a styling property in this.
- public void set_valist (StateFlags state, va_list args)
Sets several style properties on this
.
- public void unset_property (string property, StateFlags state)
Unsets a style property in this.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.StyleProvider