]>
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__
19 #include "wx/object.h"
21 #include "wx/control.h"
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 extern const char* wxRadioButtonNameStr
;
35 //-----------------------------------------------------------------------------
37 //-----------------------------------------------------------------------------
39 class wxRadioButton
: public wxControl
41 DECLARE_DYNAMIC_CLASS(wxRadioButton
)
44 inline wxRadioButton(void) {}
45 inline wxRadioButton( wxWindow
*parent
, wxWindowID id
,
46 const wxString
& label
,
47 const wxPoint
& pos
= wxDefaultPosition
,
48 const wxSize
& size
= wxDefaultSize
, long style
= 0,
49 const wxValidator
& validator
= wxDefaultValidator
,
50 const wxString
& name
= wxRadioButtonNameStr
)
52 Create( parent
, id
, label
, pos
, size
, style
, validator
, name
);
54 bool Create(wxWindow
*parent
, wxWindowID id
,
55 const wxString
& label
,
56 const wxPoint
& pos
= wxDefaultPosition
,
57 const wxSize
& size
= wxDefaultSize
, long style
= 0,
58 const wxValidator
& validator
= wxDefaultValidator
,
59 const wxString
& name
= wxRadioButtonNameStr
);
60 virtual void SetLabel(const wxString
& label
);
61 virtual void SetValue(bool val
);
62 virtual bool GetValue(void) const;
63 void Enable( bool enable
);
67 void ApplyWidgetStyle();
70 #endif // __GTKRADIOBUTTONH__