]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/button.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/button.h
3 // Purpose: wxButton class
4 // Author: David Elliott
8 // Copyright: (c) 2002 David Elliott
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_BUTTON_H__
13 #define __WX_COCOA_BUTTON_H__
15 #include "wx/cocoa/NSButton.h"
17 // ========================================================================
19 // ========================================================================
20 class WXDLLEXPORT wxButton
: public wxButtonBase
, protected wxCocoaNSButton
22 DECLARE_DYNAMIC_CLASS(wxButton
)
24 WX_DECLARE_COCOA_OWNER(NSButton
,NSControl
,NSView
)
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
30 wxButton(wxWindow
*parent
, wxWindowID winid
,
31 const wxString
& label
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
, long style
= 0,
34 const wxValidator
& validator
= wxDefaultValidator
,
35 const wxString
& name
= wxButtonNameStr
)
37 Create(parent
, winid
, label
, pos
, size
, style
, validator
, name
);
40 bool Create(wxWindow
*parent
, wxWindowID winid
,
41 const wxString
& label
,
42 const wxPoint
& pos
= wxDefaultPosition
,
43 const wxSize
& size
= wxDefaultSize
, long style
= 0,
44 const wxValidator
& validator
= wxDefaultValidator
,
45 const wxString
& name
= wxButtonNameStr
);
48 // ------------------------------------------------------------------------
50 // ------------------------------------------------------------------------
52 virtual void Cocoa_wxNSButtonAction(void);
53 // ------------------------------------------------------------------------
55 // ------------------------------------------------------------------------
57 wxString
GetLabel() const;
58 void SetLabel(const wxString
& label
);
61 #endif // __WX_COCOA_BUTTON_H__