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>
22 #include <wx/fontenum.h>
25 //----------------------------------------------------------------------
28 %include my_typemaps.i
30 // Import some definitions of other classes, etc.
35 //----------------------------------------------------------------------
37 wxWindow * wxFindWindowByLabel(const wxString& label, wxWindow *parent=NULL);
38 wxWindow * wxFindWindowByName(const wxString& name, wxWindow *parent=NULL);
42 //---------------------------------------------------------------------------
47 wxToolTip(const wxString &tip);
49 void SetTip(const wxString& tip);
51 // *** Not in the "public" interface void SetWindow(wxWindow *win);
52 wxWindow *GetWindow();
57 void wxToolTip_Enable(bool flag) {
58 wxToolTip::Enable(flag);
61 void wxToolTip_SetDelay(long milliseconds) {
62 wxToolTip::SetDelay(milliseconds);
66 //----------------------------------------------------------------------
70 wxCaret(wxWindow* window, const wxSize& size);
75 %name(GetPositionTuple)void GetPosition(int *OUTPUT, int *OUTPUT);
76 wxPoint GetPosition();
77 %name(GetSizeTuple)void GetSize(int *OUTPUT, int *OUTPUT);
79 wxWindow *GetWindow();
80 %name(MoveXY)void Move(int x, int y);
81 void Move(const wxPoint& pt);
82 void Show(int show = TRUE);
89 int wxCaret_GetBlinkTime() {
90 return wxCaret::GetBlinkTime();
93 void wxCaret_SetBlinkTime(int milliseconds) {
94 wxCaret::SetBlinkTime(milliseconds);
98 //----------------------------------------------------------------------
102 class wxPyFontEnumerator : public wxFontEnumerator {
104 wxPyFontEnumerator() {}
105 ~wxPyFontEnumerator() {}
107 bool EnumerateFamilies(int fixedWidthOnly = FALSE);
108 bool EnumerateEncodings(const char* family = "");
110 DEC_PYCALLBACK_BOOL_STRING(OnFontFamily);
111 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
116 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFontFamily);
117 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
121 %name(wxFontEnumerator) class wxPyFontEnumerator {
123 wxPyFontEnumerator() {}
124 ~wxPyFontEnumerator() {}
125 %pragma(python) addtomethod = "__init__:self._setSelf(self)"
127 bool EnumerateFamilies(int fixedWidthOnly = FALSE);
128 bool EnumerateEncodings(const char* family = "");
130 bool base_OnFontFamily(const wxString& family);
131 bool base_OnFontEncoding(const wxString& family,
132 const wxString& encoding);
135 //----------------------------------------------------------------------
136 //----------------------------------------------------------------------