]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/popupwin.h
make wxTmemchr() return (and take) char* instead of void* in ANSI build too
[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:
6// Id: $Id$
6522713c 7// Copyright: (c) 2001 Robert Roebling
65571936 8// Licence: wxWindows licence
9f41d601
RR
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef __GTKPOPUPWINH__
12#define __GTKPOPUPWINH__
13
9f41d601
RR
14#include "wx/defs.h"
15#include "wx/panel.h"
16#include "wx/icon.h"
17
18//-----------------------------------------------------------------------------
19// wxPopUpWindow
20//-----------------------------------------------------------------------------
21
20123d49 22class WXDLLIMPEXP_CORE wxPopupWindow: public wxPopupWindowBase
9f41d601
RR
23{
24public:
25 wxPopupWindow() { }
ad9fb033 26 virtual ~wxPopupWindow();
758bce95
RD
27
28 wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
29 { (void)Create(parent, flags); }
9f41d601
RR
30 bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
31
32 virtual bool Show( bool show = TRUE );
758bce95 33
9f41d601
RR
34 // implementation
35 // --------------
36
37 virtual void DoMoveWindow(int x, int y, int width, int height);
758bce95 38
9f41d601
RR
39 virtual void OnInternalIdle();
40
41
42protected:
43 void GtkOnSize( int x, int y, int width, int height );
44
45 virtual void DoSetSize(int x, int y,
46 int width, int height,
47 int sizeFlags = wxSIZE_AUTO);
48
49private:
50 DECLARE_EVENT_TABLE()
51 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
52};
53
54#endif // __GTKPOPUPWINDOWH__