#include <wxBitmapButtonNoBackground.h>
Public Member Functions | |
| wxBitmapButtonNoBackground (wxWindow *parent, wxWindowID id, const wxBitmap &bitmap, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxBU_AUTODRAW, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxT("button")) | |
| void | SetBitmapSelected (const wxBitmap &bitmap) |
| Change bitmap to use when button is depressed. | |
| void | SetBitmapActive (const wxBitmap &bitmap) |
| Change bitmap to use when button is active. | |
| void | SetActive (bool bActive) |
| Update active state. | |
Private Member Functions | |
| void | OnEraseBackground (wxEraseEvent &event) |
| Handles erase background message - does nothing. | |
| void | OnPaint (wxPaintEvent &event) |
| Paint button. | |
| void | OnLeftUp (wxMouseEvent &event) |
| Handles left mouse button being released. | |
| void | OnLeftDown (wxMouseEvent &event) |
| Handles left mouse button being pressed. | |
| void | OnMouseLeaveWindow (wxMouseEvent &event) |
| Mouse has left the button - deselect button. | |
Private Attributes | |
| wxWindow * | m_pParent |
| Parent window. | |
| wxWindowID | m_iID |
| ID of this control. | |
| wxBitmap | m_bmpDefault |
| Bitmap drawn when button is not depressed. | |
| wxBitmap | m_bmpSelected |
| Bitmap drawn when button is pressed. | |
| wxBitmap | m_bmpActive |
| Bitmap drawn when button is active. | |
| bool | m_bSelected |
| true = left mouse button was pressed on this button | |
| bool | m_bActive |
| true = active, false = not active | |
Definition at line 40 of file MainPage.txt.
| wxBitmapButtonNoBackground::wxBitmapButtonNoBackground | ( | wxWindow * | parent, | |
| wxWindowID | id, | |||
| const wxBitmap & | bitmap, | |||
| const wxPoint & | pos = wxDefaultPosition, |
|||
| const wxSize & | size = wxDefaultSize, |
|||
| long | style = wxBU_AUTODRAW, |
|||
| const wxValidator & | validator = wxDefaultValidator, |
|||
| const wxString & | name = wxT("button") | |||
| ) |
| void wxBitmapButtonNoBackground::SetBitmapSelected | ( | const wxBitmap & | bitmap | ) |
Change bitmap to use when button is depressed.
Definition at line 85 of file wxBitmapButtonNoBackground.cpp.
| void wxBitmapButtonNoBackground::SetBitmapActive | ( | const wxBitmap & | bitmap | ) |
Change bitmap to use when button is active.
Definition at line 95 of file wxBitmapButtonNoBackground.cpp.
| void wxBitmapButtonNoBackground::SetActive | ( | bool | bActive | ) |
| void wxBitmapButtonNoBackground::OnEraseBackground | ( | wxEraseEvent & | event | ) | [private] |
Handles erase background message - does nothing.
Definition at line 105 of file wxBitmapButtonNoBackground.cpp.
| void wxBitmapButtonNoBackground::OnPaint | ( | wxPaintEvent & | event | ) | [private] |
| void wxBitmapButtonNoBackground::OnLeftUp | ( | wxMouseEvent & | event | ) | [private] |
Handles left mouse button being released.
Trigger button if mouse was depressed inside button.
Definition at line 132 of file wxBitmapButtonNoBackground.cpp.
| void wxBitmapButtonNoBackground::OnLeftDown | ( | wxMouseEvent & | event | ) | [private] |
Handles left mouse button being pressed.
Definition at line 150 of file wxBitmapButtonNoBackground.cpp.
| void wxBitmapButtonNoBackground::OnMouseLeaveWindow | ( | wxMouseEvent & | event | ) | [private] |
Mouse has left the button - deselect button.
Definition at line 162 of file wxBitmapButtonNoBackground.cpp.
wxWindow* wxBitmapButtonNoBackground::m_pParent [private] |
wxWindowID wxBitmapButtonNoBackground::m_iID [private] |
wxBitmap wxBitmapButtonNoBackground::m_bmpDefault [private] |
Bitmap drawn when button is not depressed.
Definition at line 63 of file wxBitmapButtonNoBackground.h.
wxBitmap wxBitmapButtonNoBackground::m_bmpSelected [private] |
wxBitmap wxBitmapButtonNoBackground::m_bmpActive [private] |
bool wxBitmapButtonNoBackground::m_bSelected [private] |
true = left mouse button was pressed on this button
Definition at line 72 of file wxBitmapButtonNoBackground.h.
bool wxBitmapButtonNoBackground::m_bActive [private] |
1.5.5