Gtk.StyleProvider¶
- Implementations:
Methods¶
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
| 
 | |
| 
 | |
| 
 | 
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gtk.StyleProvider¶
- Bases:
- Structure:
 - Gtk.StyleProvideris an interface used to provide style information to a- Gtk.StyleContext. See- Gtk.StyleContext.add_provider() and- Gtk.StyleContext.add_provider_for_screen().- get_icon_factory(path)[source]¶
- Parameters:
- path ( - Gtk.WidgetPath) –- Gtk.WidgetPathto query
- Returns:
- The icon factory to use for path, or - None
- Return type:
 - Returns the - Gtk.IconFactorydefined to be in use for path, or- Noneif none is defined.- New in version 3.0. - Deprecated since version 3.8: Will always return - Nonefor all GTK-provided style providers.
 - get_style(path)[source]¶
- Parameters:
- path ( - Gtk.WidgetPath) –- Gtk.WidgetPathto query
- Returns:
- a - Gtk.StylePropertiescontaining the style settings affecting path
- Return type:
 - Returns the style settings affecting a widget defined by path, or - Noneif self doesn’t contemplate styling path.- New in version 3.0. - Deprecated since version 3.8: Will always return - Nonefor all GTK-provided style providers as the interface cannot correctly work the way CSS is specified.
 - get_style_property(path, state, pspec)[source]¶
- Parameters:
- path ( - Gtk.WidgetPath) –- Gtk.WidgetPathto query
- state ( - Gtk.StateFlags) – state to query the style property for
- pspec ( - GObject.ParamSpec) – The- GObject.ParamSpecto query
 
- Returns:
- Trueif the property was found and has a value,- Falseotherwise- value:
- return location for the property value 
 
- Return type:
- ( - bool, value:- GObject.Value)
 - Looks up a widget style property as defined by self for the widget represented by path. - New in version 3.0. 
 - do_get_icon_factory(path) virtual¶
- Parameters:
- path ( - Gtk.WidgetPath) –- Gtk.WidgetPathto query
- Returns:
- The icon factory to use for path, or - None
- Return type:
 - Returns the - Gtk.IconFactorydefined to be in use for path, or- Noneif none is defined.- New in version 3.0. - Deprecated since version 3.8: Will always return - Nonefor all GTK-provided style providers.
 - do_get_style(path) virtual¶
- Parameters:
- path ( - Gtk.WidgetPath) –- Gtk.WidgetPathto query
- Returns:
- a - Gtk.StylePropertiescontaining the style settings affecting path
- Return type:
 - Returns the style settings affecting a widget defined by path, or - Noneif provider doesn’t contemplate styling path.- New in version 3.0. - Deprecated since version 3.8: Will always return - Nonefor all GTK-provided style providers as the interface cannot correctly work the way CSS is specified.
 - do_get_style_property(path, state, pspec) virtual¶
- Parameters:
- path ( - Gtk.WidgetPath) –- Gtk.WidgetPathto query
- state ( - Gtk.StateFlags) – state to query the style property for
- pspec ( - GObject.ParamSpec) – The- GObject.ParamSpecto query
 
- Returns:
- Trueif the property was found and has a value,- Falseotherwise- value:
- return location for the property value 
 
- Return type:
- ( - bool, value:- GObject.Value)
 - Looks up a widget style property as defined by provider for the widget represented by path. - New in version 3.0.