XApp.StyleManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
The widget to be styled. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class XApp.StyleManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
XApp.StyleManager. UseGObject.Object.unrefwhen finished.- Return type:
Creates a new
XApp.StyleManagerinstanceAdded in version 2.2.
- get_widget()¶
- Returns:
the
Gtk.Widgetpreviously set on the style manager, orNone.- Return type:
Gets the
Gtk.Widgetthe style manager currently applies styles to.Added in version 2.2.
- remove_style_property(name)¶
- Parameters:
name (
str) – the property name
Removes the given style property from the widget if set.
Added in version 2.2.
- set_from_pango_font_string(desc_string)¶
- Parameters:
desc_string (
str) – a pango font description string
Sets the css font property on the widget based on the supplied pango font description string.
Added in version 2.2.
- set_style_property(name, value)¶
-
Adds the given style property to the widget. If the property has already been set, the value will be replaced.
Added in version 2.2.
- set_widget(widget)¶
- Parameters:
widget (
Gtk.Widget) – theGtk.Widgetthat the style manager will apply styles to, orNoneto unset the current widget and remove all styles currently set by thisXApp.StyleManagerinstance.
Sets the
Gtk.Widgetthe style manager will apply styles to.Added in version 2.2.
Property Details¶
- XApp.StyleManager.props.widget¶
- Name:
widget- Type:
- Default Value:
- Flags:
The widget to be styled.