Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

PG_Theme Class Reference

List of all members.

Detailed Description

Theme/style definition class.


Public Member Functions

virtual ~PG_Theme ()
virtual const char * FindDefaultFontName ()=0
virtual int FindDefaultFontSize ()=0
virtual PG_Font::Style FindDefaultFontStyle ()=0
virtual const char * FindFontName (const char *widgettype, const char *objectname)=0
virtual int FindFontSize (const char *widgettype, const char *objectname)=0
virtual PG_Font::Style FindFontStyle (const char *widgettype, const char *objectname)=0
virtual SDL_Surface * FindSurface (const char *widgettype, const char *object, const char *name)=0
virtual PG_GradientFindGradient (const char *widgettype, const char *object, const char *name)=0
virtual void GetProperty (const char *widgettype, const char *object, const char *name, long &prop)=0
virtual void GetProperty (const char *widgettype, const char *object, const char *name, Uint8 &prop)=0
virtual void GetProperty (const char *widgettype, const char *object, const char *name, bool &prop)=0
virtual void GetProperty (const char *widgettype, const char *object, const char *name, int &prop)=0
void GetProperty (const char *widgettype, const char *object, const char *name, Uint16 &prop)
virtual void GetAlignment (const char *widgettype, const char *object, const char *name, PG_Label::TextAlign &align)=0
virtual void GetColor (const char *widgettype, const char *object, const char *name, PG_Color &color)=0
virtual const char * FindString (const char *widgettype, const char *object, const char *name)=0

Static Public Member Functions

PG_ThemeLoad (const char *xmltheme)
 Load and process a XML theme definition file.

void Unload (PG_Theme *theme)


Constructor & Destructor Documentation

virtual PG_Theme::~PG_Theme  )  [inline, virtual]
 


Member Function Documentation

virtual const char* PG_Theme::FindDefaultFontName  )  [pure virtual]
 

virtual int PG_Theme::FindDefaultFontSize  )  [pure virtual]
 

virtual PG_Font::Style PG_Theme::FindDefaultFontStyle  )  [pure virtual]
 

virtual const char* PG_Theme::FindFontName const char *  widgettype,
const char *  objectname
[pure virtual]
 

virtual int PG_Theme::FindFontSize const char *  widgettype,
const char *  objectname
[pure virtual]
 

virtual PG_Font::Style PG_Theme::FindFontStyle const char *  widgettype,
const char *  objectname
[pure virtual]
 

virtual PG_Gradient* PG_Theme::FindGradient const char *  widgettype,
const char *  object,
const char *  name
[pure virtual]
 

virtual const char* PG_Theme::FindString const char *  widgettype,
const char *  object,
const char *  name
[pure virtual]
 

virtual SDL_Surface* PG_Theme::FindSurface const char *  widgettype,
const char *  object,
const char *  name
[pure virtual]
 

Examples:
dblbuffer.cpp, and paratest.cpp.

virtual void PG_Theme::GetAlignment const char *  widgettype,
const char *  object,
const char *  name,
PG_Label::TextAlign align
[pure virtual]
 

virtual void PG_Theme::GetColor const char *  widgettype,
const char *  object,
const char *  name,
PG_Color color
[pure virtual]
 

void PG_Theme::GetProperty const char *  widgettype,
const char *  object,
const char *  name,
Uint16 &  prop
[inline]
 

virtual void PG_Theme::GetProperty const char *  widgettype,
const char *  object,
const char *  name,
int &  prop
[pure virtual]
 

virtual void PG_Theme::GetProperty const char *  widgettype,
const char *  object,
const char *  name,
bool &  prop
[pure virtual]
 

virtual void PG_Theme::GetProperty const char *  widgettype,
const char *  object,
const char *  name,
Uint8 &  prop
[pure virtual]
 

virtual void PG_Theme::GetProperty const char *  widgettype,
const char *  object,
const char *  name,
long &  prop
[pure virtual]
 

PG_Theme* PG_Theme::Load const char *  xmltheme  )  [static]
 

Load and process a XML theme definition file.

Parameters:
xmltheme The file name for the theme. The extension ".theme" is assumed.
Returns:
pointer to a newly created PG_Theme object or NULL if the operation failed
Given the name of a file that contains the theme definition, it loads the Theme into ParaGUI's system

void PG_Theme::Unload PG_Theme theme  )  [static]
 



The ParaGUI Project - Alexander Pipelka