ALBA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
albaGUIColorWidget Class Reference

#include <albaGUIColorWidget.h>

Inheritance diagram for albaGUIColorWidget:
Inheritance graph
[legend]
Collaboration diagram for albaGUIColorWidget:
Collaboration graph
[legend]

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

albaObserverm_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
 
albaGUIColorSwatchm_ColorSwatch
 
albaGUIColorSwatchm_PrevColorSwatch
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ albaGUIColorWidget()

albaGUIColorWidget::albaGUIColorWidget ( wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(350, 135),
long  style = wxTAB_TRAVERSAL 
)

Member Function Documentation

◆ SetListener()

virtual void albaGUIColorWidget::SetListener ( albaObserver Listener)
inlinevirtual

Definition at line 34 of file albaGUIColorWidget.h.

◆ SetColor()

void albaGUIColorWidget::SetColor ( albaColor  c)

◆ GetColor()

albaColor albaGUIColorWidget::GetColor ( )

◆ OnEvent()

void albaGUIColorWidget::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Implements albaObserver.

◆ InitBitmap()

void albaGUIColorWidget::InitBitmap ( )
protected

◆ UpdateHSVBitmap()

void albaGUIColorWidget::UpdateHSVBitmap ( )
protected

◆ UpdateAlphaBitmap()

void albaGUIColorWidget::UpdateAlphaBitmap ( )
protected

◆ PaintHandles()

void albaGUIColorWidget::PaintHandles ( wxPaintDC &  DC)
protected

◆ OnPaint()

void albaGUIColorWidget::OnPaint ( wxPaintEvent &  event)
protected

◆ OnLeftMouseButtonDown()

void albaGUIColorWidget::OnLeftMouseButtonDown ( wxMouseEvent &  event)
protected

◆ OnLeftMouseButtonUp()

void albaGUIColorWidget::OnLeftMouseButtonUp ( wxMouseEvent &  event)
protected

◆ OnMouseMotion()

void albaGUIColorWidget::OnMouseMotion ( wxMouseEvent &  event)
protected

◆ OnColorChanged()

void albaGUIColorWidget::OnColorChanged ( bool  notify = true)
protected

Member Data Documentation

◆ m_Listener

albaObserver* albaGUIColorWidget::m_Listener
protected

Definition at line 42 of file albaGUIColorWidget.h.

◆ m_HsvBmp

wxBitmap albaGUIColorWidget::m_HsvBmp
protected

Definition at line 44 of file albaGUIColorWidget.h.

◆ m_HsvPosition

wxPoint albaGUIColorWidget::m_HsvPosition
protected

Definition at line 45 of file albaGUIColorWidget.h.

◆ m_HsvSize

int albaGUIColorWidget::m_HsvSize
protected

Definition at line 46 of file albaGUIColorWidget.h.

◆ m_HsvInnerRadius

int albaGUIColorWidget::m_HsvInnerRadius
protected

Definition at line 47 of file albaGUIColorWidget.h.

◆ m_HsvOuterRadius

int albaGUIColorWidget::m_HsvOuterRadius
protected

Definition at line 48 of file albaGUIColorWidget.h.

◆ m_SvPosition

wxPoint albaGUIColorWidget::m_SvPosition
protected

Definition at line 49 of file albaGUIColorWidget.h.

◆ m_SvSize

int albaGUIColorWidget::m_SvSize
protected

Definition at line 50 of file albaGUIColorWidget.h.

◆ m_AlphaBmp

wxBitmap albaGUIColorWidget::m_AlphaBmp
protected

Definition at line 52 of file albaGUIColorWidget.h.

◆ m_AlphaBmpPosition

wxPoint albaGUIColorWidget::m_AlphaBmpPosition
protected

Definition at line 53 of file albaGUIColorWidget.h.

◆ m_AlphaBmpSize

wxSize albaGUIColorWidget::m_AlphaBmpSize
protected

Definition at line 54 of file albaGUIColorWidget.h.

◆ m_CursorSize

int albaGUIColorWidget::m_CursorSize
protected

Definition at line 56 of file albaGUIColorWidget.h.

◆ m_AlphaCursorPosition

wxPoint albaGUIColorWidget::m_AlphaCursorPosition
protected

Definition at line 57 of file albaGUIColorWidget.h.

◆ m_HsvCursorPosition

wxPoint albaGUIColorWidget::m_HsvCursorPosition
protected

Definition at line 58 of file albaGUIColorWidget.h.

◆ m_SvCursorPosition

wxPoint albaGUIColorWidget::m_SvCursorPosition
protected

Definition at line 59 of file albaGUIColorWidget.h.

◆ m_Dragging

int albaGUIColorWidget::m_Dragging
protected

Definition at line 60 of file albaGUIColorWidget.h.

◆ m_Color

albaColor albaGUIColorWidget::m_Color
protected

Definition at line 74 of file albaGUIColorWidget.h.

◆ m_Clipboard

albaColor albaGUIColorWidget::m_Clipboard
protected

Definition at line 75 of file albaGUIColorWidget.h.

◆ m_ColorSwatch

albaGUIColorSwatch* albaGUIColorWidget::m_ColorSwatch
protected

Definition at line 77 of file albaGUIColorWidget.h.

◆ m_PrevColorSwatch

albaGUIColorSwatch* albaGUIColorWidget::m_PrevColorSwatch
protected

Definition at line 78 of file albaGUIColorWidget.h.


The documentation for this class was generated from the following file: