]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/tglbtn.h
Export recently added wxRichTextXMLHelper to fix link errors.
[wxWidgets.git] / include / wx / motif / tglbtn.h
CommitLineData
08e5319b
MB
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/motif/tglbtn.h
3// Purpose: Declaration of the wxToggleButton class, which implements a
4// toggle button under wxMotif.
5// Author: Mattia Barbon
6// Modified by:
7// Created: 10.02.03
08e5319b 8// Copyright: (c) 2003 Mattia Barbon
65571936 9// Licence: wxWindows licence
08e5319b
MB
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_TOGGLEBUTTON_H_
13#define _WX_TOGGLEBUTTON_H_
14
15#include "wx/checkbox.h"
16
53a2db12 17class WXDLLIMPEXP_CORE wxToggleButton : public wxCheckBox
08e5319b
MB
18{
19public:
20 wxToggleButton() { Init(); }
21 wxToggleButton( wxWindow* parent, wxWindowID id, const wxString& label,
22 const wxPoint& pos = wxDefaultPosition,
23 const wxSize& size = wxDefaultSize,
24 long style = 0,
25 const wxValidator& val = wxDefaultValidator,
26 const wxString& name = wxCheckBoxNameStr )
27 {
28 Init();
29
30 Create( parent, id, label, pos, size, style, val, name );
31 }
32
33 bool Create( wxWindow* parent, wxWindowID id, const wxString& label,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = 0,
37 const wxValidator& val = wxDefaultValidator,
38 const wxString &name = wxCheckBoxNameStr );
dc797d8e
JS
39
40protected:
41 virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
42
08e5319b 43private:
bc21780e 44 DECLARE_DYNAMIC_CLASS(wxToggleButton)
08e5319b
MB
45
46 // common part of all constructors
47 void Init()
48 {
ce7fe42e 49 m_evtType = wxEVT_TOGGLEBUTTON;
08e5319b
MB
50 }
51};
52
53#endif // _WX_TOGGLEBUTTON_H_