]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/radiobut.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKRADIOBUTTONH__
12 #define __GTKRADIOBUTTONH__
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class wxRadioButton
: public wxControl
25 inline wxRadioButton() {}
26 inline wxRadioButton( wxWindow
*parent
, wxWindowID id
,
27 const wxString
& label
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
, long style
= 0,
30 const wxValidator
& validator
= wxDefaultValidator
,
31 const wxString
& name
= wxRadioButtonNameStr
)
33 Create( parent
, id
, label
, pos
, size
, style
, validator
, name
);
35 bool Create(wxWindow
*parent
, wxWindowID id
,
36 const wxString
& label
,
37 const wxPoint
& pos
= wxDefaultPosition
,
38 const wxSize
& size
= wxDefaultSize
, long style
= 0,
39 const wxValidator
& validator
= wxDefaultValidator
,
40 const wxString
& name
= wxRadioButtonNameStr
);
41 virtual void SetLabel(const wxString
& label
);
42 virtual void SetValue(bool val
);
43 virtual bool GetValue() const;
44 bool Enable( bool enable
);
48 GSList
*m_radioButtonGroup
;
49 void ApplyWidgetStyle();
50 bool IsOwnGtkWindow( GdkWindow
*window
);
51 void OnInternalIdle();
56 virtual wxSize
DoGetBestSize() const;
59 DECLARE_DYNAMIC_CLASS(wxRadioButton
)
62 #endif // __GTKRADIOBUTTONH__