Trait gtk::prelude::StyleProviderExt
source · [−]pub trait StyleProviderExt: 'static {
fn style_property(
&self,
path: &WidgetPath,
state: StateFlags,
pspec: impl AsRef<ParamSpec>
) -> Option<Value>;
}Expand description
Trait containing all StyleProvider methods.
Implementors
Required Methods
fn style_property(
&self,
path: &WidgetPath,
state: StateFlags,
pspec: impl AsRef<ParamSpec>
) -> Option<Value>
fn style_property(
&self,
path: &WidgetPath,
state: StateFlags,
pspec: impl AsRef<ParamSpec>
) -> Option<Value>
Looks up a widget style property as defined by self for
the widget represented by path.
path
WidgetPath to query
state
state to query the style property for
pspec
The glib::ParamSpec to query
Returns
true if the property was found and has a value, false otherwise
value
return location for the property value