X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..47bc1060127d86222768789575295254a710f5a6:/include/wx/gtk/radiobut.h diff --git a/include/wx/gtk/radiobut.h b/include/wx/gtk/radiobut.h index 337264fe5a..659ef322c7 100644 --- a/include/wx/gtk/radiobut.h +++ b/include/wx/gtk/radiobut.h @@ -27,5 +27,42 @@ class wxRadioButton; +//----------------------------------------------------------------------------- +// data +//----------------------------------------------------------------------------- + +extern const char* wxRadioButtonNameStr; + +//----------------------------------------------------------------------------- +// wxRadioButton +//----------------------------------------------------------------------------- + +class wxRadioButton: public wxControl +{ + DECLARE_DYNAMIC_CLASS(wxRadioButton) + + public: + inline wxRadioButton(void) {} + inline wxRadioButton( wxWindow *parent, wxWindowID id, + const wxString& label, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxRadioButtonNameStr ) + { + Create( parent, id, label, pos, size, style, validator, name ); + } + bool Create(wxWindow *parent, wxWindowID id, + const wxString& label, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxRadioButtonNameStr ); + virtual void SetLabel(const wxString& label); + virtual void SetValue(bool val); + virtual bool GetValue(void) const; + void SetFont( const wxFont &font ); + void Enable( bool enable ); +}; #endif // __GTKRADIOBUTTONH__