IMS2  Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
StyleSet Class Reference

A StyleSet is a collection of styles and in its entirety defines a skin. More...

Private Member Functions

GUI_fontGetFont (GUI_FONT fontid=GUI_SMALL_DEFAULT_FONT)
 
GUI_ElementStyleGetStyle (GUI_STYLE styleId=STYLE_DEFAULT)
 
void AddFont (GUI_font *font, GUI_FONT fontid)
 Adds a new font to the StyleSet. More...
 
void AddStyle (GUI_ElementStyle *style, GUI_STYLE styleid)
 Adds a new style to the StyleSet. More...
 

Private Attributes

map< GUI_FONT, GUI_font * > fonts
 maps identifiers to their respective fonts
 
map< GUI_STYLE, GUI_ElementStyle * > styles
 maps identifiers to their respective styles
 

Friends

class FontsAndStyles
 

Detailed Description

A StyleSet is a collection of styles and in its entirety defines a skin.

Note
A valid StyleSet must contain ALL ids defined in GUI_FONT and GUI_STYLE

Member Function Documentation

void StyleSet::AddFont ( GUI_font font,
GUI_FONT  fontid 
)
private

Adds a new font to the StyleSet.

Parameters
fontPointer to the already created font
fontidIdentifier font should be associated with
void StyleSet::AddStyle ( GUI_ElementStyle style,
GUI_STYLE  styleid 
)
private

Adds a new style to the StyleSet.

Parameters
stylePointer to the already created style
styleidIdentifier this style should be associated with
GUI_font * StyleSet::GetFont ( GUI_FONT  fontid = GUI_SMALL_DEFAULT_FONT)
private
Returns
A pointer to the querried font
Parameters
fontidThe identifier of the desired font
GUI_ElementStyle * StyleSet::GetStyle ( GUI_STYLE  styleId = STYLE_DEFAULT)
private
Returns
A pointer to the querried style
Parameters
styleIdThe identifier of the desired style

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