]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/popupwin.h
simplify Refresh() and Update()
[wxWidgets.git] / include / wx / gtk / popupwin.h
... / ...
CommitLineData
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 _WX_GTK_POPUPWIN_H_
12#define _WX_GTK_POPUPWIN_H_
13
14//-----------------------------------------------------------------------------
15// wxPopUpWindow
16//-----------------------------------------------------------------------------
17
18class WXDLLIMPEXP_CORE wxPopupWindow: public wxPopupWindowBase
19{
20public:
21 wxPopupWindow() { }
22 virtual ~wxPopupWindow();
23
24 wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
25 { (void)Create(parent, flags); }
26 bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
27
28 virtual bool Show(bool show = true);
29
30 virtual void SetFocus();
31
32 // implementation
33 // --------------
34
35 // GTK time when connecting to button_press signal
36 wxUint32 m_time;
37
38protected:
39 virtual void DoSetSize(int x, int y,
40 int width, int height,
41 int sizeFlags = wxSIZE_AUTO);
42
43 virtual void DoMoveWindow(int x, int y, int width, int height);
44
45private:
46 virtual void AddChildGTK(wxWindowGTK* child);
47
48#ifdef __WXUNIVERSAL__
49 DECLARE_EVENT_TABLE()
50#endif
51 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
52};
53
54#endif // _WX_GTK_POPUPWIN_H_