1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/radiobut.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef _WX_GTK_RADIOBUT_H_
10 #define _WX_GTK_RADIOBUT_H_
12 //-----------------------------------------------------------------------------
14 //-----------------------------------------------------------------------------
16 class WXDLLIMPEXP_CORE wxRadioButton
: public wxControl
20 wxRadioButton( wxWindow
*parent
,
22 const wxString
& label
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
,
26 const wxValidator
& validator
= wxDefaultValidator
,
27 const wxString
& name
= wxRadioButtonNameStr
)
29 Create( parent
, id
, label
, pos
, size
, style
, validator
, name
);
32 bool Create( wxWindow
*parent
,
34 const wxString
& label
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
,
38 const wxValidator
& validator
= wxDefaultValidator
,
39 const wxString
& name
= wxRadioButtonNameStr
);
41 virtual void SetLabel(const wxString
& label
);
42 virtual void SetValue(bool val
);
43 virtual bool GetValue() const;
44 virtual bool Enable( bool enable
= true );
46 static wxVisualAttributes
47 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
50 virtual wxBorder
GetDefaultBorder() const { return wxBORDER_NONE
; }
52 virtual void DoApplyWidgetStyle(GtkRcStyle
*style
);
53 virtual GdkWindow
*GTKGetWindow(wxArrayGdkWindows
& windows
) const;
56 typedef wxControl base_type
;
58 DECLARE_DYNAMIC_CLASS(wxRadioButton
)
61 #endif // _WX_GTK_RADIOBUT_H_