]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/button.h
depth for masks added
[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
31528cd3 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BUTTON_H_
13#define _WX_BUTTON_H_
14
15#ifdef __GNUG__
83df96d6 16#pragma interface "button.h"
9b6dbb09
JS
17#endif
18
19#include "wx/control.h"
9b6dbb09
JS
20
21WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
22
23// Pushbutton
24class WXDLLEXPORT wxButton: public wxControl
25{
31528cd3 26 DECLARE_DYNAMIC_CLASS(wxButton)
83df96d6 27
31528cd3
VZ
28public:
29 wxButton() { }
30 wxButton(wxWindow *parent,
83df96d6
JS
31 wxWindowID id,
32 const wxString& label,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize, long style = 0,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxButtonNameStr)
31528cd3
VZ
37 {
38 Create(parent, id, label, pos, size, style, validator, name);
39 }
83df96d6 40
31528cd3 41 bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
83df96d6
JS
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize, long style = 0,
44 const wxValidator& validator = wxDefaultValidator,
45 const wxString& name = wxButtonNameStr);
46
31528cd3
VZ
47 virtual void SetDefault();
48 virtual void Command(wxCommandEvent& event);
83df96d6 49
4d194d63
MB
50 static wxSize GetDefaultSize();
51
31528cd3 52 // Implementation
458ca8c1
MB
53private:
54 virtual wxSize DoGetBestSize() const;
55 void SetDefaultShadowThicknessAndResize();
9b6dbb09
JS
56};
57
58#endif
83df96d6 59// _WX_BUTTON_H_