![]() |
![]() |
![]() |
Cinnamon St Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
StThemeContext * st_theme_context_new (void
); StThemeContext * st_theme_context_get_for_stage (ClutterStage *stage
); void st_theme_context_set_theme (StThemeContext *context
,StTheme *theme
); StTheme * st_theme_context_get_theme (StThemeContext *context
); void st_theme_context_set_font (StThemeContext *context
,const PangoFontDescription *font
); const PangoFontDescription * st_theme_context_get_font (StThemeContext *context
); StThemeNode * st_theme_context_get_root_node (StThemeContext *context
); StThemeNode * st_theme_context_intern_node (StThemeContext *context
,StThemeNode *node
); StThemeContextClass;
StThemeContext * st_theme_context_new (void
);
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.
StThemeContext * st_theme_context_get_for_stage (ClutterStage *stage
);
Gets a singleton theme context associated with the stage.
|
a ClutterStage |
Returns : |
the singleton theme context for the stage. [transfer none] |
void st_theme_context_set_theme (StThemeContext *context
,StTheme *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 explicitely specified.
|
a StThemeContext |
StTheme * st_theme_context_get_theme (StThemeContext *context
);
Gets the default theme for the context. See st_theme_context_set_theme()
|
a StThemeContext |
Returns : |
the default theme for the context. [transfer none] |
void st_theme_context_set_font (StThemeContext *context
,const PangoFontDescription *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 overriden, 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.
|
a StThemeContext |
|
the default font for theme context |
const PangoFontDescription * st_theme_context_get_font (StThemeContext *context
);
Gets the default font for the theme context. See st_theme_context_set_font()
.
|
a StThemeContext |
Returns : |
the default font for the theme context. |
StThemeNode * st_theme_context_get_root_node (StThemeContext *context
);
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.
|
a StThemeContext |
Returns : |
the root node of the context's style tree. [transfer none] |
StThemeNode * st_theme_context_intern_node (StThemeContext *context
,StThemeNode *node
);
Return an existing node matching node
, or if that isn't possible,
node
itself.
|
a StThemeContext |
|
a StThemeNode |
Returns : |
a node with the same properties as node . [transfer none]
|