StyleContext.getProperty

void getProperty(string property, gtk.types.StateFlags state, out gobject.value.Value value)

Gets a style property from context for the given state.

Note that not all CSS properties that are supported by GTK+ can be retrieved in this way, since they may not be representable as #GValue. GTK+ defines macros for a number of properties that can be used with this function.

Note that passing a state other than the current state of context is not recommended unless the style context has been saved with gtk.style_context.StyleContext.save.

When value is no longer needed, gobject.value.Value.unset must be called to free any allocated memory.

Parameters

propertystyle property name
statestate to retrieve the property value for
valuereturn location for the style property value