]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/panel.h
supporting clang memory management annotations
[wxWidgets.git] / include / wx / msw / panel.h
CommitLineData
5b87bd6c
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/msw/panel.h
3// Purpose: wxMSW-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_MSW_PANEL_H_
12#define _WX_MSW_PANEL_H_
13
cd95f7e6
VZ
14class WXDLLIMPEXP_FWD_CORE wxBrush;
15
5b87bd6c
VZ
16// ----------------------------------------------------------------------------
17// wxPanel
18// ----------------------------------------------------------------------------
19
20class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
21{
22public:
bbcf2821 23 wxPanel() { }
5b87bd6c 24
5b87bd6c
VZ
25 wxPanel(wxWindow *parent,
26 wxWindowID winid = wxID_ANY,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize,
29 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
30 const wxString& name = wxPanelNameStr)
31 {
32 Create(parent, winid, pos, size, style, name);
33 }
34
35 // This is overridden for MSW to return true for all panels that are child
36 // of a window with themed background (such as wxNotebook) which should
37 // show through the child panels.
38 virtual bool HasTransparentBackground();
39
cf858bab 40
7bc57fd9 41#if WXWIN_COMPATIBILITY_2_8
cf858bab
VZ
42 wxDEPRECATED_CONSTRUCTOR(
43 wxPanel(wxWindow *parent,
44 int x, int y, int width, int height,
45 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
46 const wxString& name = wxPanelNameStr)
47 {
48 Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
49 }
50 )
51#endif // WXWIN_COMPATIBILITY_2_8
52
5b87bd6c
VZ
53private:
54 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
55};
56
57#endif // _WX_MSW_PANEL_H_