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