]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/checkbox.h
improved const-ness of find/Find functions
[wxWidgets.git] / include / wx / motif / checkbox.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: checkbox.h
3// Purpose: wxCheckBox class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CHECKBOX_H_
13#define _WX_CHECKBOX_H_
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
9b6dbb09
JS
16#pragma interface "checkbox.h"
17#endif
18
19#include "wx/control.h"
20
9b6dbb09 21// Checkbox item (single checkbox)
18128cbb 22class WXDLLEXPORT wxCheckBox: public wxCheckBoxBase
9b6dbb09 23{
83df96d6
JS
24 DECLARE_DYNAMIC_CLASS(wxCheckBox)
25
26public:
08e5319b 27 inline wxCheckBox() { Init(); }
83df96d6
JS
28 inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize, long style = 0,
31 const wxValidator& validator = wxDefaultValidator,
32 const wxString& name = wxCheckBoxNameStr)
33 {
08e5319b
MB
34 Init();
35
83df96d6
JS
36 Create(parent, id, label, pos, size, style, validator, name);
37 }
38
39 bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize, long style = 0,
42 const wxValidator& validator = wxDefaultValidator,
43 const wxString& name = wxCheckBoxNameStr);
44 virtual void SetValue(bool);
45 virtual bool GetValue() const ;
46 virtual void Command(wxCommandEvent& event);
47
48 // Implementation
83df96d6 49 virtual void ChangeBackgroundColour();
08e5319b
MB
50private:
51 // common part of all constructors
52 void Init()
53 {
54 m_evtType = wxEVT_COMMAND_CHECKBOX_CLICKED;
55 }
56
57 // public for the callback
58public:
59 // either exEVT_COMMAND_CHECKBOX_CLICKED or ..._TOGGLEBUTTON_CLICKED
60 wxEventType m_evtType;
9b6dbb09
JS
61};
62
9b6dbb09 63#endif
83df96d6 64// _WX_CHECKBOX_H_