ClanLib  2.3.7
List of all members
CL_GUIThemeDefault Class Reference

Default GUI theme. More...

#include <gui_theme_default.h>

Inheritance diagram for CL_GUIThemeDefault:
Inheritance graph
[legend]

Public Member Functions

Construction
 CL_GUIThemeDefault ()
 Constructs a default GUI theme. More...
 
 ~CL_GUIThemeDefault ()
 
Attributes
CL_GUIThemeProvider_Default * get_provider () const
 Retrieves the gui theme provider. More...
 
Attributes
bool is_null () const
 Is Null. More...
 
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. More...
 
CL_ResourceManager get_resources () const
 Returns the resource manager associated with the theme. More...
 
Operations
void set_resources (CL_ResourceManager resources)
 Sets the resource manager to be used to retrieve resources. More...
 
void add_resources (CL_ResourceManager resources)
 Adds a resource manager to be used to retrieve resources. More...
 
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. More...
 
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. More...
 

Detailed Description

Default GUI theme.

Constructor & Destructor Documentation

CL_GUIThemeDefault::CL_GUIThemeDefault ( )

Constructs a default GUI theme.

CL_GUIThemeDefault::~CL_GUIThemeDefault ( )

Member Function Documentation

void CL_GUITheme::add_resources ( CL_ResourceManager  resources)
inherited

Adds a resource manager to be used to retrieve resources.

void CL_GUITheme::component_destroyed ( CL_GUIComponent component)
inherited

Notifies the theme that a component has been destroyed.

CL_StringRef CL_GUITheme::get_property ( const CL_GUIThemePart part,
const CL_StringRef name,
const CL_StringRef css_value 
)
inherited

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.

CL_GUIThemeProvider_Default* CL_GUIThemeDefault::get_provider ( ) const

Retrieves the gui theme provider.

CL_ResourceManager CL_GUITheme::get_resources ( ) const
inherited

Returns the resource manager associated with the theme.

bool CL_GUITheme::is_null ( ) const
inherited

Is Null.

Returns
true = null
void CL_GUITheme::render_box ( CL_GraphicContext gc,
CL_GUIThemePart part,
const CL_Rect rect,
const CL_Rect clip_rect 
)
inherited

Renders a background box for the given theme part.

CL_Rect CL_GUITheme::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 
)
inherited
void CL_GUITheme::set_resources ( CL_ResourceManager  resources)
inherited

Sets the resource manager to be used to retrieve resources.


The documentation for this class was generated from the following file: