1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/checkbox.h
3 // Purpose: wxCheckBox class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_CHECKBOX_H_
13 #define _WX_CHECKBOX_H_
15 // Checkbox item (single checkbox)
16 class WXDLLIMPEXP_CORE wxCheckBox
: public wxCheckBoxBase
18 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
21 inline wxCheckBox() { Init(); }
22 inline wxCheckBox(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
, long style
= 0,
25 const wxValidator
& validator
= wxDefaultValidator
,
26 const wxString
& name
= wxCheckBoxNameStr
)
30 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
33 bool Create(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
, long style
= 0,
36 const wxValidator
& validator
= wxDefaultValidator
,
37 const wxString
& name
= wxCheckBoxNameStr
);
38 virtual void SetValue(bool);
39 virtual bool GetValue() const ;
40 virtual void Command(wxCommandEvent
& event
);
43 virtual void ChangeBackgroundColour();
45 // common part of all constructors
48 m_evtType
= wxEVT_CHECKBOX
;
51 virtual void DoSet3StateValue(wxCheckBoxState state
);
53 virtual wxCheckBoxState
DoGet3StateValue() const;
55 // public for the callback
57 // either wxEVT_CHECKBOX or ..._TOGGLEBUTTON
58 wxEventType m_evtType
;