]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/radiobut.h
659ef322c75daedcea93627830ebd7ad0916a10f
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __GTKRADIOBUTTONH__
13 #define __GTKRADIOBUTTONH__
20 #include "wx/object.h"
22 #include "wx/control.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 extern const char* wxRadioButtonNameStr
;
36 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
40 class wxRadioButton
: public wxControl
42 DECLARE_DYNAMIC_CLASS(wxRadioButton
)
45 inline wxRadioButton(void) {}
46 inline wxRadioButton( wxWindow
*parent
, wxWindowID id
,
47 const wxString
& label
,
48 const wxPoint
& pos
= wxDefaultPosition
,
49 const wxSize
& size
= wxDefaultSize
, long style
= 0,
50 const wxValidator
& validator
= wxDefaultValidator
,
51 const wxString
& name
= wxRadioButtonNameStr
)
53 Create( parent
, id
, label
, pos
, size
, style
, validator
, name
);
55 bool Create(wxWindow
*parent
, wxWindowID id
,
56 const wxString
& label
,
57 const wxPoint
& pos
= wxDefaultPosition
,
58 const wxSize
& size
= wxDefaultSize
, long style
= 0,
59 const wxValidator
& validator
= wxDefaultValidator
,
60 const wxString
& name
= wxRadioButtonNameStr
);
61 virtual void SetLabel(const wxString
& label
);
62 virtual void SetValue(bool val
);
63 virtual bool GetValue(void) const;
64 void SetFont( const wxFont
&font
);
65 void Enable( bool enable
);
68 #endif // __GTKRADIOBUTTONH__