Manages named colors. More...
#include <SNamedValue.h>
Public Member Functions | |
BOOL | Get (const SStringW &strValue, COLORREF &cr) const |
Retrieves a color value by name, automatically converting named colors. | |
COLORREF | Get (int idx) const |
Retrieves a color value by index. | |
![]() | |
virtual BOOL | Init (SXmlNode xmlNode) |
Initializes the named values from an XML node. | |
COLORREF | String2Value (const SStringW &strName) const |
Converts a string name to its corresponding value. | |
BOOL | FindValue (const SStringW &strName, COLORREF &value) const |
Finds the value associated with a given name. | |
COLORREF | GetAt (const int idx) const |
Retrieves the value at a specific index. | |
size_t | Merge (const SNamedValue &src) |
Merges the named values from another SNamedValue object. | |
UINT | GetCount () const |
Retrieves the number of named values. | |
Additional Inherited Members | |
![]() | |
typedef TNAMEDVALUE< COLORREF > | NAMEDVALUE |
![]() | |
static int | Compare (const void *p1, const void *p2) |
Comparison function for sorting and searching. | |
![]() | |
SArray< NAMEDVALUE > | m_lstNamedValue |
Manages named colors.
Definition at line 237 of file SNamedValue.h.
BOOL SNamedColor::Get | ( | const SStringW & | strValue, |
COLORREF & | cr ) const |
Retrieves a color value by name, automatically converting named colors.
strValue | Name of the color. |
cr | Variable to store the retrieved color value. |
Definition at line 124 of file SNamedValue.cpp.
|
inline |
Retrieves a color value by index.
idx | Index of the color. |
Definition at line 252 of file SNamedValue.h.