]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/button.h
Factory some of wxFilterClassFactory into a base class.
[wxWidgets.git] / include / wx / motif / button.h
CommitLineData
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
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BUTTON_H_
13#define _WX_BUTTON_H_
14
9b6dbb09 15// Pushbutton
a63b0098 16class WXDLLEXPORT wxButton: public wxButtonBase
9b6dbb09 17{
31528cd3 18 DECLARE_DYNAMIC_CLASS(wxButton)
925f7740 19
31528cd3
VZ
20public:
21 wxButton() { }
22 wxButton(wxWindow *parent,
83df96d6 23 wxWindowID id,
5f7bcb48 24 const wxString& label = wxEmptyString,
83df96d6
JS
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize, long style = 0,
27 const wxValidator& validator = wxDefaultValidator,
28 const wxString& name = wxButtonNameStr)
31528cd3
VZ
29 {
30 Create(parent, id, label, pos, size, style, validator, name);
31 }
925f7740 32
5f7bcb48
VS
33 bool Create(wxWindow *parent, wxWindowID id,
34 const wxString& label = wxEmptyString,
83df96d6
JS
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize, long style = 0,
37 const wxValidator& validator = wxDefaultValidator,
38 const wxString& name = wxButtonNameStr);
925f7740 39
31528cd3
VZ
40 virtual void SetDefault();
41 virtual void Command(wxCommandEvent& event);
925f7740 42
4d194d63 43 static wxSize GetDefaultSize();
925f7740 44
31528cd3 45 // Implementation
bf3c1a19
WS
46protected:
47
458ca8c1 48 virtual wxSize DoGetBestSize() const;
bf3c1a19
WS
49
50private:
51
4e025aa2 52 virtual wxSize GetMinSize() const;
e04b7e8e 53 wxSize OldGetBestSize() const;
4e025aa2 54 wxSize OldGetMinSize() const;
458ca8c1 55 void SetDefaultShadowThicknessAndResize();
9b6dbb09
JS
56};
57
58#endif
83df96d6 59// _WX_BUTTON_H_