St.ThemeContext
Description: Reference for St.ThemeContext

### Class

# StThemeContext

#### Description [src]

    final class St.ThemeContext : GObject.Object
    {
      /* No available fields */
    }

Holds global information about a tree of styled objects

`StThemeContext` is responsible for managing information global to a tree of styled objects, such as the set of stylesheets or the default font. In normal usage, a `StThemeContext` is bound to a `ClutterStage`; a singleton `StThemeContext` can be obtained for a `ClutterStage` by using st_theme_context_get_for_stage().

#### Ancestors

- GObject

#### Functions

###### st_theme_context_get_for_stage

Gets a singleton theme context associated with the stage.

#### Instance methods

###### st_theme_context_get_accent_color

Gets the current accent color for the theme context.

###### st_theme_context_get_font

Gets the default font for the theme context. See st_theme_context_set_font().

###### st_theme_context_get_resolution

No description available.

###### st_theme_context_get_root_node

Gets the root node of the tree of theme style nodes that associated with this context. For the node tree associated with a stage, this node represents styles applied to the stage itself.

###### st_theme_context_get_scale_factor

Return the current scale factor of `context`.

###### st_theme_context_get_theme

Gets the default theme for the context. See st_theme_context_set_theme().

###### st_theme_context_intern_node

Return an existing node matching `node`, or if that isn’t possible, `node` itself.

###### st_theme_context_set_font

Sets the default font for the theme context. This is the font that is inherited by the root node of the tree of theme nodes. If the font is not overridden, then this font will be used. If the font is partially modified (for example, with ‘font-size: 110%’), then that modification is based on this font.

###### st_theme_context_set_scale_factor

Set the new scale factor of `context`.

###### st_theme_context_set_theme

Sets the default set of theme stylesheets for the context. This theme will be used for the root node and for nodes descending from it, unless some other style is explicitly specified.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### St.ThemeContext:scale-factor

The scaling factor used for HiDPI scaling.

#### Signals

###### St.ThemeContext::changed

Emitted when the icon theme, font, resolution, scale factor or the current theme’s custom stylesheets change.

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct StThemeContextClass {
      GObjectClass parent_class;

    }

No description available.

###### Class members

`parent_class: GObjectClass`

  No description available.