// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-
-#ifndef __BMPBUTTONH__
-#define __BMPBUTTONH__
+#ifndef _WX_GTK_BMPBUTTON_H_
+#define _WX_GTK_BMPBUTTON_H_
// ----------------------------------------------------------------------------
// wxBitmapButton
void SetLabel( const wxString &label );
virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); }
- virtual void SetDefault();
virtual bool Enable(bool enable = TRUE);
// implementation
// --------------
- void HasFocus();
- void NotFocus();
- void StartSelect();
- void EndSelect();
-
- bool m_hasFocus:1;
- bool m_isSelected:1;
+ void GTKMouseEnters();
+ void GTKMouseLeaves();
+ void GTKPressed();
+ void GTKReleased();
protected:
virtual void OnSetBitmap();
void Init();
private:
+ void OnFocusChange(wxFocusEvent& event);
+
+ // true iff mouse hovers over the button
+ bool m_mouseHovers;
+ // true iff the button is in pressed state
+ bool m_isPressed;
+
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
+ DECLARE_EVENT_TABLE()
};
-#endif // __BMPBUTTONH__
+#endif // _WX_GTK_BMPBUTTON_H_