]>
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
26 wxRadioButton( wxWindow
*parent
,
28 const wxString
& label
,
29 const wxPoint
& pos
= wxDefaultPosition
,
30 const wxSize
& size
= wxDefaultSize
,
32 const wxValidator
& validator
= wxDefaultValidator
,
33 const wxString
& name
= wxRadioButtonNameStr
)
35 Create( parent
, id
, label
, pos
, size
, style
, validator
, name
);
38 bool Create( wxWindow
*parent
,
40 const wxString
& label
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
44 const wxValidator
& validator
= wxDefaultValidator
,
45 const wxString
& name
= wxRadioButtonNameStr
);
47 virtual void SetLabel(const wxString
& label
);
48 virtual void SetValue(bool val
);
49 virtual bool GetValue() const;
50 virtual bool Enable( bool enable
);
54 virtual bool IsRadioButton() const { return TRUE
; }
56 GSList
*m_radioButtonGroup
;
57 void ApplyWidgetStyle();
58 bool IsOwnGtkWindow( GdkWindow
*window
);
59 void OnInternalIdle();
64 virtual wxSize
DoGetBestSize() const;
67 DECLARE_DYNAMIC_CLASS(wxRadioButton
)
70 #endif // __GTKRADIOBUTTONH__