]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/motif/button.h
Digital Mars needs CCS_RIGHT
[wxWidgets.git] / include / wx / motif / button.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/motif/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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BUTTON_H_
13#define _WX_BUTTON_H_
14
15// Pushbutton
16class WXDLLEXPORT wxButton: public wxButtonBase
17{
18 DECLARE_DYNAMIC_CLASS(wxButton)
19
20public:
21 wxButton() { }
22 wxButton(wxWindow *parent,
23 wxWindowID id,
24 const wxString& label = wxEmptyString,
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize, long style = 0,
27 const wxValidator& validator = wxDefaultValidator,
28 const wxString& name = wxButtonNameStr)
29 {
30 Create(parent, id, label, pos, size, style, validator, name);
31 }
32
33 bool Create(wxWindow *parent, wxWindowID id,
34 const wxString& label = wxEmptyString,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize, long style = 0,
37 const wxValidator& validator = wxDefaultValidator,
38 const wxString& name = wxButtonNameStr);
39
40 virtual void SetDefault();
41 virtual void Command(wxCommandEvent& event);
42
43 static wxSize GetDefaultSize();
44
45 // Implementation
46protected:
47
48 virtual wxSize DoGetBestSize() const;
49
50private:
51
52 virtual wxSize GetMinSize() const;
53 wxSize OldGetBestSize() const;
54 wxSize OldGetMinSize() const;
55 void SetDefaultShadowThicknessAndResize();
56};
57
58#endif
59// _WX_BUTTON_H_