|
ALBA
|
#include <albaGUIColorWidget.h>


Public Member Functions | |
| albaGUIColorWidget (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(350, 135), long style=wxTAB_TRAVERSAL) | |
| virtual void | SetListener (albaObserver *Listener) |
| void | SetColor (albaColor c) |
| albaColor | GetColor () |
| void | OnEvent (albaEventBase *event) |
Public Member Functions inherited from albaObserver | |
| albaObserver () | |
| virtual | ~albaObserver () |
| virtual void | OnEvent (albaEventBase *e)=0 |
Protected Member Functions | |
| void | InitBitmap () |
| void | UpdateHSVBitmap () |
| void | UpdateAlphaBitmap () |
| void | PaintHandles (wxPaintDC &DC) |
| void | OnPaint (wxPaintEvent &event) |
| void | OnLeftMouseButtonDown (wxMouseEvent &event) |
| void | OnLeftMouseButtonUp (wxMouseEvent &event) |
| void | OnMouseMotion (wxMouseEvent &event) |
| void | OnColorChanged (bool notify=true) |
Protected Attributes | |
| albaObserver * | m_Listener |
| wxBitmap | m_HsvBmp |
| wxPoint | m_HsvPosition |
| int | m_HsvSize |
| int | m_HsvInnerRadius |
| int | m_HsvOuterRadius |
| wxPoint | m_SvPosition |
| int | m_SvSize |
| wxBitmap | m_AlphaBmp |
| wxPoint | m_AlphaBmpPosition |
| wxSize | m_AlphaBmpSize |
| int | m_CursorSize |
| wxPoint | m_AlphaCursorPosition |
| wxPoint | m_HsvCursorPosition |
| wxPoint | m_SvCursorPosition |
| int | m_Dragging |
| albaColor | m_Color |
| albaColor | m_Clipboard |
| albaGUIColorSwatch * | m_ColorSwatch |
| albaGUIColorSwatch * | m_PrevColorSwatch |
albaGUIColorWidget : helper class for albaGUILutEditor and albaGUIColorEditor.
Usage: Create it, set the initial color, set the Listener. The listener will be informed when the user has changed the color.
Definition at line 28 of file albaGUIColorWidget.h.
| albaGUIColorWidget::albaGUIColorWidget | ( | wxWindow * | parent, |
| wxWindowID | id = -1, |
||
| const wxPoint & | pos = wxDefaultPosition, |
||
| const wxSize & | size = wxSize(350, 135), |
||
| long | style = wxTAB_TRAVERSAL |
||
| ) |
|
inlinevirtual |
Definition at line 34 of file albaGUIColorWidget.h.
| void albaGUIColorWidget::SetColor | ( | albaColor | c | ) |
| albaColor albaGUIColorWidget::GetColor | ( | ) |
|
virtual |
process the events sent by subjects
Implements albaObserver.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 42 of file albaGUIColorWidget.h.
|
protected |
Definition at line 44 of file albaGUIColorWidget.h.
|
protected |
Definition at line 45 of file albaGUIColorWidget.h.
|
protected |
Definition at line 46 of file albaGUIColorWidget.h.
|
protected |
Definition at line 47 of file albaGUIColorWidget.h.
|
protected |
Definition at line 48 of file albaGUIColorWidget.h.
|
protected |
Definition at line 49 of file albaGUIColorWidget.h.
|
protected |
Definition at line 50 of file albaGUIColorWidget.h.
|
protected |
Definition at line 52 of file albaGUIColorWidget.h.
|
protected |
Definition at line 53 of file albaGUIColorWidget.h.
|
protected |
Definition at line 54 of file albaGUIColorWidget.h.
|
protected |
Definition at line 56 of file albaGUIColorWidget.h.
|
protected |
Definition at line 57 of file albaGUIColorWidget.h.
|
protected |
Definition at line 58 of file albaGUIColorWidget.h.
|
protected |
Definition at line 59 of file albaGUIColorWidget.h.
|
protected |
Definition at line 60 of file albaGUIColorWidget.h.
|
protected |
Definition at line 74 of file albaGUIColorWidget.h.
|
protected |
Definition at line 75 of file albaGUIColorWidget.h.
|
protected |
Definition at line 77 of file albaGUIColorWidget.h.
|
protected |
Definition at line 78 of file albaGUIColorWidget.h.