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