wxBitmapButtonNoBackground Class Reference
[Roadnav Control Classes]

A class similar to wxBitmapButton, but one that does not draw any sort of background and is therefore suitable for arbitrary shaped buttons. More...

#include <wxBitmapButtonNoBackground.h>

List of all members.

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


Detailed Description

A class similar to wxBitmapButton, but one that does not draw any sort of background and is therefore suitable for arbitrary shaped buttons.

Definition at line 40 of file MainPage.txt.


Constructor & Destructor Documentation

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") 
)


Member Function Documentation

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  ) 

Update active state.

Definition at line 176 of file wxBitmapButtonNoBackground.cpp.

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]

Paint button.

Definition at line 114 of file wxBitmapButtonNoBackground.cpp.

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.


Member Data Documentation

Parent window.

Definition at line 57 of file wxBitmapButtonNoBackground.h.

wxWindowID wxBitmapButtonNoBackground::m_iID [private]

ID of this control.

Definition at line 60 of file wxBitmapButtonNoBackground.h.

Bitmap drawn when button is not depressed.

Definition at line 63 of file wxBitmapButtonNoBackground.h.

Bitmap drawn when button is pressed.

Definition at line 66 of file wxBitmapButtonNoBackground.h.

Bitmap drawn when button is active.

Definition at line 69 of file wxBitmapButtonNoBackground.h.

true = left mouse button was pressed on this button

Definition at line 72 of file wxBitmapButtonNoBackground.h.

true = active, false = not active

Definition at line 75 of file wxBitmapButtonNoBackground.h.


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

Generated on Sun Jul 27 17:26:21 2008 for Roadnav by  doxygen 1.5.5