]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/button.h
Added style flags for selection mode.
[wxWidgets.git] / include / wx / motif / button.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: button.h
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)
83df96d6 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 }
83df96d6 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);
39
31528cd3
VZ
40 virtual void SetDefault();
41 virtual void Command(wxCommandEvent& event);
83df96d6 42
4d194d63
MB
43 static wxSize GetDefaultSize();
44
31528cd3 45 // Implementation
458ca8c1
MB
46private:
47 virtual wxSize DoGetBestSize() const;
4e025aa2 48 virtual wxSize GetMinSize() const;
e04b7e8e 49 wxSize OldGetBestSize() const;
4e025aa2 50 wxSize OldGetMinSize() const;
458ca8c1 51 void SetDefaultShadowThicknessAndResize();
9b6dbb09
JS
52};
53
54#endif
83df96d6 55// _WX_BUTTON_H_