]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
6b0d8a01 | 2 | // Name: wx/gtk/radiobut.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
f96aa4d9 | 5 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 6 | // Licence: wxWindows licence |
c801d85f KB |
7 | ///////////////////////////////////////////////////////////////////////////// |
8 | ||
ef5c70f9 VZ |
9 | #ifndef _WX_GTK_RADIOBUT_H_ |
10 | #define _WX_GTK_RADIOBUT_H_ | |
c801d85f | 11 | |
6de97a3b RR |
12 | //----------------------------------------------------------------------------- |
13 | // wxRadioButton | |
14 | //----------------------------------------------------------------------------- | |
15 | ||
20123d49 | 16 | class WXDLLIMPEXP_CORE wxRadioButton: public wxControl |
6de97a3b | 17 | { |
953704c1 | 18 | public: |
2b4f3c9f VZ |
19 | wxRadioButton() { } |
20 | wxRadioButton( wxWindow *parent, | |
21 | wxWindowID id, | |
22 | const wxString& label, | |
23 | const wxPoint& pos = wxDefaultPosition, | |
24 | const wxSize& size = wxDefaultSize, | |
25 | long style = 0, | |
26 | const wxValidator& validator = wxDefaultValidator, | |
27 | const wxString& name = wxRadioButtonNameStr ) | |
2f073eb2 RR |
28 | { |
29 | Create( parent, id, label, pos, size, style, validator, name ); | |
30 | } | |
2b4f3c9f VZ |
31 | |
32 | bool Create( wxWindow *parent, | |
33 | wxWindowID id, | |
34 | const wxString& label, | |
35 | const wxPoint& pos = wxDefaultPosition, | |
36 | const wxSize& size = wxDefaultSize, | |
37 | long style = 0, | |
38 | const wxValidator& validator = wxDefaultValidator, | |
39 | const wxString& name = wxRadioButtonNameStr ); | |
40 | ||
2f073eb2 RR |
41 | virtual void SetLabel(const wxString& label); |
42 | virtual void SetValue(bool val); | |
43 | virtual bool GetValue() const; | |
d968078a | 44 | virtual bool Enable( bool enable = true ); |
2b4f3c9f | 45 | |
9d522606 RD |
46 | static wxVisualAttributes |
47 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
48 | ||
db434467 | 49 | protected: |
677dc0ed JS |
50 | virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; } |
51 | ||
ef5c70f9 VZ |
52 | virtual void DoApplyWidgetStyle(GtkRcStyle *style); |
53 | virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const; | |
db434467 | 54 | |
b545684e PC |
55 | private: |
56 | typedef wxControl base_type; | |
57 | ||
2f073eb2 | 58 | DECLARE_DYNAMIC_CLASS(wxRadioButton) |
6de97a3b | 59 | }; |
c801d85f | 60 | |
ef5c70f9 | 61 | #endif // _WX_GTK_RADIOBUT_H_ |