]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/checkbox.h
Added wxCURSOR_RIGHT_ARROW, which is like the typical wxCURSOR_ARROR,
[wxWidgets.git] / include / wx / gtk / checkbox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: checkbox.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __GTKCHECKBOXH__
11 #define __GTKCHECKBOXH__
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 // ----------------------------------------------------------------------------
18 // wxCheckBox
19 // ----------------------------------------------------------------------------
20
21 class wxCheckBox : public wxCheckBoxBase
22 {
23 public:
24 wxCheckBox();
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)
30 {
31 Create(parent, id, label, pos, size, style, validator, name);
32 }
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
42 void SetValue( bool state );
43 bool GetValue() const;
44
45 void SetLabel( const wxString& label );
46 bool Enable( bool enable );
47
48 // implementation
49 // --------------
50
51 void ApplyWidgetStyle();
52 bool IsOwnGtkWindow( GdkWindow *window );
53 void OnInternalIdle();
54
55 GtkWidget *m_widgetCheckbox;
56 GtkWidget *m_widgetLabel;
57
58 bool m_blockEvent;
59
60 protected:
61 virtual wxSize DoGetBestSize() const;
62
63 private:
64 DECLARE_DYNAMIC_CLASS(wxCheckBox)
65 };
66
67 #endif // __GTKCHECKBOXH__