|
wavelength 1.0.0
|
Material and font a component draws with in each of its states. More...
#include <uistyle.h>
Public Member Functions | |
| UIStyle (DataArray *pData) | |
| Construct a style from its script description. | |
| virtual | ~UIStyle () |
| Destroy the style. | |
| RndMat * | GetMat (int nState) const |
| Report the material of a state. | |
| RndFont * | GetFont (int nState) const |
| Report the font of a state. | |
| void | SetNormal (RndMat *pMat, RndFont *pFont) |
| Set the material and the font of the normal state. | |
| void | SetSelected (RndMat *pMat, RndFont *pFont) |
| Set the material and the font of the selected state. | |
| void | SetGrey (RndMat *pMat, RndFont *pFont) |
| Set the material and the font of the disabled state. | |
| const char * | GetName () const |
Static Public Member Functions | |
| static UIStyle * | New (DataArray *pData) |
| Create a style from its script description. | |
Material and font a component draws with in each of its states.
The RTTI includes the class name. The object is 0x20 bytes, allocated with the global operator new. UIManager builds one for each style entry of the front-end description and finds it by mName. The entry's normal, selected, and grey arrays each list a material and a font by object name.
|
explicit |
Construct a style from its script description.
Index 1 of the description is the name. A state whose array is absent keeps a null material and font, and a name that resolves to no object of the expected class leaves a null pointer.
| pData | The script description. |
|
inlinevirtual |
Destroy the style.
| RndMat * UIStyle::GetMat | ( | int | nState | ) | const |
Report the material of a state.
| nState | One of UIComponent::State. Any value other than the normal and selected states selects the disabled state. |
| RndFont * UIStyle::GetFont | ( | int | nState | ) | const |
Report the font of a state.
| nState | One of UIComponent::State. Any value other than the normal and selected states selects the disabled state. |
Set the material and the font of the normal state.
| pMat | The material. |
| pFont | The font. |
Set the material and the font of the selected state.
| pMat | The material. |
| pFont | The font. |
Set the material and the font of the disabled state.
| pMat | The material. |
| pFont | The font. |
Create a style from its script description.
UIManager::Init() registers the routine for the entry type style.
| pData | The script description. |
|
inline |