]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/checkbox.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[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
01111366 5// Copyright: (c) 1998 Robert Roebling
65571936 6// Licence: wxWindows licence
c801d85f
KB
7/////////////////////////////////////////////////////////////////////////////
8
c801d85f
KB
9#ifndef __GTKCHECKBOXH__
10#define __GTKCHECKBOXH__
11
1e6feb95 12// ----------------------------------------------------------------------------
c801d85f 13// wxCheckBox
1e6feb95 14// ----------------------------------------------------------------------------
c801d85f 15
20123d49 16class WXDLLIMPEXP_CORE wxCheckBox : public wxCheckBoxBase
c801d85f 17{
ff8bfdbb 18public:
2cc0e28f 19 wxCheckBox();
ff8bfdbb
VZ
20 wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
21 const wxPoint& pos = wxDefaultPosition,
22 const wxSize& size = wxDefaultSize, long style = 0,
23 const wxValidator& validator = wxDefaultValidator,
24 const wxString& name = wxCheckBoxNameStr)
6de97a3b 25 {
ff8bfdbb 26 Create(parent, id, label, pos, size, style, validator, name);
6de97a3b 27 }
2cc0e28f
VZ
28 bool Create(wxWindow *parent,
29 wxWindowID id,
30 const wxString& label,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 long style = 0,
34 const wxValidator& validator = wxDefaultValidator,
35 const wxString& name = wxCheckBoxNameStr );
36
debe6624 37 void SetValue( bool state );
83058c58 38 bool GetValue() const;
ff8bfdbb 39
6b0d8a01
VZ
40 virtual void SetLabel( const wxString& label );
41 virtual bool Enable( bool enable = TRUE );
ff8bfdbb 42
9d522606
RD
43 static wxVisualAttributes
44 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
8ef94bfc 45
ff8bfdbb 46 // implementation
20e05ffb
RR
47 // --------------
48
f40fdaa3 49 void DoApplyWidgetStyle(GtkRcStyle *style);
2f073eb2
RR
50 bool IsOwnGtkWindow( GdkWindow *window );
51 void OnInternalIdle();
58614078 52
2cc0e28f
VZ
53 GtkWidget *m_widgetCheckbox;
54 GtkWidget *m_widgetLabel;
6b0d8a01 55
9864c56d 56 bool m_blockEvent;
1e6feb95 57
f68586e5
VZ
58protected:
59 virtual wxSize DoGetBestSize() const;
60
738f9e5a
RR
61private:
62 DECLARE_DYNAMIC_CLASS(wxCheckBox)
c801d85f
KB
63};
64
65#endif // __GTKCHECKBOXH__