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

#include <albaGUIColorSwatch.h>

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

Public Member Functions

 albaGUIColorSwatch (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(100, 50), long style=wxTAB_TRAVERSAL)
 
void SetColor (albaColor c)
 
albaColor GetColor ()
 

Protected Member Functions

void OnEraseBackground (wxEraseEvent &event)
 
void OnPaint (wxPaintEvent &event)
 

Protected Attributes

wxBitmap m_Bmp
 
albaColor m_Color
 

Detailed Description

albaGUIColorSwatch : small widget representing an RGBA color.

Transparency is visually suggested using a b/w chessboard which become more visible as long as the alpha increase.

Definition at line 28 of file albaGUIColorSwatch.h.

Constructor & Destructor Documentation

◆ albaGUIColorSwatch()

albaGUIColorSwatch::albaGUIColorSwatch ( wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(100, 50),
long  style = wxTAB_TRAVERSAL 
)

Member Function Documentation

◆ SetColor()

void albaGUIColorSwatch::SetColor ( albaColor  c)

◆ GetColor()

albaColor albaGUIColorSwatch::GetColor ( )
inline

Definition at line 35 of file albaGUIColorSwatch.h.

◆ OnEraseBackground()

void albaGUIColorSwatch::OnEraseBackground ( wxEraseEvent &  event)
inlineprotected

Definition at line 40 of file albaGUIColorSwatch.h.

◆ OnPaint()

void albaGUIColorSwatch::OnPaint ( wxPaintEvent &  event)
protected

Member Data Documentation

◆ m_Bmp

wxBitmap albaGUIColorSwatch::m_Bmp
protected

Definition at line 39 of file albaGUIColorSwatch.h.

◆ m_Color

albaColor albaGUIColorSwatch::m_Color
protected

Definition at line 43 of file albaGUIColorSwatch.h.


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