Maps skin states to indices.
More...
#include <SSkinObjBase.h>
|
| static int | GetDefIndex (DWORD dwState, bool checkAsPushdown=false) |
| | Gets the default index for a given state.
|
| |
| static DWORD | String2State (const SStringW &strState) |
| | Converts a string representation of a state to a DWORD value.
|
| |
Maps skin states to indices.
This class provides functionality to map skin states to their corresponding indices. It can be initialized from an XML node and supports default state-to-index mappings.
Definition at line 19 of file SSkinObjBase.h.
◆ SState2Index() [1/2]
| SState2Index::SState2Index |
( |
| ) |
|
|
inline |
◆ SState2Index() [2/2]
| SNSBEGIN SState2Index::SState2Index |
( |
const SState2Index & | src | ) |
|
◆ GetDefIndex()
| int SState2Index::GetDefIndex |
( |
DWORD | dwState, |
|
|
bool | checkAsPushdown = false ) |
|
static |
Gets the default index for a given state.
- Parameters
-
| dwState | State to get the default index for. |
| checkAsPushdown | Flag to check if the state should be treated as pushdown. |
- Returns
- Default index corresponding to the state.
Definition at line 40 of file SSkinObjBase.cpp.
◆ GetIndex()
| int SState2Index::GetIndex |
( |
DWORD | dwState, |
|
|
bool | checkAsPushdown ) const |
Gets the index for a given state.
- Parameters
-
| dwState | State to get the index for. |
| checkAsPushdown | Flag to check if the state should be treated as pushdown. |
- Returns
- Index corresponding to the state.
Definition at line 61 of file SSkinObjBase.cpp.
◆ Init()
| BOOL SState2Index::Init |
( |
IXmlNode * | pNode | ) |
|
Initializes the state-to-index mapping from an XML node.
- Parameters
-
| pNode | Pointer to the XML node containing the state mappings. |
- Returns
- TRUE if initialization is successful, FALSE otherwise.
Definition at line 13 of file SSkinObjBase.cpp.
◆ String2State()
| DWORD SState2Index::String2State |
( |
const SStringW & | strState | ) |
|
|
static |
Converts a string representation of a state to a DWORD value.
- Parameters
-
| strState | String representation of the state. |
- Returns
- DWORD value representing the state.
Definition at line 85 of file SSkinObjBase.cpp.
◆ m_mapOfStates
| SMap<DWORD, int> SState2Index::m_mapOfStates |
|
protected |
The documentation for this class was generated from the following files: