]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/popupwin.h
fixes for Raise() to work correctly with both top level and child windows
[wxWidgets.git] / include / wx / gtk / 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 #ifdef __GNUG__
15 #pragma interface "popupwin.h"
16 #endif
17
18 #include "wx/defs.h"
19 #include "wx/panel.h"
20 #include "wx/icon.h"
21
22 //-----------------------------------------------------------------------------
23 // wxPopUpWindow
24 //-----------------------------------------------------------------------------
25
26 class wxPopupWindow: public wxPopupWindowBase
27 {
28 public:
29 wxPopupWindow() { }
30 #ifdef __DARWIN__
31 virtual ~wxPopupWindow() { }
32 #endif
33
34 wxPopupWindow(wxWindow *parent) { (void)Create(parent); }
35 bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
36
37 virtual bool Show( bool show = TRUE );
38
39 // implementation
40 // --------------
41
42 virtual void DoMoveWindow(int x, int y, int width, int height);
43
44 virtual void OnInternalIdle();
45
46
47 protected:
48 void GtkOnSize( int x, int y, int width, int height );
49
50 virtual void DoSetSize(int x, int y,
51 int width, int height,
52 int sizeFlags = wxSIZE_AUTO);
53
54 private:
55 DECLARE_EVENT_TABLE()
56 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
57 };
58
59 #endif // __GTKPOPUPWINDOWH__