]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/misc2.i
Added patch to wxPoint_LIST_helper from Tim Hochberg that should make
[wxWidgets.git] / wxPython / src / misc2.i
index e68acb89f982891085e5dbff81dc95f0f8867585..c5e890f66f9cdf98255f50eef7583a0f5d0d7154 100644 (file)
@@ -22,7 +22,9 @@
 #include <wx/fontenum.h>
 #include <wx/tipdlg.h>
 #include <wx/process.h>
+#ifdef __WXMSW__
 #include <wx/joystick.h>
+#endif
 %}
 
 //----------------------------------------------------------------------
@@ -382,10 +384,31 @@ public:
 
 //----------------------------------------------------------------------
 
+bool wxSafeYield(wxWindow* win=NULL);
 void wxPostEvent(wxEvtHandler *dest, wxEvent& event);
 void wxWakeUpIdle();
 
-bool wxSafeYield(wxWindow* win=NULL);
+
+#ifdef __WXMSW__
+void wxWakeUpMainThread();
+#endif
+
+void wxMutexGuiEnter();
+void wxMutexGuiLeave();
+
+
+class wxMutexGuiLocker  {
+public:
+    wxMutexGuiLocker();
+    ~wxMutexGuiLocker();
+};
+
+
+%inline %{
+    bool wxThread_IsMain() {
+        return wxThread::IsMain();
+    }
+%}
 
 //----------------------------------------------------------------------