]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/checkbox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/checkbox.h
3 // Purpose: wxCheckBox class
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_CHECKBOX_H__
13 #define __WX_COCOA_CHECKBOX_H__
15 #include "wx/cocoa/NSButton.h"
17 // ========================================================================
19 // ========================================================================
20 class WXDLLEXPORT wxCheckBox
: public wxCheckBoxBase
, protected wxCocoaNSButton
22 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
24 WX_DECLARE_COCOA_OWNER(NSButton
,NSControl
,NSView
)
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
30 wxCheckBox(wxWindow
*parent
, wxWindowID winid
,
31 const wxString
& label
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
35 const wxValidator
& validator
= wxDefaultValidator
,
36 const wxString
& name
= wxCheckBoxNameStr
)
38 Create(parent
, winid
, label
, pos
, size
, style
, validator
, name
);
41 bool Create(wxWindow
*parent
, wxWindowID winid
,
42 const wxString
& label
,
43 const wxPoint
& pos
= wxDefaultPosition
,
44 const wxSize
& size
= wxDefaultSize
,
46 const wxValidator
& validator
= wxDefaultValidator
,
47 const wxString
& name
= wxCheckBoxNameStr
);
48 virtual ~wxCheckBox();
50 // ------------------------------------------------------------------------
52 // ------------------------------------------------------------------------
54 virtual void Cocoa_wxNSButtonAction(void);
55 // ------------------------------------------------------------------------
57 // ------------------------------------------------------------------------
59 virtual void SetValue(bool);
60 virtual bool GetValue() const;
62 virtual void DoSet3StateValue(wxCheckBoxState state
);
63 virtual wxCheckBoxState
DoGet3StateValue() const;
66 #endif // __WX_COCOA_CHECKBOX_H__