panel.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #ifndef _WX_UNIV_PANEL_H_
  10. #define _WX_UNIV_PANEL_H_
  11. // ----------------------------------------------------------------------------
  12. // wxPanel
  13. // ----------------------------------------------------------------------------
  14. class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
  15. {
  16. public:
  17. wxPanel() { }
  18. wxPanel(wxWindow *parent,
  19. wxWindowID winid = wxID_ANY,
  20. const wxPoint& pos = wxDefaultPosition,
  21. const wxSize& size = wxDefaultSize,
  22. long style = wxTAB_TRAVERSAL | wxNO_BORDER,
  23. const wxString& name = wxPanelNameStr)
  24. {
  25. Create(parent, winid, pos, size, style, name);
  26. }
  27. virtual bool IsCanvasWindow() const { return true; }
  28. #if WXWIN_COMPATIBILITY_2_8
  29. wxDEPRECATED_CONSTRUCTOR(
  30. wxPanel(wxWindow *parent,
  31. int x, int y, int width, int height,
  32. long style = wxTAB_TRAVERSAL | wxNO_BORDER,
  33. const wxString& name = wxPanelNameStr)
  34. {
  35. Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
  36. }
  37. )
  38. #endif // WXWIN_COMPATIBILITY_2_8
  39. private:
  40. wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
  41. };
  42. #endif // _WX_UNIV_PANEL_H_