]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_tipwin.i
Reverted to old method names/signatures for wx.DC, updated lib and
[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 %pythonAppend wxTipWindow "self._setOORInfo(self)"
35
36 %extend {
37 wxTipWindow(wxWindow *parent,
38 const wxString& text,
39 wxCoord maxLength = 100,
40 wxRect* rectBound = NULL) {
41 return new wxTipWindow(parent, text, maxLength, NULL, rectBound);
42 }
43 }
44
45
46 // If rectBound is not NULL, the window will disappear automatically when
47 // the mouse leave the specified rect: note that rectBound should be in the
48 // screen coordinates!
49 void SetBoundingRect(const wxRect& rectBound);
50
51 // Hide and destroy the window
52 void Close();
53 };
54
55 //---------------------------------------------------------------------------