]>
Commit | Line | Data |
---|---|---|
bb0054cd RD |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: misc2.i | |
3 | // Purpose: Definitions of miscelaneous functions and classes that need | |
4 | // to know about wxWindow. (So they can't be in misc.i or an | |
5 | // import loop will happen.) | |
6 | // | |
7 | // Author: Robin Dunn | |
8 | // | |
9 | // Created: 18-June-1999 | |
10 | // RCS-ID: $Id$ | |
11 | // Copyright: (c) 1998 by Total Control Software | |
12 | // Licence: wxWindows license | |
13 | ///////////////////////////////////////////////////////////////////////////// | |
14 | ||
15 | %module misc2 | |
16 | ||
17 | %{ | |
18 | #include "helpers.h" | |
19 | #include <wx/resource.h> | |
20 | #include <wx/tooltip.h> | |
21 | %} | |
22 | ||
23 | //---------------------------------------------------------------------- | |
24 | ||
25 | %include typemaps.i | |
26 | %include my_typemaps.i | |
27 | ||
28 | // Import some definitions of other classes, etc. | |
29 | %import _defs.i | |
30 | %import windows.i | |
31 | ||
32 | //---------------------------------------------------------------------- | |
33 | ||
34 | wxWindow * wxFindWindowByLabel(const wxString& label, wxWindow *parent=NULL); | |
35 | wxWindow * wxFindWindowByName(const wxString& name, wxWindow *parent=NULL); | |
36 | ||
37 | ||
38 | ||
39 | //--------------------------------------------------------------------------- | |
40 | // wxToolTip | |
41 | ||
42 | class wxToolTip { | |
43 | public: | |
44 | wxToolTip(const wxString &tip); | |
45 | ||
46 | void SetTip(const wxString& tip); | |
47 | wxString GetTip(); | |
48 | // *** Not in the "public" interface void SetWindow(wxWindow *win); | |
49 | wxWindow *GetWindow(); | |
50 | }; | |
51 | ||
52 | ||
53 | %inline %{ | |
54 | void wxToolTip_Enable(bool flag) { | |
55 | wxToolTip::Enable(flag); | |
56 | } | |
57 | ||
58 | void wxToolTip_SetDelay(long milliseconds) { | |
59 | wxToolTip::SetDelay(milliseconds); | |
60 | } | |
61 | %} | |
62 | ||
63 | //---------------------------------------------------------------------- | |
64 | //---------------------------------------------------------------------- |