]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/button.h
Compilation fix for wxUSE_DRAG_AND_DROP==0.
[wxWidgets.git] / include / wx / mac / button.h
CommitLineData
0dbd6262
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: button.h
3// Purpose: wxButton class
a31a5f85 4// Author: Stefan Csomor
0dbd6262 5// Modified by:
a31a5f85 6// Created: 1998-01-01
0dbd6262 7// RCS-ID: $Id$
a31a5f85 8// Copyright: (c) Stefan Csomor
d921af51 9// Licence: wxWindows licence
0dbd6262
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BUTTON_H_
13#define _WX_BUTTON_H_
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
0dbd6262
SC
16#pragma interface "button.h"
17#endif
18
19#include "wx/control.h"
20#include "wx/gdicmn.h"
21
c4e41ce3 22WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
0dbd6262
SC
23
24// Pushbutton
505af178 25class WXDLLEXPORT wxButton: public wxButtonBase
0dbd6262
SC
26{
27 DECLARE_DYNAMIC_CLASS(wxButton)
28 public:
29 inline wxButton() {}
30 inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize, long style = 0,
33 const wxValidator& validator = wxDefaultValidator,
34 const wxString& name = wxButtonNameStr)
35 {
36 Create(parent, id, label, pos, size, style, validator, name);
37 }
38
39 bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize, long style = 0,
42 const wxValidator& validator = wxDefaultValidator,
43 const wxString& name = wxButtonNameStr);
44
69b85ca4 45 virtual void MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool mouseStillDown ) ;
e7549107
SC
46 static wxSize GetDefaultSize();
47
0dbd6262 48 virtual void SetDefault();
0dbd6262 49 virtual void Command(wxCommandEvent& event);
e7549107 50protected:
4765d335 51 virtual wxSize DoGetBestSize() const ;
0dbd6262
SC
52};
53
54#endif
55 // _WX_BUTTON_H_