XApp.StyleManager

g GObject.Object GObject.Object XApp.StyleManager XApp.StyleManager GObject.Object->XApp.StyleManager

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_widget ()

remove_style_property (name)

set_from_pango_font_string (desc_string)

set_style_property (name, value)

set_widget (widget)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

widget

Gtk.Widget

r/w/en

The widget to be styled.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class XApp.StyleManager(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

XApp.StyleManagerClass

classmethod new()
Returns:

a new XApp.StyleManager. Use GObject.Object.unref when finished.

Return type:

XApp.StyleManager

Creates a new XApp.StyleManager instance

New in version 2.2.

get_widget()
Returns:

the Gtk.Widget previously set on the style manager, or None.

Return type:

Gtk.Widget

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)
Parameters:
  • name (str) – the property name

  • value (str) – the value to set the property to

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) – the Gtk.Widget that the style manager will apply styles to, or None to unset the current widget and remove all styles currently set by this XApp.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:

Gtk.Widget

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The widget to be styled.