]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/popupwin.h
Trying to hide evidence of my negative programming skills...
[wxWidgets.git] / include / wx / gtk1 / popupwin.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: popupwin.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created:
6 // Id: $Id$
7 // Copyright: (c) 1998 Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef __GTKPOPUPWINH__
12 #define __GTKPOPUPWINH__
13
14 #ifdef __GNUG__
15 #pragma interface
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
31 wxPopupWindow(wxWindow *parent) { (void)Create(parent); }
32 bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
33
34 virtual bool Show( bool show = TRUE );
35
36 // implementation
37 // --------------
38
39 virtual void DoMoveWindow(int x, int y, int width, int height);
40
41 virtual void OnInternalIdle();
42
43
44 protected:
45 void GtkOnSize( int x, int y, int width, int height );
46
47 virtual void DoSetSize(int x, int y,
48 int width, int height,
49 int sizeFlags = wxSIZE_AUTO);
50
51 private:
52 DECLARE_EVENT_TABLE()
53 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
54 };
55
56 #endif // __GTKPOPUPWINDOWH__