]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/button.h
added wxListCtrl::SetItemPtrData()
[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{
94aff5ff
VZ
23public:
24 wxButton() {}
25 wxButton(wxWindow *parent,
26 wxWindowID id,
27 const wxString& label = wxEmptyString,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize,
30 long style = 0,
31 const wxValidator& validator = wxDefaultValidator,
32 const wxString& name = wxButtonNameStr)
33 {
34 Create(parent, id, label, pos, size, style, validator, name);
35 }
36
37 bool Create(wxWindow *parent,
38 wxWindowID id,
39 const wxString& label = wxEmptyString,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 long style = 0,
43 const wxValidator& validator = wxDefaultValidator,
44 const wxString& name = wxButtonNameStr);
45
336a6aba 46 virtual wxInt32 MacControlHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
8cf73271
SC
47 static wxSize GetDefaultSize();
48
94aff5ff
VZ
49 virtual wxWindow *SetDefault();
50 virtual void Command(wxCommandEvent& event);
51
8cf73271
SC
52protected:
53 virtual wxSize DoGetBestSize() const ;
94aff5ff
VZ
54
55 DECLARE_DYNAMIC_CLASS(wxButton)
8cf73271
SC
56};
57
58#endif
59 // _WX_BUTTON_H_