]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/bmpbuttn.h
removed unused enum
[wxWidgets.git] / include / wx / gtk / bmpbuttn.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
29149a64 2// Name: wx/gtk/bmpbutton.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
dbf858b5 5// Id: $Id$
01111366 6// Copyright: (c) 1998 Robert Roebling
29149a64 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __BMPBUTTONH__
12#define __BMPBUTTONH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
1e6feb95 18// ----------------------------------------------------------------------------
c801d85f 19// wxBitmapButton
1e6feb95 20// ----------------------------------------------------------------------------
c801d85f 21
1e6feb95 22class wxBitmapButton: public wxBitmapButtonBase
151ccd11 23{
43a18898 24public:
738f9e5a 25 wxBitmapButton();
1e6feb95
VZ
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)
738f9e5a
RR
34 {
35 Create(parent, id, bitmap, pos, size, style, validator, name);
36 }
1e6feb95
VZ
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
738f9e5a 46 virtual void SetDefault();
1e6feb95 47 virtual bool Enable(bool enable = TRUE);
29149a64 48
738f9e5a
RR
49 void SetLabel( const wxString &label );
50 wxString GetLabel() const;
51 virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); }
29149a64 52
20e05ffb
RR
53 // implementation
54 // --------------
29149a64 55
738f9e5a
RR
56 void HasFocus();
57 void NotFocus();
58 void StartSelect();
59 void EndSelect();
29149a64
VZ
60 void ApplyWidgetStyle();
61
738f9e5a
RR
62 bool m_hasFocus;
63 bool m_isSelected;
29149a64 64
f6bcfd97 65protected:
1e6feb95 66 virtual void OnSetBitmap();
f6bcfd97 67
738f9e5a
RR
68private:
69 DECLARE_DYNAMIC_CLASS(wxBitmapButton)
151ccd11 70};
43a18898 71
c801d85f 72#endif // __BMPBUTTONH__