]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/checkbox.h
doubleclick selects cell for editing
[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
c801d85f
KB
10#ifndef __GTKCHECKBOXH__
11#define __GTKCHECKBOXH__
12
12028905 13#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
c801d85f
KB
14#pragma interface
15#endif
16
1e6feb95 17// ----------------------------------------------------------------------------
c801d85f 18// wxCheckBox
1e6feb95 19// ----------------------------------------------------------------------------
c801d85f 20
1e6feb95 21class wxCheckBox : public wxCheckBoxBase
c801d85f 22{
ff8bfdbb 23public:
2cc0e28f 24 wxCheckBox();
ff8bfdbb
VZ
25 wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize, long style = 0,
28 const wxValidator& validator = wxDefaultValidator,
29 const wxString& name = wxCheckBoxNameStr)
6de97a3b 30 {
ff8bfdbb 31 Create(parent, id, label, pos, size, style, validator, name);
6de97a3b 32 }
2cc0e28f
VZ
33 bool Create(wxWindow *parent,
34 wxWindowID id,
35 const wxString& label,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
38 long style = 0,
39 const wxValidator& validator = wxDefaultValidator,
40 const wxString& name = wxCheckBoxNameStr );
41
debe6624 42 void SetValue( bool state );
83058c58 43 bool GetValue() const;
ff8bfdbb 44
6b0d8a01
VZ
45 virtual void SetLabel( const wxString& label );
46 virtual bool Enable( bool enable = TRUE );
ff8bfdbb 47
9d522606
RD
48 static wxVisualAttributes
49 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
50
ff8bfdbb 51 // implementation
20e05ffb
RR
52 // --------------
53
f40fdaa3 54 void DoApplyWidgetStyle(GtkRcStyle *style);
2f073eb2
RR
55 bool IsOwnGtkWindow( GdkWindow *window );
56 void OnInternalIdle();
58614078 57
2cc0e28f
VZ
58 GtkWidget *m_widgetCheckbox;
59 GtkWidget *m_widgetLabel;
6b0d8a01 60
9864c56d 61 bool m_blockEvent;
1e6feb95 62
f68586e5
VZ
63protected:
64 virtual wxSize DoGetBestSize() const;
65
738f9e5a
RR
66private:
67 DECLARE_DYNAMIC_CLASS(wxCheckBox)
c801d85f
KB
68};
69
70#endif // __GTKCHECKBOXH__