2001-07-07 17:42:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-19 20:14:35 -04:00
|
|
|
// Name: wx/gtk/popupwin.h
|
2001-07-07 17:42:30 -04:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
|
|
|
// Created:
|
2001-07-10 08:25:46 -04:00
|
|
|
// Copyright: (c) 2001 Robert Roebling
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2001-07-07 17:42:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-08-30 01:55:56 -04:00
|
|
|
#ifndef _WX_GTK_POPUPWIN_H_
|
|
|
|
#define _WX_GTK_POPUPWIN_H_
|
2001-07-07 17:42:30 -04:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxPopUpWindow
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPopupWindow: public wxPopupWindowBase
|
2001-07-07 17:42:30 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPopupWindow() { }
|
2002-06-06 15:35:51 -04:00
|
|
|
virtual ~wxPopupWindow();
|
2001-10-12 14:11:46 -04:00
|
|
|
|
|
|
|
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
|
|
|
|
{ (void)Create(parent, flags); }
|
2001-07-07 17:42:30 -04:00
|
|
|
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
|
|
|
|
2007-10-24 14:07:24 -04:00
|
|
|
virtual bool Show(bool show = true);
|
2009-08-21 06:41:26 -04:00
|
|
|
|
2008-10-07 04:01:34 -04:00
|
|
|
virtual void SetFocus();
|
2001-10-12 14:11:46 -04:00
|
|
|
|
2001-07-07 17:42:30 -04:00
|
|
|
// implementation
|
|
|
|
// --------------
|
|
|
|
|
2006-02-27 04:16:28 -05:00
|
|
|
// GTK time when connecting to button_press signal
|
|
|
|
wxUint32 m_time;
|
2001-07-07 17:42:30 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void DoSetSize(int x, int y,
|
|
|
|
int width, int height,
|
|
|
|
int sizeFlags = wxSIZE_AUTO);
|
|
|
|
|
2006-02-08 16:47:09 -05:00
|
|
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
|
|
|
|
2007-10-24 14:07:24 -04:00
|
|
|
#ifdef __WXUNIVERSAL__
|
2001-07-07 17:42:30 -04:00
|
|
|
DECLARE_EVENT_TABLE()
|
2007-10-24 14:07:24 -04:00
|
|
|
#endif
|
2001-07-07 17:42:30 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
|
|
|
|
};
|
|
|
|
|
2006-08-30 01:55:56 -04:00
|
|
|
#endif // _WX_GTK_POPUPWIN_H_
|