1//---------------------------------------------------------------------------
2// This file is generated by wxPython's SIP generator.  Do not edit by hand.
3//
4// Copyright: (c) 2018 by Total Control Software
5// License:   wxWindows License
6//
7// This file will be included by _core.sip
8//
9//---------------------------------------------------------------------------
10
11//---------------------------------------------------------------------------
12
13class wxToolTip : wxObject
14{
15    %Docstring
16        ToolTip(tip)
17
18        This class holds information about a tooltip associated with a window
19        (see wxWindow::SetToolTip()).
20    %End
21    %TypeHeaderCode
22        #include <wx/tooltip.h>
23    %End
24
25public:
26    wxToolTip(
27        const wxString & tip
28    );
29    %PreMethodCode
30        if (!wxPyCheckForApp()) return NULL;
31    %End
32
33    wxString GetTip() const;
34    %Docstring
35        GetTip() -> String
36
37        Get the tooltip text.
38    %End
39
40    wxWindow * GetWindow() const;
41    %Docstring
42        GetWindow() -> Window
43
44        Get the associated window.
45    %End
46
47    void SetTip(
48        const wxString & tip
49    );
50    %Docstring
51        SetTip(tip)
52
53        Set the tooltip text.
54    %End
55
56    static
57    void Enable(
58        bool flag
59    );
60    %Docstring
61        Enable(flag)
62
63        Enable or disable tooltips globally.
64    %End
65
66    static
67    void SetAutoPop(
68        long msecs
69    );
70    %Docstring
71        SetAutoPop(msecs)
72
73        Set the delay after which the tooltip disappears or how long a tooltip
74        remains visible.
75    %End
76
77    static
78    void SetDelay(
79        long msecs
80    );
81    %Docstring
82        SetDelay(msecs)
83
84        Set the delay after which the tooltip appears.
85    %End
86
87    static
88    void SetMaxWidth(
89        int width
90    );
91    %Docstring
92        SetMaxWidth(width)
93
94        Set tooltip maximal width in pixels.
95    %End
96    %MethodCode
97        PyErr_Clear();
98        Py_BEGIN_ALLOW_THREADS
99        _wxToolTip_SetMaxWidth(width);
100        Py_END_ALLOW_THREADS
101        if (PyErr_Occurred()) sipIsErr = 1;
102    %End
103    %TypeCode
104    void _wxToolTip_SetMaxWidth(int width)
105    {
106        #ifdef __WXMSW__
107            wxToolTip::SetMaxWidth(width);
108        #endif
109    }
110    %End
111
112    static
113    void SetReshow(
114        long msecs
115    );
116    %Docstring
117        SetReshow(msecs)
118
119        Set the delay between subsequent tooltips to appear.
120    %End
121
122    %Property(name=Tip, get=GetTip, set=SetTip)
123    %Property(name=Window, get=GetWindow)
124    private:
125        wxToolTip(const wxToolTip&);
126
127
128};  // end of class wxToolTip
129
130
131
132//---------------------------------------------------------------------------
133
134