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.unref
when finished.- Return type:
Creates a new
XApp.StyleManager
instanceNew in version 2.2.
- get_widget()¶
- Returns:
the
Gtk.Widget
previously set on the style manager, orNone
.- Return type:
Gets the
Gtk.Widget
the style manager currently applies styles to.New in version 2.2.
- remove_style_property(name)¶
- Parameters:
name (
str
) – the property name
Removes the given style property from the widget if set.
New 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.
New 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.
New in version 2.2.
- set_widget(widget)¶
- Parameters:
widget (
Gtk.Widget
) – theGtk.Widget
that the style manager will apply styles to, orNone
to unset the current widget and remove all styles currently set by thisXApp.StyleManager
instance.
Sets the
Gtk.Widget
the style manager will apply styles to.New in version 2.2.
Property Details¶
- XApp.StyleManager.props.widget¶
- Name:
widget
- Type:
- Default Value:
- Flags:
The widget to be styled.