]> git.saurik.com Git - wxWidgets.git/blob - include/wx/button.h
Added some missing tests; replaced scrolwin.cpp with scrlwng.cpp
[wxWidgets.git] / include / wx / button.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/button.h
3 // Purpose: wxButtonBase class
4 // Author: Vadim Zetlin
5 // Modified by:
6 // Created: 15.08.00
7 // RCS-ID: $Id$
8 // Copyright: (c) Vadim Zetlin
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_BUTTON_H_BASE_
13 #define _WX_BUTTON_H_BASE_
14
15 #if wxUSE_BUTTON
16
17 #include "wx/control.h"
18
19 class WXDLLEXPORT wxBitmap;
20
21 WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
22
23 // ----------------------------------------------------------------------------
24 // wxButton: a push button
25 // ----------------------------------------------------------------------------
26
27 class WXDLLEXPORT wxButtonBase : public wxControl
28 {
29 public:
30 // show the image in the button in addition to the label
31 virtual void SetImageLabel(const wxBitmap& bitmap) { }
32
33 // set the margins around the image
34 virtual void SetImageMargins(wxCoord x, wxCoord y) { }
35
36 // this wxButton method is called when the button becomes the default one
37 // on its panel
38 virtual void SetDefault() { }
39
40 // returns the default button size for this platform
41 static wxSize GetDefaultSize();
42 };
43
44 #if defined(__WXUNIVERSAL__)
45 #include "wx/univ/button.h"
46 #elif defined(__WXMSW__)
47 #include "wx/msw/button.h"
48 #elif defined(__WXMOTIF__)
49 #include "wx/motif/button.h"
50 #elif defined(__WXGTK__)
51 #include "wx/gtk/button.h"
52 #elif defined(__WXQT__)
53 #include "wx/qt/button.h"
54 #elif defined(__WXMAC__)
55 #include "wx/mac/button.h"
56 #elif defined(__WXPM__)
57 #include "wx/os2/button.h"
58 #elif defined(__WXSTUBS__)
59 #include "wx/stubs/button.h"
60 #endif
61
62 #endif // wxUSE_BUTTON
63
64 #endif
65 // _WX_BUTTON_H_BASE_