]>
Commit | Line | Data |
---|---|---|
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 | ||
26 | class wxPopupWindow: public wxPopupWindowBase | |
27 | { | |
28 | public: | |
29 | wxPopupWindow() { } | |
1d872943 GD |
30 | #ifdef __DARWIN__ |
31 | virtual ~wxPopupWindow() { } | |
32 | #endif | |
758bce95 RD |
33 | |
34 | wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE) | |
35 | { (void)Create(parent, flags); } | |
9f41d601 RR |
36 | bool Create(wxWindow *parent, int flags = wxBORDER_NONE); |
37 | ||
38 | virtual bool Show( bool show = TRUE ); | |
758bce95 | 39 | |
9f41d601 RR |
40 | // implementation |
41 | // -------------- | |
42 | ||
43 | virtual void DoMoveWindow(int x, int y, int width, int height); | |
758bce95 | 44 | |
9f41d601 RR |
45 | virtual void OnInternalIdle(); |
46 | ||
47 | ||
48 | protected: | |
49 | void GtkOnSize( int x, int y, int width, int height ); | |
50 | ||
51 | virtual void DoSetSize(int x, int y, | |
52 | int width, int height, | |
53 | int sizeFlags = wxSIZE_AUTO); | |
54 | ||
55 | private: | |
56 | DECLARE_EVENT_TABLE() | |
57 | DECLARE_DYNAMIC_CLASS(wxPopupWindow) | |
58 | }; | |
59 | ||
60 | #endif // __GTKPOPUPWINDOWH__ |