]>
Commit | Line | Data |
---|---|---|
9f41d601 RR |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: popupwin.h | |
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 | ||
0416c418 PC |
11 | #ifndef _WX_GTK_POPUPWIN_H_ |
12 | #define _WX_GTK_POPUPWIN_H_ | |
9f41d601 RR |
13 | |
14 | //----------------------------------------------------------------------------- | |
15 | // wxPopUpWindow | |
16 | //----------------------------------------------------------------------------- | |
17 | ||
20123d49 | 18 | class WXDLLIMPEXP_CORE wxPopupWindow: public wxPopupWindowBase |
9f41d601 RR |
19 | { |
20 | public: | |
21 | wxPopupWindow() { } | |
ad9fb033 | 22 | virtual ~wxPopupWindow(); |
758bce95 RD |
23 | |
24 | wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE) | |
25 | { (void)Create(parent, flags); } | |
9f41d601 RR |
26 | bool Create(wxWindow *parent, int flags = wxBORDER_NONE); |
27 | ||
cca410b3 | 28 | virtual bool Show(bool show = true); |
03647350 | 29 | |
357d2b88 | 30 | virtual void SetFocus(); |
758bce95 | 31 | |
9f41d601 RR |
32 | // implementation |
33 | // -------------- | |
34 | ||
33c0d0ed RR |
35 | // GTK time when connecting to button_press signal |
36 | wxUint32 m_time; | |
9f41d601 | 37 | |
9f41d601 | 38 | protected: |
9f41d601 RR |
39 | virtual void DoSetSize(int x, int y, |
40 | int width, int height, | |
41 | int sizeFlags = wxSIZE_AUTO); | |
42 | ||
6f02a879 VZ |
43 | virtual void DoMoveWindow(int x, int y, int width, int height); |
44 | ||
9f41d601 | 45 | private: |
48200154 PC |
46 | virtual void AddChildGTK(wxWindowGTK* child); |
47 | ||
cca410b3 | 48 | #ifdef __WXUNIVERSAL__ |
9f41d601 | 49 | DECLARE_EVENT_TABLE() |
cca410b3 | 50 | #endif |
9f41d601 RR |
51 | DECLARE_DYNAMIC_CLASS(wxPopupWindow) |
52 | }; | |
53 | ||
0416c418 | 54 | #endif // _WX_GTK_POPUPWIN_H_ |