bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
-#include "wx/display.h"
+#include <wx/display.h>
bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
+
+// dummy version of wxDisplay for when it is not enabled in the wxWidgets build
+#if !wxUSE_DISPLAY
+#include <wx/dynarray.h>
+#include <wx/vidmode.h>
+
+WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
+#include "wx/arrimpl.cpp"
+WX_DEFINE_OBJARRAY(wxArrayVideoModes);
+const wxVideoMode wxDefaultVideoMode;
+
+class wxDisplay
+{
+public:
+ wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
+ ~wxDisplay() {}
+
+ static size_t GetCount()
+ { wxPyRaiseNotImplemented(); return 0; }
+
+ static int GetFromPoint(const wxPoint& pt)
+ { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
+ static int GetFromWindow(wxWindow *window)
+ { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
+
+ virtual bool IsOk() const { return false; }
+ virtual wxRect GetGeometry() const { wxRect r; return r; }
+ virtual wxString GetName() const { return wxEmptyString; }
+ bool IsPrimary() const { return false; }
+
+ wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
+ { wxArrayVideoModes a; return a; }
+
+ virtual wxVideoMode GetCurrentMode() const
+ { return wxDefaultVideoMode; }
+
+ virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
+ { return false; }
+
+ void ResetMode() {}
+};
+#endif
+
PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
PyObject* pyList = NULL;
wxArrayVideoModes arr = self->GetModes(mode);
}
+static PyObject *_wrap_Clipboard_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxClipboard *result;
+ char *kwnames[] = {
+ NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (wxClipboard *)wxClipboard::Get();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
PyObject *obj;
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
Py_INCREF(obj);
return Py_BuildValue((char *)"");
}
-static int _wrap_TheClipboard_set(PyObject *_val) {
- PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
- return 1;
-}
-
-
-static PyObject *_wrap_TheClipboard_get() {
- PyObject *pyobj;
-
- pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
- return pyobj;
-}
-
-
static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxClipboard *arg1 = (wxClipboard *) NULL ;
{ (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
{ (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
{ (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
+ { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS },
{ (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
{ (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
{ (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
- SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
}