1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/radiobut.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_RADIOBUT_H_
11 #define _WX_GTK_RADIOBUT_H_
13 //-----------------------------------------------------------------------------
15 //-----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxRadioButton
: public wxControl
21 wxRadioButton( wxWindow
*parent
,
23 const wxString
& label
,
24 const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
,
27 const wxValidator
& validator
= wxDefaultValidator
,
28 const wxString
& name
= wxRadioButtonNameStr
)
30 Create( parent
, id
, label
, pos
, size
, style
, validator
, name
);
33 bool Create( wxWindow
*parent
,
35 const wxString
& label
,
36 const wxPoint
& pos
= wxDefaultPosition
,
37 const wxSize
& size
= wxDefaultSize
,
39 const wxValidator
& validator
= wxDefaultValidator
,
40 const wxString
& name
= wxRadioButtonNameStr
);
42 virtual void SetLabel(const wxString
& label
);
43 virtual void SetValue(bool val
);
44 virtual bool GetValue() const;
45 virtual bool Enable( bool enable
= TRUE
);
47 static wxVisualAttributes
48 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
52 virtual bool IsRadioButton() const { return TRUE
; }
57 virtual wxSize
DoGetBestSize() const;
58 virtual void DoApplyWidgetStyle(GtkRcStyle
*style
);
59 virtual GdkWindow
*GTKGetWindow(wxArrayGdkWindows
& windows
) const;
62 DECLARE_DYNAMIC_CLASS(wxRadioButton
)
65 #endif // _WX_GTK_RADIOBUT_H_