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 |
a wxBitmapButton whose Bitmap is a rectangle with uni color solid fill
Definition at line 7 of file colorbutton.h.
| 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.
| 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.
wxColour ColorButton::m_color [protected] |
Definition at line 21 of file colorbutton.h.
wxSize ColorButton::m_size [protected] |
Definition at line 20 of file colorbutton.h.
1.6.3