]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/popupwin.h
made wx[Array]TreeItemId[s] more backwards compatible
[wxWidgets.git] / include / wx / gtk / popupwin.h
CommitLineData
9f41d601
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: popupwin.h
3// Purpose:
4// Author: Robert Roebling
5// Created:
6// Id: $Id$
6522713c
VZ
7// Copyright: (c) 2001 Robert Roebling
8// Licence: wxWindows licence
9f41d601
RR
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef __GTKPOPUPWINH__
12#define __GTKPOPUPWINH__
13
ab7ce33c 14#if defined(__GNUG__) && !defined(__APPLE__)
6522713c 15 #pragma interface "popupwin.h"
9f41d601
RR
16#endif
17
18#include "wx/defs.h"
19#include "wx/panel.h"
20#include "wx/icon.h"
21
22//-----------------------------------------------------------------------------
23// wxPopUpWindow
24//-----------------------------------------------------------------------------
25
26class wxPopupWindow: public wxPopupWindowBase
27{
28public:
29 wxPopupWindow() { }
ad9fb033 30 virtual ~wxPopupWindow();
758bce95
RD
31
32 wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
33 { (void)Create(parent, flags); }
9f41d601
RR
34 bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
35
36 virtual bool Show( bool show = TRUE );
758bce95 37
9f41d601
RR
38 // implementation
39 // --------------
40
41 virtual void DoMoveWindow(int x, int y, int width, int height);
758bce95 42
9f41d601
RR
43 virtual void OnInternalIdle();
44
45
46protected:
47 void GtkOnSize( int x, int y, int width, int height );
48
49 virtual void DoSetSize(int x, int y,
50 int width, int height,
51 int sizeFlags = wxSIZE_AUTO);
52
53private:
54 DECLARE_EVENT_TABLE()
55 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
56};
57
58#endif // __GTKPOPUPWINDOWH__