Class
StThemeContext
Constructors
st_theme_context_new
Create a new theme context not associated with any ClutterStage
.
This can be useful in testing scenarios, or if using StThemeContext
with something other than ClutterActor
objects, but you generally
should use st_theme_context_get_for_stage()
instead.
Instance methods
st_theme_context_get_font
Gets the default font for the theme context. See st_theme_context_set_font().
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_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_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.
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.