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