]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/checkbox.h
first round of debug/release merge: introduce wxDEBUG_LEVEL, for now defined as 1...
[wxWidgets.git] / include / wx / gtk1 / checkbox.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/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
c801d85f
KB
10#ifndef __GTKCHECKBOXH__
11#define __GTKCHECKBOXH__
12
1e6feb95 13// ----------------------------------------------------------------------------
c801d85f 14// wxCheckBox
1e6feb95 15// ----------------------------------------------------------------------------
c801d85f 16
20123d49 17class WXDLLIMPEXP_CORE wxCheckBox : public wxCheckBoxBase
c801d85f 18{
ff8bfdbb 19public:
2cc0e28f 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
VZ
41 virtual void SetLabel( const wxString& label );
42 virtual bool Enable( bool enable = TRUE );
ff8bfdbb 43
9d522606
RD
44 static wxVisualAttributes
45 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
8ef94bfc 46
ff8bfdbb 47 // implementation
20e05ffb
RR
48 // --------------
49
f40fdaa3 50 void DoApplyWidgetStyle(GtkRcStyle *style);
2f073eb2
RR
51 bool IsOwnGtkWindow( GdkWindow *window );
52 void OnInternalIdle();
58614078 53
2cc0e28f
VZ
54 GtkWidget *m_widgetCheckbox;
55 GtkWidget *m_widgetLabel;
6b0d8a01 56
9864c56d 57 bool m_blockEvent;
1e6feb95 58
f68586e5
VZ
59protected:
60 virtual wxSize DoGetBestSize() const;
61
738f9e5a
RR
62private:
63 DECLARE_DYNAMIC_CLASS(wxCheckBox)
c801d85f
KB
64};
65
66#endif // __GTKCHECKBOXH__