};
%{
+ // See below in the init function...
wxClipboard* wxPyTheClipboard;
%}
%readonly
%{
class wxPyDropSource : public wxDropSource {
public:
+#ifdef __WXMSW__
wxPyDropSource(wxWindow *win = NULL,
const wxCursor &cursorCopy = wxNullCursor,
const wxCursor &cursorMove = wxNullCursor,
const wxCursor &cursorStop = wxNullCursor)
: wxDropSource(win, cursorCopy, cursorMove, cursorStop) {}
+#else
+ wxPyDropSource(wxWindow *win = NULL,
+ const wxIcon &go = wxNullIcon)
+ : wxDropSource(win, go) {}
+#endif
+ ~wxPyDropSource() { }
DEC_PYCALLBACK_BOOL_DR(GiveFeedback);
PYPRIVATE;
%name(wxDropSource) class wxPyDropSource {
public:
+#ifdef __WXMSW__
wxPyDropSource(wxWindow *win = NULL,
const wxCursor &cursorCopy = wxNullCursor,
const wxCursor &cursorMove = wxNullCursor,
const wxCursor &cursorStop = wxNullCursor);
- void _setSelf(PyObject* self);
- %pragma(python) addtomethod = "__init__:self._setSelf(self)"
+#else
+ wxPyDropSource(wxWindow *win = NULL,
+ const wxIcon &go = wxNullIcon);
+#endif
+
+ void _setSelf(PyObject* self, int incref);
+ %pragma(python) addtomethod = "__init__:self._setSelf(self, 0)"
~wxPyDropSource();
void SetData(wxDataObject& data);