]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/bmpbuttn.h
Fix for missing -g from wx-config
[wxWidgets.git] / include / wx / gtk1 / bmpbuttn.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/bmpbutton.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10
11 #ifndef __BMPBUTTONH__
12 #define __BMPBUTTONH__
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 // ----------------------------------------------------------------------------
19 // wxBitmapButton
20 // ----------------------------------------------------------------------------
21
22 class wxBitmapButton: public wxBitmapButtonBase
23 {
24 public:
25 wxBitmapButton();
26 wxBitmapButton(wxWindow *parent,
27 wxWindowID id,
28 const wxBitmap& bitmap,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize,
31 long style = wxBU_AUTODRAW,
32 const wxValidator& validator = wxDefaultValidator,
33 const wxString& name = wxButtonNameStr)
34 {
35 Create(parent, id, bitmap, pos, size, style, validator, name);
36 }
37 bool Create(wxWindow *parent,
38 wxWindowID id,
39 const wxBitmap& bitmap,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 long style = wxBU_AUTODRAW,
43 const wxValidator& validator = wxDefaultValidator,
44 const wxString& name = wxButtonNameStr);
45
46 virtual void SetDefault();
47 virtual bool Enable(bool enable = TRUE);
48
49 void SetLabel( const wxString &label );
50 wxString GetLabel() const;
51 virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); }
52
53 // implementation
54 // --------------
55
56 void HasFocus();
57 void NotFocus();
58 void StartSelect();
59 void EndSelect();
60 void ApplyWidgetStyle();
61
62 bool m_hasFocus;
63 bool m_isSelected;
64
65 protected:
66 virtual void OnSetBitmap();
67
68 private:
69 DECLARE_DYNAMIC_CLASS(wxBitmapButton)
70 };
71
72 #endif // __BMPBUTTONH__