]> git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/popupwin.h
Fix wxStandardDialogLayoutAdapter compilation with wxUSE_BUTTON==0.
[wxWidgets.git] / include / wx / x11 / popupwin.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: popupwin.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created:
6 // Id: $Id$
7 // Copyright: (c) 2001 Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef __GTKPOPUPWINH__
12 #define __GTKPOPUPWINH__
13
14 #include "wx/defs.h"
15 #include "wx/panel.h"
16 #include "wx/icon.h"
17
18 //-----------------------------------------------------------------------------
19 // wxPopUpWindow
20 //-----------------------------------------------------------------------------
21
22 class WXDLLIMPEXP_CORE wxPopupWindow: public wxPopupWindowBase
23 {
24 public:
25 wxPopupWindow() { }
26 virtual ~wxPopupWindow() ;
27
28 wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
29 { (void)Create(parent, flags); }
30
31 bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
32
33 virtual bool Show( bool show = TRUE );
34
35 protected:
36 virtual void DoMoveWindow(int x, int y, int width, int height);
37 virtual void DoSetSize(int x, int y,
38 int width, int height,
39 int sizeFlags = wxSIZE_AUTO);
40
41 private:
42 DECLARE_EVENT_TABLE()
43 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
44 };
45
46 #endif // __GTKPOPUPWINDOWH__