]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_tipwin.i
wxToggleButton on wxMac has these methods now
[wxWidgets.git] / wxPython / src / _tipwin.i
CommitLineData
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
26class wxTipWindow :
27#ifndef __WXMAC__
28 public wxPyPopupTransientWindow
29#else
30 public wxFrame
31#endif
32{
33public:
2b9048c5 34 %pythonAppend wxTipWindow "self._setOORInfo(self)"
d14a1e28
RD
35
36 %extend {
37 wxTipWindow(wxWindow *parent,
fd3f2efe 38 const wxString& text,
d14a1e28
RD
39 wxCoord maxLength = 100,
40 wxRect* rectBound = NULL) {
fd3f2efe 41 return new wxTipWindow(parent, text, maxLength, NULL, rectBound);
d14a1e28
RD
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//---------------------------------------------------------------------------