]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/popupwin.h
added wxTo/FromString() overloads for wxFont (1st part of patch 1760073)
[wxWidgets.git] / include / wx / dfb / popupwin.h
CommitLineData
42b0d8b9
VS
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/dfb/popupwin.h
3// Purpose: wxPopupWindow class for wxDFB
4// Author: Vaclav Slavik
5// Created: 2006-12-24
6// RCS-ID: $Id$
7// Copyright: (c) 2006 TT-Solutions
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_DFB_POPUPWIN_H_
12#define _WX_DFB_POPUPWIN_H_
13
14// ----------------------------------------------------------------------------
15// wxPopupWindow
16// ----------------------------------------------------------------------------
17
18class WXDLLIMPEXP_CORE wxPopupWindow : public wxPopupWindowBase
19{
20public:
21 wxPopupWindow() {}
22
23 wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
24 { Create(parent, flags); }
25
26 bool Create(wxWindow *parent, int flags = wxBORDER_NONE)
27 {
28 if ( !wxPopupWindowBase::Create(parent) )
29 return false;
30
31 return wxNonOwnedWindow::Create
32 (
33 parent,
34 -1,
35 // DFB windows must have valid pos & size:
36 wxPoint(0, 0), wxSize(1, 1),
37 (flags & wxBORDER_MASK) | wxPOPUP_WINDOW
38 );
39 }
40
41 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
42};
43
44#endif // _WX_DFB_POPUPWIN_H_
45