]> git.saurik.com Git - wxWidgets.git/blame - include/wx/button.h
added virtual list control functions (but not implemented them yet) to the native...
[wxWidgets.git] / include / wx / button.h
CommitLineData
1e6feb95
VZ
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
34138703
JS
12#ifndef _WX_BUTTON_H_BASE_
13#define _WX_BUTTON_H_BASE_
c801d85f 14
1e6feb95
VZ
15#if wxUSE_BUTTON
16
17#include "wx/control.h"
18
19class WXDLLEXPORT wxBitmap;
20
21WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
22
23// ----------------------------------------------------------------------------
24// wxButton: a push button
25// ----------------------------------------------------------------------------
26
27class WXDLLEXPORT wxButtonBase : public wxControl
28{
29public:
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"
2049ba38 48#elif defined(__WXMOTIF__)
1e6feb95 49 #include "wx/motif/button.h"
2049ba38 50#elif defined(__WXGTK__)
1e6feb95 51 #include "wx/gtk/button.h"
b4e76e0d 52#elif defined(__WXQT__)
1e6feb95 53 #include "wx/qt/button.h"
34138703 54#elif defined(__WXMAC__)
1e6feb95 55 #include "wx/mac/button.h"
1777b9bb 56#elif defined(__WXPM__)
1e6feb95 57 #include "wx/os2/button.h"
34138703 58#elif defined(__WXSTUBS__)
1e6feb95 59 #include "wx/stubs/button.h"
c801d85f
KB
60#endif
61
1e6feb95
VZ
62#endif // wxUSE_BUTTON
63
c801d85f 64#endif
34138703 65 // _WX_BUTTON_H_BASE_