]> git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/panel.h
Use RIAA wrapper for wxSpinCtrl event disabling in wxGTK.
[wxWidgets.git] / include / wx / univ / panel.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/panel.h
3 // Purpose: wxUniversal-specific wxPanel class.
4 // Author: Vadim Zeitlin
5 // Created: 2011-03-18
6 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_UNIV_PANEL_H_
11 #define _WX_UNIV_PANEL_H_
12
13 // ----------------------------------------------------------------------------
14 // wxPanel
15 // ----------------------------------------------------------------------------
16
17 class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
18 {
19 public:
20 wxPanel() { }
21
22 wxPanel(wxWindow *parent,
23 wxWindowID winid = wxID_ANY,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
27 const wxString& name = wxPanelNameStr)
28 {
29 Create(parent, winid, pos, size, style, name);
30 }
31
32 virtual bool IsCanvasWindow() const { return true; }
33
34 #if WXWIN_COMPATIBILITY_2_8
35 wxDEPRECATED_CONSTRUCTOR(
36 wxPanel(wxWindow *parent,
37 int x, int y, int width, int height,
38 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
39 const wxString& name = wxPanelNameStr)
40 {
41 Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
42 }
43 )
44 #endif // WXWIN_COMPATIBILITY_2_8
45
46 private:
47 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
48 };
49
50 #endif // _WX_UNIV_PANEL_H_