]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/radiobut.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/radiobut.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKRADIOBUTTONH__
12 #define __GTKRADIOBUTTONH__
14 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class wxRadioButton
: public wxControl
26 wxRadioButton( wxWindow
*parent
,
28 const wxString
& label
,
29 const wxPoint
& pos
= wxDefaultPosition
,
30 const wxSize
& size
= wxDefaultSize
,
32 const wxValidator
& validator
= wxDefaultValidator
,
33 const wxString
& name
= wxRadioButtonNameStr
)
35 Create( parent
, id
, label
, pos
, size
, style
, validator
, name
);
38 bool Create( wxWindow
*parent
,
40 const wxString
& label
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
44 const wxValidator
& validator
= wxDefaultValidator
,
45 const wxString
& name
= wxRadioButtonNameStr
);
47 virtual void SetLabel(const wxString
& label
);
48 virtual void SetValue(bool val
);
49 virtual bool GetValue() const;
50 virtual bool Enable( bool enable
= TRUE
);
52 static wxVisualAttributes
53 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
57 virtual bool IsRadioButton() const { return TRUE
; }
59 GSList
*m_radioButtonGroup
;
60 void ApplyWidgetStyle();
61 bool IsOwnGtkWindow( GdkWindow
*window
);
62 void OnInternalIdle();
67 virtual wxSize
DoGetBestSize() const;
70 DECLARE_DYNAMIC_CLASS(wxRadioButton
)
73 #endif // __GTKRADIOBUTTONH__