Hasty Badger
Small UI library (a branch of Turbo Badger)
|
TBColorManager contains a map of global color names. More...
#include <tb_color.h>
Public Member Functions | |
void | Load (TBNode *n, TBSkin *skin) |
Load a list of colors from a node. More... | |
bool | Define (const TBStr &cid, TBColor color) |
Define a color, if not already defined. More... | |
bool | IsDefined (const TBStr &cid) |
Is the color defined? | |
bool | IsDefined (const TBColor &color) |
Is the color defined? | |
void | ReDefine (const TBStr &cid, TBColor color) |
(Re)Define a color, no matter what. More... | |
void | Clear () |
Clear the list of colors. More... | |
TBColor | GetColor (const TBStr &cid) const |
Return the color with the given id. More... | |
TBStr | GetColorID (const TBColor &color) const |
Return the id of the given color, or 0. More... | |
const std::map< TBStr, TBColor > | GetColorMap () const |
Return the cid of the given color, or 0. More... | |
void | Dump (const TBStr &filename) |
Dump the current color map. | |
TBColorManager contains a map of global color names.
void tb::TBColorManager::Clear | ( | ) |
Clear the list of colors.
Define a color, if not already defined.
Return the color with the given id.
If there is no color with that id, 0 will be returned.
Return the id of the given color, or 0.
If there is no color with that id, an empty TBStr() will be returned.
Return the cid of the given color, or 0.
If there is no color with that cid, 0 will be returned.
(Re)Define a color, no matter what.