]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/popupwin.h
changed/centralized window creation code to allow wxTLW work in wxUniv
[wxWidgets.git] / include / wx / gtk1 / 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
14#ifdef __GNUG__
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() { }
1d872943
GD
30#ifdef __DARWIN__
31 virtual ~wxPopupWindow() { }
32#endif
33
9f41d601
RR
34 wxPopupWindow(wxWindow *parent) { (void)Create(parent); }
35 bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
36
37 virtual bool Show( bool show = TRUE );
38
39 // implementation
40 // --------------
41
42 virtual void DoMoveWindow(int x, int y, int width, int height);
43
44 virtual void OnInternalIdle();
45
46
47protected:
48 void GtkOnSize( int x, int y, int width, int height );
49
50 virtual void DoSetSize(int x, int y,
51 int width, int height,
52 int sizeFlags = wxSIZE_AUTO);
53
54private:
55 DECLARE_EVENT_TABLE()
56 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
57};
58
59#endif // __GTKPOPUPWINDOWH__