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