]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/radiobut.h
wxMac: wxUniversal integration steps
[wxWidgets.git] / include / wx / gtk1 / radiobut.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: radiobut.h
3// Purpose:
4// Author: Robert Roebling
f96aa4d9
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
c801d85f
KB
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKRADIOBUTTONH__
12#define __GTKRADIOBUTTONH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
6de97a3b
RR
18//-----------------------------------------------------------------------------
19// wxRadioButton
20//-----------------------------------------------------------------------------
21
22class wxRadioButton: public wxControl
23{
953704c1 24public:
2f073eb2
RR
25 inline wxRadioButton() {}
26 inline wxRadioButton( wxWindow *parent, wxWindowID id,
6de97a3b
RR
27 const wxString& label,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize, long style = 0,
30 const wxValidator& validator = wxDefaultValidator,
31 const wxString& name = wxRadioButtonNameStr )
2f073eb2
RR
32 {
33 Create( parent, id, label, pos, size, style, validator, name );
34 }
35 bool Create(wxWindow *parent, wxWindowID id,
6de97a3b
RR
36 const wxString& label,
37 const wxPoint& pos = wxDefaultPosition,
38 const wxSize& size = wxDefaultSize, long style = 0,
39 const wxValidator& validator = wxDefaultValidator,
40 const wxString& name = wxRadioButtonNameStr );
2f073eb2
RR
41 virtual void SetLabel(const wxString& label);
42 virtual void SetValue(bool val);
43 virtual bool GetValue() const;
44 bool Enable( bool enable );
58614078
RR
45
46 // implementation
47
2f073eb2
RR
48 GSList *m_radioButtonGroup;
49 void ApplyWidgetStyle();
50 bool IsOwnGtkWindow( GdkWindow *window );
51 void OnInternalIdle();
52
db434467
RR
53protected:
54 virtual wxSize DoGetBestSize() const;
55
2f073eb2
RR
56private:
57 DECLARE_DYNAMIC_CLASS(wxRadioButton)
6de97a3b 58};
c801d85f
KB
59
60#endif // __GTKRADIOBUTTONH__