]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/button.h
remove definitions which are already in wx/app.h
[wxWidgets.git] / include / wx / mac / carbon / button.h
CommitLineData
8cf73271
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: button.h
3// Purpose: wxButton class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BUTTON_H_
13#define _WX_BUTTON_H_
14
8cf73271
SC
15#include "wx/control.h"
16#include "wx/gdicmn.h"
17
63ec432b 18WXDLLEXPORT_DATA(extern const wxChar) wxButtonNameStr[];
8cf73271
SC
19
20// Pushbutton
21class WXDLLEXPORT wxButton: public wxButtonBase
22{
23 DECLARE_DYNAMIC_CLASS(wxButton)
24 public:
25 inline wxButton() {}
5f7bcb48
VS
26 inline wxButton(wxWindow *parent, wxWindowID id,
27 const wxString& label = wxEmptyString,
8cf73271
SC
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize, long style = 0,
30 const wxValidator& validator = wxDefaultValidator,
31 const wxString& name = wxButtonNameStr)
32 {
33 Create(parent, id, label, pos, size, style, validator, name);
34 }
35
5f7bcb48
VS
36 bool Create(wxWindow *parent, wxWindowID id,
37 const wxString& label = wxEmptyString,
8cf73271
SC
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize, long style = 0,
40 const wxValidator& validator = wxDefaultValidator,
41 const wxString& name = wxButtonNameStr);
401e3b6e 42
336a6aba 43 virtual wxInt32 MacControlHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
8cf73271
SC
44 static wxSize GetDefaultSize();
45
46 virtual void SetDefault();
47 virtual void Command(wxCommandEvent& event);
48protected:
49 virtual wxSize DoGetBestSize() const ;
50};
51
52#endif
53 // _WX_BUTTON_H_