]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/misc2.i
incremented wxPython version number
[wxWidgets.git] / utils / wxPython / src / misc2.i
index 48a009a3b11b9846b8a81849b3be4a8c13819b8d..716c17333fc14b0408d32674d074411acdebb459 100644 (file)
 #include "helpers.h"
 #include <wx/resource.h>
 #include <wx/tooltip.h>
 #include "helpers.h"
 #include <wx/resource.h>
 #include <wx/tooltip.h>
+#include <wx/caret.h>
+#ifdef NOT_READY_YET
+#include <wx/fontenum.h>
+#endif
 %}
 
 //----------------------------------------------------------------------
 %}
 
 //----------------------------------------------------------------------
@@ -28,6 +32,7 @@
 // Import some definitions of other classes, etc.
 %import _defs.i
 %import windows.i
 // Import some definitions of other classes, etc.
 %import _defs.i
 %import windows.i
+%import misc.i
 
 //----------------------------------------------------------------------
 
 
 //----------------------------------------------------------------------
 
@@ -61,4 +66,74 @@ public:
 %}
 
 //----------------------------------------------------------------------
 %}
 
 //----------------------------------------------------------------------
+
+class wxCaret {
+public:
+    wxCaret(wxWindow* window, const wxSize& size);
+    ~wxCaret();
+
+    bool IsOk();
+    bool IsVisible();
+    %name(GetPositionTuple)void GetPosition(int *OUTPUT, int *OUTPUT);
+    wxPoint GetPosition();
+    %name(GetSizeTuple)void GetSize(int *OUTPUT, int *OUTPUT);
+    wxSize GetSize();
+    wxWindow *GetWindow();
+    %name(MoveXY)void Move(int x, int y);
+    void Move(const wxPoint& pt);
+    void Show(int show = TRUE);
+    void Hide();
+    void OnSetFocus();
+    void OnKillFocus();
+};
+
+%inline %{
+    int wxCaret_GetBlinkTime() {
+        return wxCaret::GetBlinkTime();
+    }
+
+    void wxCaret_SetBlinkTime(int milliseconds) {
+        wxCaret::SetBlinkTime(milliseconds);
+    }
+%}
+
 //----------------------------------------------------------------------
 //----------------------------------------------------------------------
+#ifdef NOT_READY_YET
+
+%{
+class wxPyFontEnumerator : public wxFontEnumerator {
+public:
+    wxPyFontEnumerator() {}
+    ~wxPyFontEnumerator() {}
+
+    bool EnumerateFamilies(int fixedWidthOnly = FALSE);
+    bool EnumerateEncodings(const char* family = "");
+
+    DEC_PYCALLBACK_BOOL_STRING(OnFontFamily);
+    DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
+
+    PYPRIVATE;
+};
+
+IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFontFamily);
+IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
+
+%}
+
+%name(wxFontEnumerator) class wxPyFontEnumerator {
+public:
+    wxPyFontEnumerator() {}
+    ~wxPyFontEnumerator() {}
+    %pragma(python) addtomethod = "__init__:self._setSelf(self)"
+
+    bool EnumerateFamilies(int fixedWidthOnly = FALSE);
+    bool EnumerateEncodings(const char* family = "");
+
+    bool base_OnFontFamily(const wxString& family);
+    bool base_OnFontEncoding(const wxString& family,
+                             const wxString& encoding);
+};
+#endif
+//----------------------------------------------------------------------
+//----------------------------------------------------------------------
+