- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UStyleManager Class Reference

The style manager provides style and style hints for widgets. More...

#include <ustylemanager.hpp>

Inheritance diagram for ufo::UStyleManager:

ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 UStyleManager (UStyle *style, std::map< std::string, UStyleHints * > hints)
virtual ~UStyleManager ()
UStylegetStyle ()
void setStyle (UStyle *style)
UPalette getPalette ()
void setPalette (const UPalette &palette)
UFont getFont ()
void setFont (const UFont &font)
void loadStyleSheet (const std::string &fileName)
void putStyleHints (const std::string &classid, UStyleHints *styleHints)
void putStyleHints (const std::string &type, const std::string &classId, const std::string &name, UStyleHints *styleHints)
UStyleHintsgetStyleHints (const std::string &type, const std::string &classId="", const std::string &name="")
std::map< std::string, UStyleHints * > & getStyleHints ()

Detailed Description

The style manager provides style and style hints for widgets.

See also:
UStyle

UStyleHints

UWidget

Author:
Johannes Schmidt


Constructor & Destructor Documentation

virtual ufo::UStyleManager::~UStyleManager  )  [virtual]
 

Deletes all style hints objects created by this style manager.


Member Function Documentation

UFont ufo::UStyleManager::getFont  ) 
 

Returns:
The default font.

UPalette ufo::UStyleManager::getPalette  ) 
 

Returns:
The default palette.

UStyle* ufo::UStyleManager::getStyle  ) 
 

Returns:
The style object used for painting.

UStyleHints* ufo::UStyleManager::getStyleHints const std::string &  type,
const std::string &  classId = "",
const std::string &  name = ""
 

Returns:
The style hints object for the given css type, css class and name.

void ufo::UStyleManager::loadStyleSheet const std::string &  fileName  ) 
 

Loads a CSS style sheet file.

void ufo::UStyleManager::putStyleHints const std::string &  classid,
UStyleHints styleHints
 

Puts a copy of the given style hints in the cache.

void ufo::UStyleManager::setFont const UFont font  ) 
 

Sets the default font which is used if no other font is specified in the style hint object.

void ufo::UStyleManager::setPalette const UPalette palette  ) 
 

Sets the default palette which is used if no other palette is specified in the style hint object.

void ufo::UStyleManager::setStyle UStyle style  ) 
 

Sets the style object used for painting.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt