![]() |
ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/colormap.h>
Collaboration diagram for ColorMap:Public Member Functions | |
| ColorMap () | |
| ~ColorMap () | |
| ColorMap (const ColorMap &rhs) | |
| const ColorMap & | operator= (const ColorMap &rhs) |
| bool | operator== (const ColorMap &rhs) const |
| void | init (const KeyMap &map) |
| void | clear () |
| int | count () const |
| const char *const * | keyNames () const |
| QRgb * | colors () |
| const QRgb * | colors () const |
| QRgb * | colorForName (const char *name) |
| const QRgb * | colorForName (const char *name) const |
Private Member Functions | |
| void | alloc (int count) |
| void | deAlloc () |
Private Attributes | |
| const char ** | _keyNames |
| QRgb * | _colors |
| int | _count |
| int | _mapCount |
Definition at line 15 of file colormap.h.
| ColorMap::ColorMap | ( | ) |
Definition at line 3 of file colormap.cpp.
| ColorMap::~ColorMap | ( | ) |
Definition at line 8 of file colormap.cpp.
References deAlloc().
Here is the call graph for this function:| ColorMap::ColorMap | ( | const ColorMap & | rhs | ) |
Definition at line 12 of file colormap.cpp.
|
private |
Definition at line 43 of file colormap.cpp.
References _colors, _count, _keyNames, _mapCount, clear(), and deAlloc().
Referenced by init(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:| void ColorMap::clear | ( | ) |
Definition at line 61 of file colormap.cpp.
References _colors, and _count.
Referenced by alloc(), AnimScript::end(), and KbLight::resetIndicators().
Here is the caller graph for this function:| QRgb * ColorMap::colorForName | ( | const char * | name | ) |
Definition at line 88 of file colormap.cpp.
References _colors, _count, _keyNames, and qs_strcmp().
Referenced by KbLight::base(), KbLight::color(), KeyWidget::paintEvent(), AnimScript::readProcess(), KbLight::rebuildBaseMap(), and KbLight::setIndicator().
Here is the call graph for this function:
Here is the caller graph for this function:| const QRgb * ColorMap::colorForName | ( | const char * | name | ) | const |
Definition at line 98 of file colormap.cpp.
References _colors, _count, _keyNames, and qs_strcmp().
Here is the call graph for this function:
|
inline |
Definition at line 33 of file colormap.h.
References _colors.
Referenced by KbLight::base(), KbAnim::blend(), KbLight::color(), KbLight::frameUpdate(), KbLight::printRGB(), and AnimScript::readProcess().
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 31 of file colormap.h.
References _count.
Referenced by KbLight::base(), KbAnim::blend(), KbLight::color(), KbLight::frameUpdate(), KbLight::printRGB(), and AnimScript::readProcess().
Here is the caller graph for this function:
|
private |
Definition at line 55 of file colormap.cpp.
References _colors, _count, _keyNames, and _mapCount.
Referenced by alloc(), and ~ColorMap().
Here is the caller graph for this function:| void ColorMap::init | ( | const KeyMap & | map | ) |
Definition at line 69 of file colormap.cpp.
References _count, _keyNames, alloc(), Key::hasLed, Key::name, KeyMap::positions(), and qs_strcmp().
Referenced by AnimScript::init(), and KbLight::map().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 32 of file colormap.h.
References _keyNames.
Referenced by KbLight::printRGB().
Here is the caller graph for this function:| bool ColorMap::operator== | ( | const ColorMap & | rhs | ) | const |
|
private |
Definition at line 45 of file colormap.h.
Referenced by alloc(), clear(), colorForName(), colors(), deAlloc(), operator=(), and operator==().
|
private |
Definition at line 46 of file colormap.h.
Referenced by alloc(), clear(), colorForName(), count(), deAlloc(), init(), operator=(), and operator==().
|
private |
Definition at line 44 of file colormap.h.
Referenced by alloc(), colorForName(), deAlloc(), init(), keyNames(), operator=(), and operator==().
|
private |
Definition at line 46 of file colormap.h.