]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/popupwin.h
fixed several bugs in Mkdir() and also modified its API to be more user friendly...
[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, int flags = wxBORDER_NONE)
35 { (void)Create(parent, flags); }
36 bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
37
38 virtual bool Show( bool show = TRUE );
39
40 // implementation
41 // --------------
42
43 virtual void DoMoveWindow(int x, int y, int width, int height);
44
45 virtual void OnInternalIdle();
46
47
48 protected:
49 void GtkOnSize( int x, int y, int width, int height );
50
51 virtual void DoSetSize(int x, int y,
52 int width, int height,
53 int sizeFlags = wxSIZE_AUTO);
54
55 private:
56 DECLARE_EVENT_TABLE()
57 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
58 };
59
60 #endif // __GTKPOPUPWINDOWH__