]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/button.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxButtonBase class
4 // Author: Vadim Zetlin
8 // Copyright: (c) Vadim Zetlin
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_BUTTON_H_BASE_
13 #define _WX_BUTTON_H_BASE_
17 #include "wx/control.h"
19 class WXDLLEXPORT wxBitmap
;
21 WXDLLEXPORT_DATA(extern const wxChar
*) wxButtonNameStr
;
23 // ----------------------------------------------------------------------------
24 // wxButton: a push button
25 // ----------------------------------------------------------------------------
27 class WXDLLEXPORT wxButtonBase
: public wxControl
30 // show the image in the button in addition to the label
31 virtual void SetImageLabel(const wxBitmap
& bitmap
) { }
33 // set the margins around the image
34 virtual void SetImageMargins(wxCoord x
, wxCoord y
) { }
36 // this wxButton method is called when the button becomes the default one
38 virtual void SetDefault() { }
40 // returns the default button size for this platform
41 static wxSize
GetDefaultSize();
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"
62 #endif // wxUSE_BUTTON