ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/colormap.h>
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().
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=().
void ColorMap::clear | ( | ) |
Definition at line 61 of file colormap.cpp.
References _colors, and _count.
Referenced by alloc(), AnimScript::end(), and KbLight::resetIndicators().
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().
const QRgb * ColorMap::colorForName | ( | const char * | name | ) | const |
Definition at line 98 of file colormap.cpp.
References _colors, _count, _keyNames, and qs_strcmp().
|
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().
|
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().
|
private |
Definition at line 55 of file colormap.cpp.
References _colors, _count, _keyNames, and _mapCount.
Referenced by alloc(), and ~ColorMap().
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().
|
inline |
Definition at line 32 of file colormap.h.
References _keyNames.
Referenced by KbLight::printRGB().
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.