gtk.style_properties

Module for [StyleProperties] class

Types 3

GtkStyleProperties provides the storage for style information that is used by #GtkStyleContext and other #GtkStyleProvider implementations.

Before style properties can be stored in GtkStyleProperties, they must be registered with [gtk.style_properties.StyleProperties.registerProperty].

Unless you are writing a #GtkStyleProvider implementation, you are unlikely to use this API directly, as [gtk.style_context.StyleContext.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 #GtkThemingEngine instead.

#GtkStyleProperties has been deprecated in GTK 3.16. The CSS machinery does not use it anymore and all users of this object have been deprecated.

Methods
GType _gType() @property
StyleProperties self()Returns `this`, for use in `with` statements.
StylePropertiesGidBuilder builder()Get builder for [gtk.style_properties.StyleProperties] Returns: New builder object
void clear()Clears all style information from props.
bool getProperty(string property, gtk.types.StateFlags state, out gobject.value.Value value)Gets a style property from props for the given state. When done with value, [gobject.value.Value.unset] needs to be called to free any allocated memory.
gtk.symbolic_color.SymbolicColor lookupColor(string name)Returns the symbolic color that is mapped to name.
void mapColor(string name, gtk.symbolic_color.SymbolicColor color)Maps color so it can be referenced by name. See [gtk.style_properties.StyleProperties.lookupColor]
void merge(gtk.style_properties.StyleProperties propsToMerge, bool replace)Merges into props all the style information contained in propstomerge. If replace is true, the values will be overwritten, if it is false, the older values will prevail.
void setProperty(string property, gtk.types.StateFlags state, gobject.value.Value value)Sets a styling property in props.
void unsetProperty(string property, gtk.types.StateFlags state)Unsets a style property in props.
Constructors
this(void * ptr, Flag!"Take" take)
this()Returns a newly created #GtkStyleProperties Returns: a new #GtkStyleProperties

Fluent builder for [gtk.style_properties.StyleProperties]