[−][src]Trait gtk::StylePropertiesExt
Required methods
fn clear(&self)
fn get_property(&self, property: &str, state: StateFlags) -> Option<Value>
Gets a style property from self
for the given state. When done with value
,
gobject::Value::unset
needs to be called to free any allocated memory.
Deprecated since 3.16
StyleProperties
are deprecated.
property
style property name
state
state to retrieve the property value for
value
return location for the style property value.
Returns
true
if the property exists in self
, false
otherwise
fn merge<P: IsA<StyleProperties>>(&self, props_to_merge: &P, replace: bool)
Merges into self
all the style information contained
in props_to_merge
. If replace
is true
, the values
will be overwritten, if it is false
, the older values
will prevail.
Deprecated since 3.16
StyleProperties
are deprecated.
props_to_merge
a second StyleProperties
replace
whether to replace values or not
fn set_property(&self, property: &str, state: StateFlags, value: &Value)
Sets a styling property in self
.
Deprecated since 3.16
StyleProperties
are deprecated.
property
styling property to set
state
state to set the value for
value
new value for the property
fn unset_property(&self, property: &str, state: StateFlags)
Unsets a style property in self
.
Deprecated since 3.16
StyleProperties
are deprecated.
property
property to unset
state
state to unset