Rocket::Core::StyleSheetFactory Class Reference

#include <StyleSheetFactory.h>


Static Public Member Functions

static bool Initialise ()
 Initialise the style factory.
static void Shutdown ()
 Shutdown style manager.
static StyleSheetGetStyleSheet (const String &sheet)
static StyleSheetGetStyleSheet (const StringList &sheets)
static void ClearStyleSheetCache ()
 Clear the style sheet cache.
static StyleSheetNodeSelectorGetSelector (const String &name)

Detailed Description

Creates stylesheets on the fly as needed. The factory keeps a cache of built sheets for optimisation.

Author:
Lloyd Weehuizen

Member Function Documentation

StyleSheet * Rocket::Core::StyleSheetFactory::GetStyleSheet ( const String sheet  )  [static]

Gets the named sheet, retrieving it from the cache if its already been loaded

Parameters:
sheet name of sheet to load

StyleSheet * Rocket::Core::StyleSheetFactory::GetStyleSheet ( const StringList &  sheets  )  [static]

Builds and returns a stylesheet based on the list of input sheets Generated sheets will be cached for later use

Parameters:
sheets List of sheets to combine into one

StyleSheetNodeSelector * Rocket::Core::StyleSheetFactory::GetSelector ( const String name  )  [static]

Returns one of the available node selectors.

Parameters:
name[in] The name of the desired selector.
Returns:
The selector registered with the given name, or NULL if none exists.


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