]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/checkbox.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / gtk / checkbox.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
6b0d8a01 2// Name: wx/gtk/checkbox.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
01111366 5// Copyright: (c) 1998 Robert Roebling
65571936 6// Licence: wxWindows licence
c801d85f
KB
7/////////////////////////////////////////////////////////////////////////////
8
8e6efd1f
PC
9#ifndef _WX_GTKCHECKBOX_H_
10#define _WX_GTKCHECKBOX_H_
c801d85f 11
1e6feb95 12// ----------------------------------------------------------------------------
c801d85f 13// wxCheckBox
1e6feb95 14// ----------------------------------------------------------------------------
c801d85f 15
20123d49 16class WXDLLIMPEXP_CORE wxCheckBox : public wxCheckBoxBase
c801d85f 17{
ff8bfdbb 18public:
2cc0e28f 19 wxCheckBox();
7af131ab 20 ~wxCheckBox();
ff8bfdbb
VZ
21 wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
22 const wxPoint& pos = wxDefaultPosition,
23 const wxSize& size = wxDefaultSize, long style = 0,
24 const wxValidator& validator = wxDefaultValidator,
25 const wxString& name = wxCheckBoxNameStr)
6de97a3b 26 {
ff8bfdbb 27 Create(parent, id, label, pos, size, style, validator, name);
6de97a3b 28 }
2cc0e28f
VZ
29 bool Create(wxWindow *parent,
30 wxWindowID id,
31 const wxString& label,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = 0,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxCheckBoxNameStr );
37
debe6624 38 void SetValue( bool state );
83058c58 39 bool GetValue() const;
ff8bfdbb 40
6b0d8a01 41 virtual void SetLabel( const wxString& label );
8e6efd1f 42 virtual bool Enable( bool enable = true );
ff8bfdbb 43
9d522606
RD
44 static wxVisualAttributes
45 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
bdbd4e96 46
b545684e
PC
47 // implementation
48 void GTKDisableEvents();
49 void GTKEnableEvents();
50
f68586e5 51protected:
ef5c70f9
VZ
52 virtual void DoApplyWidgetStyle(GtkRcStyle *style);
53 virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
f68586e5 54
4dcccda6
VS
55 void DoSet3StateValue(wxCheckBoxState state);
56 wxCheckBoxState DoGet3StateValue() const;
4dcccda6 57
b545684e
PC
58private:
59 typedef wxCheckBoxBase base_type;
c71ab7c1
RR
60
61 GtkWidget *m_widgetCheckbox;
62 GtkWidget *m_widgetLabel;
63
738f9e5a 64 DECLARE_DYNAMIC_CLASS(wxCheckBox)
c801d85f
KB
65};
66
8e6efd1f 67#endif // _WX_GTKCHECKBOX_H_