Introduction
Downloads
Documentation
Tutorials
Pixie Lite
Forum

Home

MarkupTextManager Class Reference

Inheritance diagram for MarkupTextManager:

Singleton< MarkupTextManager >

List of all members.


Classes

struct  FontStyleDefinition
struct  RegisteredVariable

Public Types

enum  FontStyle {
  FontStyle_StringId, FontStyle_Normal, FontStyle_Bold, FontStyle_Italic,
  FontStyle_BoldItalic, FontStyle_Headline, FontStyle_Link, FontStyle_LinkHover,
  FontStyle_Option, FontStyle_OptionHover, FontStyle_OptionDisabled
}

Public Member Functions

 MarkupTextManager ()
virtual ~MarkupTextManager ()
void SetFontStyle (FontStyle style, const Asset &font, unsigned short color)
void SetFontStyle (FontStyle style, const Asset &font, unsigned short color, unsigned short bgcolor, unsigned char opacity=255)
void SetFontStyle (StringId style, const Asset &font, unsigned short color)
void SetFontStyle (StringId style, const Asset &font, unsigned short color, unsigned short bgcolor, unsigned char opacity=255)
FontGetFont (FontStyle style)
unsigned short GetFontColor (FontStyle style)
unsigned char GetFontBgOpacity (FontStyle style)
unsigned short GetFontBgColor (FontStyle style)
FontGetFont (StringId style)
unsigned short GetFontColor (StringId style)
unsigned char GetFontBgOpacity (StringId style)
unsigned short GetFontBgColor (StringId style)
void RegisterVariable (StringId name, int *value)
void RegisterVariable (StringId name, StringId *value)
void RegisterVariable (StringId name, Array< int > *values)
void RegisterVariable (StringId name, Array< StringId > *value)
void UnregisterVariable (StringId name)
void GetVariableValue (StringId name, char *buffer, int bufferSize)
void GetVariableValue (StringId name, int index, char *buffer, int bufferSize)

Detailed Description

Author:
Mattias Gustavsson
Todo:
Centered text (irregular backgrounds)

Refactor and cleanup

Definition at line 27 of file MarkupTextManager.h.


Member Enumeration Documentation

Enumerator:
FontStyle_StringId 
FontStyle_Normal 
FontStyle_Bold 
FontStyle_Italic 
FontStyle_BoldItalic 
FontStyle_Headline 
FontStyle_Link 
FontStyle_LinkHover 
FontStyle_Option 
FontStyle_OptionHover 
FontStyle_OptionDisabled 

Definition at line 34 of file MarkupTextManager.h.


Constructor & Destructor Documentation

MarkupTextManager::MarkupTextManager (  ) 

Definition at line 10 of file MarkupTextManager.cpp.

MarkupTextManager::~MarkupTextManager (  )  [virtual]

Definition at line 17 of file MarkupTextManager.cpp.


Member Function Documentation

void MarkupTextManager::SetFontStyle ( FontStyle  style,
const Asset font,
unsigned short  color 
)

Definition at line 130 of file MarkupTextManager.cpp.

void MarkupTextManager::SetFontStyle ( FontStyle  style,
const Asset font,
unsigned short  color,
unsigned short  bgcolor,
unsigned char  opacity = 255 
)

Definition at line 139 of file MarkupTextManager.cpp.

void MarkupTextManager::SetFontStyle ( StringId  style,
const Asset font,
unsigned short  color 
)

Definition at line 148 of file MarkupTextManager.cpp.

void MarkupTextManager::SetFontStyle ( StringId  style,
const Asset font,
unsigned short  color,
unsigned short  bgcolor,
unsigned char  opacity = 255 
)

Definition at line 157 of file MarkupTextManager.cpp.

Font * MarkupTextManager::GetFont ( FontStyle  style  ) 

Definition at line 166 of file MarkupTextManager.cpp.

unsigned short MarkupTextManager::GetFontColor ( FontStyle  style  ) 

Definition at line 180 of file MarkupTextManager.cpp.

unsigned char MarkupTextManager::GetFontBgOpacity ( FontStyle  style  ) 

Definition at line 194 of file MarkupTextManager.cpp.

unsigned short MarkupTextManager::GetFontBgColor ( FontStyle  style  ) 

Definition at line 208 of file MarkupTextManager.cpp.

Font * MarkupTextManager::GetFont ( StringId  style  ) 

Definition at line 222 of file MarkupTextManager.cpp.

unsigned short MarkupTextManager::GetFontColor ( StringId  style  ) 

Definition at line 236 of file MarkupTextManager.cpp.

unsigned char MarkupTextManager::GetFontBgOpacity ( StringId  style  ) 

Definition at line 250 of file MarkupTextManager.cpp.

unsigned short MarkupTextManager::GetFontBgColor ( StringId  style  ) 

Definition at line 264 of file MarkupTextManager.cpp.

void MarkupTextManager::RegisterVariable ( StringId  name,
int *  value 
)

Definition at line 295 of file MarkupTextManager.cpp.

void MarkupTextManager::RegisterVariable ( StringId  name,
StringId value 
)

Definition at line 309 of file MarkupTextManager.cpp.

void MarkupTextManager::RegisterVariable ( StringId  name,
Array< int > *  values 
)

Definition at line 323 of file MarkupTextManager.cpp.

void MarkupTextManager::RegisterVariable ( StringId  name,
Array< StringId > *  value 
)

Definition at line 337 of file MarkupTextManager.cpp.

void MarkupTextManager::UnregisterVariable ( StringId  name  ) 

Definition at line 351 of file MarkupTextManager.cpp.

void MarkupTextManager::GetVariableValue ( StringId  name,
char *  buffer,
int  bufferSize 
)

Definition at line 367 of file MarkupTextManager.cpp.

void MarkupTextManager::GetVariableValue ( StringId  name,
int  index,
char *  buffer,
int  bufferSize 
)

Definition at line 396 of file MarkupTextManager.cpp.



Pixie University and the Pixie Game Engine is created and managed by Mattias Gustavsson.
Reproduction/republishing of any material on this site without permission is strictly prohibited.