]>
Commit | Line | Data |
---|---|---|
9b6dbb09 | 1 | ///////////////////////////////////////////////////////////////////////////// |
925f7740 | 2 | // Name: wx/motif/button.h |
9b6dbb09 JS |
3 | // Purpose: wxButton class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
9b6dbb09 | 7 | // Copyright: (c) Julian Smart |
65571936 | 8 | // Licence: wxWindows licence |
9b6dbb09 JS |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | #ifndef _WX_BUTTON_H_ | |
12 | #define _WX_BUTTON_H_ | |
13 | ||
9b6dbb09 | 14 | // Pushbutton |
53a2db12 | 15 | class WXDLLIMPEXP_CORE wxButton: public wxButtonBase |
9b6dbb09 | 16 | { |
31528cd3 VZ |
17 | public: |
18 | wxButton() { } | |
19 | wxButton(wxWindow *parent, | |
83df96d6 | 20 | wxWindowID id, |
5f7bcb48 | 21 | const wxString& label = wxEmptyString, |
83df96d6 JS |
22 | const wxPoint& pos = wxDefaultPosition, |
23 | const wxSize& size = wxDefaultSize, long style = 0, | |
24 | const wxValidator& validator = wxDefaultValidator, | |
25 | const wxString& name = wxButtonNameStr) | |
31528cd3 VZ |
26 | { |
27 | Create(parent, id, label, pos, size, style, validator, name); | |
28 | } | |
925f7740 | 29 | |
5f7bcb48 VS |
30 | bool Create(wxWindow *parent, wxWindowID id, |
31 | const wxString& label = wxEmptyString, | |
83df96d6 JS |
32 | const wxPoint& pos = wxDefaultPosition, |
33 | const wxSize& size = wxDefaultSize, long style = 0, | |
34 | const wxValidator& validator = wxDefaultValidator, | |
35 | const wxString& name = wxButtonNameStr); | |
925f7740 | 36 | |
94aff5ff | 37 | virtual wxWindow *SetDefault(); |
31528cd3 | 38 | virtual void Command(wxCommandEvent& event); |
925f7740 | 39 | |
4d194d63 | 40 | static wxSize GetDefaultSize(); |
925f7740 | 41 | |
31528cd3 | 42 | // Implementation |
94aff5ff | 43 | virtual wxSize GetMinSize() const; |
bf3c1a19 | 44 | |
94aff5ff | 45 | protected: |
458ca8c1 | 46 | virtual wxSize DoGetBestSize() const; |
bf3c1a19 WS |
47 | |
48 | private: | |
e04b7e8e | 49 | wxSize OldGetBestSize() const; |
4e025aa2 | 50 | wxSize OldGetMinSize() const; |
458ca8c1 | 51 | void SetDefaultShadowThicknessAndResize(); |
94aff5ff VZ |
52 | |
53 | DECLARE_DYNAMIC_CLASS(wxButton) | |
9b6dbb09 JS |
54 | }; |
55 | ||
94aff5ff | 56 | #endif // _WX_BUTTON_H_ |