]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/checkbox.h
added default style wxFRAME_TOOL_WINDOW to creation
[wxWidgets.git] / include / wx / gtk1 / checkbox.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: checkbox.h
3// Purpose:
4// Author: Robert Roebling
dbf858b5 5// Id: $Id$
01111366 6// Copyright: (c) 1998 Robert Roebling
ff8bfdbb 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKCHECKBOXH__
11#define __GTKCHECKBOXH__
12
13#ifdef __GNUG__
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
83058c58 45 void SetLabel( const wxString& label );
f03fc89f 46 bool Enable( bool enable );
ff8bfdbb
VZ
47
48 // implementation
20e05ffb
RR
49 // --------------
50
ff8bfdbb 51 void ApplyWidgetStyle();
2f073eb2
RR
52 bool IsOwnGtkWindow( GdkWindow *window );
53 void OnInternalIdle();
58614078 54
2cc0e28f
VZ
55 GtkWidget *m_widgetCheckbox;
56 GtkWidget *m_widgetLabel;
9864c56d
RR
57
58 bool m_blockEvent;
1e6feb95 59
f68586e5
VZ
60protected:
61 virtual wxSize DoGetBestSize() const;
62
738f9e5a
RR
63private:
64 DECLARE_DYNAMIC_CLASS(wxCheckBox)
c801d85f
KB
65};
66
67#endif // __GTKCHECKBOXH__