Collaboration diagram for Argl::ColorControl:
Static Public Member Functions | |
static ColorControl * | registerControl (Argl &, HINSTANCE) |
create a ColorControl instance, registering a Windows class with given instance and Argl reference | |
static bool | unregisterControl (HINSTANCE) |
destroys the ColorControl instance, unregistering the associated Windows class | |
Protected Member Functions | |
ColorControl (Argl &) | |
constructs ColorControl with given Argl reference | |
virtual | ~ColorControl () |
destructs ColorControl | |
void | onResize (HWND) |
updates appearance on window resize | |
void | draw (HWND, PAINTSTRUCT &) |
draws on paint request | |
void | onUpdate (HWND) |
indicates redraw on explicit update request | |
void | onMouseButton (HWND, WORD, POINTS) |
reacts on mouse button events allowing color point insertion, deletion and color setting | |
void | onMouseMove (HWND, WORD, POINTS) |
reacts on mouse move events allowing color point moving | |
Static Protected Member Functions | |
static LRESULT CALLBACK | WindowProc (HWND, UINT, WPARAM, LPARAM) |
window procedure, redirecting received windows messages to proper methods | |
Private Member Functions | |
ColorControl (ColorControl &) | |
void | operator= (ColorControl &) |
Private Attributes | |
bool | dragging |
float | selectedHeight |
float | draggedHeight |
Argl & | argl |
COLORREF | customColors [16] |
Static Private Attributes | |
static ColorControl * | pColorControl = 0 |
Argl::ColorControl::ColorControl | ( | Argl & | ) | [protected] |
constructs ColorControl with given Argl reference
Argl::ColorControl::~ColorControl | ( | ) | [protected, virtual] |
destructs ColorControl
Argl::ColorControl::ColorControl | ( | ColorControl & | ) | [private] |
Argl::ColorControl * Argl::ColorControl::registerControl | ( | Argl & | , | |
HINSTANCE | ||||
) | [static] |
create a ColorControl instance, registering a Windows class with given instance and Argl reference
bool Argl::ColorControl::unregisterControl | ( | HINSTANCE | ) | [static] |
destroys the ColorControl instance, unregistering the associated Windows class
LRESULT CALLBACK Argl::ColorControl::WindowProc | ( | HWND | , | |
UINT | , | |||
WPARAM | , | |||
LPARAM | ||||
) | [static, protected] |
window procedure, redirecting received windows messages to proper methods
void Argl::ColorControl::onResize | ( | HWND | ) | [protected] |
updates appearance on window resize
void Argl::ColorControl::draw | ( | HWND | , | |
PAINTSTRUCT & | ||||
) | [protected] |
draws on paint request
void Argl::ColorControl::onUpdate | ( | HWND | ) | [protected] |
indicates redraw on explicit update request
void Argl::ColorControl::onMouseButton | ( | HWND | , | |
WORD | , | |||
POINTS | ||||
) | [protected] |
reacts on mouse button events allowing color point insertion, deletion and color setting
void Argl::ColorControl::onMouseMove | ( | HWND | , | |
WORD | , | |||
POINTS | ||||
) | [protected] |
reacts on mouse move events allowing color point moving
void Argl::ColorControl::operator= | ( | ColorControl & | ) | [private] |
Argl::ColorControl * Argl::ColorControl::pColorControl = 0 [static, private] |
bool Argl::ColorControl::dragging [private] |
float Argl::ColorControl::selectedHeight [private] |
float Argl::ColorControl::draggedHeight [private] |
Argl& Argl::ColorControl::argl [private] |
COLORREF Argl::ColorControl::customColors[16] [private] |