Holds static utility functions to interact with the ALIGNMENT enum class values. More...
Static Public Member Functions | |
static nkMemory::StringView | enumToString (ALIGNMENT toConvert) |
static ALIGNMENT | stringToEnum (nkMemory::StringView toConvert) |
Holds static utility functions to interact with the ALIGNMENT enum class values.
|
static |
Converts an ALIGNMENT value to a string representation. Value range is :
Enum value | String value |
---|---|
ALIGNMENT::TOP_LEFT | 'TOP_LEFT' |
ALIGNMENT::CENTER | 'CENTER' |
ALIGNMENT::BOTTOM_RIGHT | 'BOTTOM_RIGHT' |
toConvert | The value to convert to a string. |
|
static |
Converts a string to an ALIGNMENT value. Value range is :
String value | Enum value |
---|---|
'TOP_LEFT' | ALIGNMENT::TOP_LEFT |
'CENTER' | ALIGNMENT::CENTER |
'BOTTOM_RIGHT' / Anything else | ALIGNMENT::BOTTOM_RIGHT' |
toConvert | The string to convert. |