]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/popupwin.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / gtk1 / popupwin.h
CommitLineData
9f41d601 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/popupwin.h
9f41d601
RR
3// Purpose:
4// Author: Robert Roebling
5// Created:
6522713c 6// Copyright: (c) 2001 Robert Roebling
65571936 7// Licence: wxWindows licence
9f41d601
RR
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef __GTKPOPUPWINH__
11#define __GTKPOPUPWINH__
12
9f41d601
RR
13#include "wx/defs.h"
14#include "wx/panel.h"
15#include "wx/icon.h"
16
17//-----------------------------------------------------------------------------
18// wxPopUpWindow
19//-----------------------------------------------------------------------------
20
20123d49 21class WXDLLIMPEXP_CORE wxPopupWindow: public wxPopupWindowBase
9f41d601
RR
22{
23public:
24 wxPopupWindow() { }
ad9fb033 25 virtual ~wxPopupWindow();
758bce95
RD
26
27 wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
28 { (void)Create(parent, flags); }
9f41d601
RR
29 bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
30
31 virtual bool Show( bool show = TRUE );
758bce95 32
9f41d601
RR
33 // implementation
34 // --------------
35
36 virtual void DoMoveWindow(int x, int y, int width, int height);
758bce95 37
9f41d601
RR
38 virtual void OnInternalIdle();
39
40
41protected:
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
48private:
49 DECLARE_EVENT_TABLE()
50 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
51};
52
53#endif // __GTKPOPUPWINDOWH__