]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/button.h
Unselect all wxDataViewCtrl items when clicking outside of the item area.
[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
53a2db12 16class WXDLLIMPEXP_CORE wxButton: public wxButtonBase
9b6dbb09 17{
31528cd3
VZ
18public:
19 wxButton() { }
20 wxButton(wxWindow *parent,
83df96d6 21 wxWindowID id,
5f7bcb48 22 const wxString& label = wxEmptyString,
83df96d6
JS
23 const wxPoint& pos = wxDefaultPosition,
24 const wxSize& size = wxDefaultSize, long style = 0,
25 const wxValidator& validator = wxDefaultValidator,
26 const wxString& name = wxButtonNameStr)
31528cd3
VZ
27 {
28 Create(parent, id, label, pos, size, style, validator, name);
29 }
925f7740 30
5f7bcb48
VS
31 bool Create(wxWindow *parent, wxWindowID id,
32 const wxString& label = wxEmptyString,
83df96d6
JS
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize, long style = 0,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxButtonNameStr);
925f7740 37
94aff5ff 38 virtual wxWindow *SetDefault();
31528cd3 39 virtual void Command(wxCommandEvent& event);
925f7740 40
4d194d63 41 static wxSize GetDefaultSize();
925f7740 42
31528cd3 43 // Implementation
94aff5ff 44 virtual wxSize GetMinSize() const;
bf3c1a19 45
94aff5ff 46protected:
458ca8c1 47 virtual wxSize DoGetBestSize() const;
bf3c1a19
WS
48
49private:
e04b7e8e 50 wxSize OldGetBestSize() const;
4e025aa2 51 wxSize OldGetMinSize() const;
458ca8c1 52 void SetDefaultShadowThicknessAndResize();
94aff5ff
VZ
53
54 DECLARE_DYNAMIC_CLASS(wxButton)
9b6dbb09
JS
55};
56
94aff5ff 57#endif // _WX_BUTTON_H_