]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_tipwin.i
Version number
[wxWidgets.git] / wxPython / src / _tipwin.i
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
26 class wxTipWindow :
27 #ifndef __WXMAC__
28 public wxPyPopupTransientWindow
29 #else
30 public wxFrame
31 #endif
32 {
33 public:
34 %addtofunc wxTipWindow "self._setOORInfo(self)"
35
36 %extend {
37 wxTipWindow(wxWindow *parent,
38 const wxString* text,
39 wxCoord maxLength = 100,
40 wxRect* rectBound = NULL) {
41 wxString tmp = *text;
42 return new wxTipWindow(parent, tmp, maxLength, NULL, rectBound);
43 }
44 }
45
46
47 // If rectBound is not NULL, the window will disappear automatically when
48 // the mouse leave the specified rect: note that rectBound should be in the
49 // screen coordinates!
50 void SetBoundingRect(const wxRect& rectBound);
51
52 // Hide and destroy the window
53 void Close();
54 };
55
56 //---------------------------------------------------------------------------