1 /////////////////////////////////////////////////////////////////////////////
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.)
9 // Created: 18-June-1999
11 // Copyright: (c) 1998 by Total Control Software
12 // Licence: wxWindows license
13 /////////////////////////////////////////////////////////////////////////////
19 #include <wx/resource.h>
20 #include <wx/tooltip.h>
23 #include <wx/fontenum.h>
27 //----------------------------------------------------------------------
30 %include my_typemaps.i
32 // Import some definitions of other classes, etc.
37 //----------------------------------------------------------------------
39 wxWindow * wxFindWindowByLabel(const wxString& label, wxWindow *parent=NULL);
40 wxWindow * wxFindWindowByName(const wxString& name, wxWindow *parent=NULL);
44 //---------------------------------------------------------------------------
49 wxToolTip(const wxString &tip);
51 void SetTip(const wxString& tip);
53 // *** Not in the "public" interface void SetWindow(wxWindow *win);
54 wxWindow *GetWindow();
59 void wxToolTip_Enable(bool flag) {
60 wxToolTip::Enable(flag);
63 void wxToolTip_SetDelay(long milliseconds) {
64 wxToolTip::SetDelay(milliseconds);
68 //----------------------------------------------------------------------
72 wxCaret(wxWindow* window, const wxSize& size);
77 %name(GetPositionTuple)void GetPosition(int *OUTPUT, int *OUTPUT);
78 wxPoint GetPosition();
79 %name(GetSizeTuple)void GetSize(int *OUTPUT, int *OUTPUT);
81 wxWindow *GetWindow();
82 %name(MoveXY)void Move(int x, int y);
83 void Move(const wxPoint& pt);
84 void Show(int show = TRUE);
91 int wxCaret_GetBlinkTime() {
92 return wxCaret::GetBlinkTime();
95 void wxCaret_SetBlinkTime(int milliseconds) {
96 wxCaret::SetBlinkTime(milliseconds);
100 //----------------------------------------------------------------------
104 class wxPyFontEnumerator : public wxFontEnumerator {
106 wxPyFontEnumerator() {}
107 ~wxPyFontEnumerator() {}
109 bool EnumerateFamilies(int fixedWidthOnly = FALSE);
110 bool EnumerateEncodings(const char* family = "");
112 DEC_PYCALLBACK_BOOL_STRING(OnFontFamily);
113 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
118 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFontFamily);
119 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
123 %name(wxFontEnumerator) class wxPyFontEnumerator {
125 wxPyFontEnumerator() {}
126 ~wxPyFontEnumerator() {}
127 %pragma(python) addtomethod = "__init__:self._setSelf(self)"
129 bool EnumerateFamilies(int fixedWidthOnly = FALSE);
130 bool EnumerateEncodings(const char* family = "");
132 bool base_OnFontFamily(const wxString& family);
133 bool base_OnFontEncoding(const wxString& family,
134 const wxString& encoding);
137 //----------------------------------------------------------------------
138 //----------------------------------------------------------------------