Image Component Library (ICL)
|
Class wrapping ColorLabel GUI compoenent handling. More...
#include <ColorHandle.h>
Public Member Functions | |
ColorHandle () | |
Create an empty handle. | |
ColorHandle (ColorLabel *l, GUIWidget *w) | |
Create a new LabelHandle. | |
void | operator= (const core::Color &rgb) |
sets new rgb color | |
void | operator= (const core::Color4D &rgba) |
sets new rgba color (alpha is only used if alpha is enabled for the gui component) | |
core::Color | getRGB () const |
returns current rgb color | |
core::Color4D | getColor () const |
convenienc function that is the same as getRGBA() | |
core::Color4D | getRGBA () const |
returns current rgba color | |
bool | hasAlpha () const |
return whether wrapped ColorLabel supports alpha | |
Private Member Functions | |
ColorLabel * | lab () |
utitlity function | |
const ColorLabel * | lab () const |
utitlity function |
Class wrapping ColorLabel GUI compoenent handling.
icl::qt::ColorHandle::ColorHandle | ( | ) | [inline] |
Create an empty handle.
icl::qt::ColorHandle::ColorHandle | ( | ColorLabel * | l, |
GUIWidget * | w | ||
) | [inline] |
Create a new LabelHandle.
core::Color4D icl::qt::ColorHandle::getColor | ( | ) | const [inline] |
convenienc function that is the same as getRGBA()
core::Color icl::qt::ColorHandle::getRGB | ( | ) | const [inline] |
returns current rgb color
core::Color4D icl::qt::ColorHandle::getRGBA | ( | ) | const [inline] |
returns current rgba color
bool icl::qt::ColorHandle::hasAlpha | ( | ) | const [inline] |
return whether wrapped ColorLabel supports alpha
ColorLabel* icl::qt::ColorHandle::lab | ( | ) | [inline, private] |
utitlity function
const ColorLabel* icl::qt::ColorHandle::lab | ( | ) | const [inline, private] |
utitlity function
void icl::qt::ColorHandle::operator= | ( | const core::Color & | rgb | ) | [inline] |
sets new rgb color
void icl::qt::ColorHandle::operator= | ( | const core::Color4D & | rgba | ) | [inline] |
sets new rgba color (alpha is only used if alpha is enabled for the gui component)