]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/panel.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/panel.h
3 // Purpose: wxUniversal-specific wxPanel class.
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_UNIV_PANEL_H_
11 #define _WX_UNIV_PANEL_H_
13 // ----------------------------------------------------------------------------
15 // ----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxPanel
: public wxPanelBase
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
)
29 Create(parent
, winid
, pos
, size
, style
, name
);
32 virtual bool IsCanvasWindow() const { return true; }
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
)
41 Create(parent
, wxID_ANY
, wxPoint(x
, y
), wxSize(width
, height
), style
, name
);
44 #endif // WXWIN_COMPATIBILITY_2_8
47 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel
);
50 #endif // _WX_UNIV_PANEL_H_