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