]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/popupwin.h
Added Set/GetQuickBestSize
[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 #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 bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
31
32 virtual bool Show( bool show = TRUE );
33
34 // implementation
35 // --------------
36
37 virtual void OnInternalIdle();
38
39 // GTK time when connecting to button_press signal
40 wxUint32 m_time;
41
42
43 protected:
44 void GtkOnSize( int x, int y, int width, int height );
45
46 virtual void DoSetSize(int x, int y,
47 int width, int height,
48 int sizeFlags = wxSIZE_AUTO);
49
50 virtual void DoMoveWindow(int x, int y, int width, int height);
51
52 private:
53 DECLARE_EVENT_TABLE()
54 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
55 };
56
57 #endif // __GTKPOPUPWINDOWH__