wavelength 1.0.0
Loading...
Searching...
No Matches
UIStyle Class Reference

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.

Detailed 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.

Constructor & Destructor Documentation

◆ UIStyle()

UIStyle::UIStyle ( DataArray * pData)
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.

Parameters
pDataThe script description.
Ghidra address:
NTSC-U/C: 0x0020bc50
Ghidra address:
PAL: 0x00214a50

◆ ~UIStyle()

virtual UIStyle::~UIStyle ( )
inlinevirtual

Destroy the style.

Ghidra address:
NTSC-U/C: 0x00379620
Ghidra address:
PAL: 0x003e7d50

Member Function Documentation

◆ GetMat()

RndMat * UIStyle::GetMat ( int nState) const

Report the material of a state.

Parameters
nStateOne of UIComponent::State. Any value other than the normal and selected states selects the disabled state.
Returns
The material, or null.
Ghidra address:
NTSC-U/C: 0x0020bf80
Ghidra address:
PAL: 0x00214d80

◆ GetFont()

RndFont * UIStyle::GetFont ( int nState) const

Report the font of a state.

Parameters
nStateOne of UIComponent::State. Any value other than the normal and selected states selects the disabled state.
Returns
The font, or null.
Ghidra address:
NTSC-U/C: 0x0020bfa8
Ghidra address:
PAL: 0x00214da8

◆ SetNormal()

void UIStyle::SetNormal ( RndMat * pMat,
RndFont * pFont )

Set the material and the font of the normal state.

Parameters
pMatThe material.
pFontThe font.
Ghidra address:
NTSC-U/C: 0x0020bfd0
Ghidra address:
PAL: 0x00214dd0

◆ SetSelected()

void UIStyle::SetSelected ( RndMat * pMat,
RndFont * pFont )

Set the material and the font of the selected state.

Parameters
pMatThe material.
pFontThe font.
Ghidra address:
NTSC-U/C: 0x0020bfe0
Ghidra address:
PAL: 0x00214de0

◆ SetGrey()

void UIStyle::SetGrey ( RndMat * pMat,
RndFont * pFont )

Set the material and the font of the disabled state.

Parameters
pMatThe material.
pFontThe font.
Ghidra address:
NTSC-U/C: 0x0020bff0
Ghidra address:
PAL: 0x00214df0

◆ New()

UIStyle * UIStyle::New ( DataArray * pData)
inlinestatic

Create a style from its script description.

UIManager::Init() registers the routine for the entry type style.

Parameters
pDataThe script description.
Returns
The new style.
Ghidra address:
NTSC-U/C: 0x0037b9a8
Ghidra address:
PAL: 0x003ea0d8

◆ GetName()

const char * UIStyle::GetName ( ) const
inline
Returns
The name, a symbol.

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