ColorButton Class Reference

a wxBitmapButton whose Bitmap is a rectangle with uni color solid fill More...

#include <colorbutton.h>

Public Member Functions

 ColorButton (wxWindow *parent, wxWindowID id, const wxBitmap &bitmap=wxBitmap(), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxBU_AUTODRAW, const wxValidator &validator=wxDefaultValidator, const wxString &name=_T("button"))
 ColorButton (wxWindow *parent, wxWindowID id, const wxColour &color, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxBU_AUTODRAW, const wxValidator &validator=wxDefaultValidator, const wxString &name=_T("button"))
virtual ~ColorButton ()
void SetColor (const wxColour &color)
wxColour GetColor ()

Protected Member Functions

wxBitmap GetBitmapFromColor (const wxColour &color)

Protected Attributes

wxSize m_size
wxColour m_color

Detailed Description

a wxBitmapButton whose Bitmap is a rectangle with uni color solid fill

Definition at line 7 of file colorbutton.h.


Constructor & Destructor Documentation

ColorButton::ColorButton ( wxWindow *  parent,
wxWindowID  id,
const wxBitmap &  bitmap = wxBitmap(),
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = wxBU_AUTODRAW,
const wxValidator &  validator = wxDefaultValidator,
const wxString name = _T("button") 
)

Definition at line 12 of file colorbutton.cpp.

ColorButton::ColorButton ( wxWindow *  parent,
wxWindowID  id,
const wxColour &  color,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = wxBU_AUTODRAW,
const wxValidator &  validator = wxDefaultValidator,
const wxString name = _T("button") 
)

Definition at line 21 of file colorbutton.cpp.

ColorButton::~ColorButton (  )  [virtual]

Definition at line 30 of file colorbutton.cpp.


Member Function Documentation

wxBitmap ColorButton::GetBitmapFromColor ( const wxColour &  color  )  [protected]

Definition at line 50 of file colorbutton.cpp.

wxColour ColorButton::GetColor (  ) 

Definition at line 35 of file colorbutton.cpp.

void ColorButton::SetColor ( const wxColour &  color  ) 

Definition at line 40 of file colorbutton.cpp.


Field Documentation

wxColour ColorButton::m_color [protected]

Definition at line 21 of file colorbutton.h.

Definition at line 20 of file colorbutton.h.


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

Generated on Thu Dec 29 00:11:43 2011 for SpringLobby by doxygen 1.6.3