]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: _tipwin.i | |
3 | // Purpose: SWIG interface defs for wxTipWindow | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 22-Dec-1998 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 2003 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | // Not a %module | |
14 | ||
15 | ||
16 | //--------------------------------------------------------------------------- | |
17 | ||
18 | %{ | |
19 | #include <wx/tipwin.h> | |
20 | %} | |
21 | ||
22 | //--------------------------------------------------------------------------- | |
23 | %newgroup; | |
24 | ||
25 | ||
ab1f7d2a RD |
26 | MustHaveApp(wxTipWindow); |
27 | ||
d14a1e28 RD |
28 | class wxTipWindow : |
29 | #ifndef __WXMAC__ | |
30 | public wxPyPopupTransientWindow | |
31 | #else | |
32 | public wxFrame | |
33 | #endif | |
34 | { | |
35 | public: | |
2b9048c5 | 36 | %pythonAppend wxTipWindow "self._setOORInfo(self)" |
d14a1e28 RD |
37 | |
38 | %extend { | |
39 | wxTipWindow(wxWindow *parent, | |
fd3f2efe | 40 | const wxString& text, |
d14a1e28 RD |
41 | wxCoord maxLength = 100, |
42 | wxRect* rectBound = NULL) { | |
fd3f2efe | 43 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); |
d14a1e28 RD |
44 | } |
45 | } | |
46 | ||
47 | ||
48 | // If rectBound is not NULL, the window will disappear automatically when | |
49 | // the mouse leave the specified rect: note that rectBound should be in the | |
50 | // screen coordinates! | |
51 | void SetBoundingRect(const wxRect& rectBound); | |
52 | ||
53 | // Hide and destroy the window | |
54 | void Close(); | |
55 | }; | |
56 | ||
57 | //--------------------------------------------------------------------------- |