#include <gui_theme_default.h>
Inheritance diagram for CL_GUIThemeDefault:

Public Member Functions | |
Construction | |
| CL_GUIThemeDefault () | |
| Constructs a default GUI theme. | |
| ~CL_GUIThemeDefault () | |
Attributes | |
| CL_GUIThemeProvider_Default * | get_provider () const |
| Retrieves the gui theme provider. | |
Attributes | |
| bool | is_null () |
| Is Null. | |
| CL_StringRef | get_property (const CL_GUIThemePart &part, const CL_StringRef &name, const CL_StringRef &css_value) |
| Allows the theme to alter GUI part properties. | |
| CL_ResourceManager | get_resources () const |
| Returns the resource manager associated with the theme. | |
Operations | |
| void | set_resources (CL_ResourceManager resources) |
| Sets the resource manager to be used to retrieve resources. | |
| void | render_box (CL_GraphicContext &gc, CL_GUIThemePart &part, const CL_Rect &rect, const CL_Rect &clip_rect) |
| Renders a background box for the given theme part. | |
| CL_Rect | render_text (CL_GraphicContext &gc, CL_GUIThemePart &part, CL_Font &font, const CL_StringRef &text, const CL_Rect &content_rect, const CL_Rect &clip_rect) |
| void | component_destroyed (CL_GUIComponent *component) |
| Notifies the theme that a component has been destroyed. | |
|
|
Constructs a default GUI theme.
|
|
|
|
|
|
Notifies the theme that a component has been destroyed.
|
|
||||||||||||||||
|
Allows the theme to alter GUI part properties. When a component queries a theme part for a property, the property is searched in the CSS document and then passed to get_property. If the theme does not wish to alter the value of the property, it simply returns the css_value parameter. The string returned by this function is the result of CL_GUIThemePart::get_property. |
|
|
Retrieves the gui theme provider.
Reimplemented from CL_GUITheme. |
|
|
Returns the resource manager associated with the theme.
|
|
|
Is Null.
|
|
||||||||||||||||||||
|
Renders a background box for the given theme part.
|
|
||||||||||||||||||||||||||||
|
|
|
|
Sets the resource manager to be used to retrieve resources.
|
1.4.6