%rename(DropSource) wxPyDropSource;
class wxPyDropSource {
public:
- %pythonAppend wxPyDropSource "self._setCallbackInfo(self, DropSource, 0)"
+ %pythonAppend wxPyDropSource setCallbackInfo(DropSource)
#ifndef __WXGTK__
wxPyDropSource(wxWindow *win,
const wxCursor © = wxNullCursor,
const wxIcon& none = wxNullIcon);
#endif
- void _setCallbackInfo(PyObject* self, PyObject* _class, int incref);
+ void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=0);
~wxPyDropSource();
// set the data which is transfered by drag and drop
bool GiveFeedback(wxDragResult effect);
%MAKE_BASE_FUNC(DropSource, GiveFeedback);
+
+ %property(DataObject, GetDataObject, SetData, doc="See `GetDataObject` and `SetData`");
};
class wxPyDropTarget // : public wxDropTarget
{
public:
- %pythonAppend wxPyDropTarget
- "self._setCallbackInfo(self, DropTarget)"
+ %pythonAppend wxPyDropTarget setCallbackInfo(DropTarget)
%disownarg( wxDataObject *dataObject );
// returns default action for drag and drop or
// wxDragNone if this not specified
wxDragResult GetDefaultAction();
+
+ %property(DataObject, GetDataObject, SetDataObject, doc="See `GetDataObject` and `SetDataObject`");
+ %property(DefaultAction, GetDefaultAction, SetDefaultAction, doc="See `GetDefaultAction` and `SetDefaultAction`");
};
%rename(TextDropTarget) wxPyTextDropTarget;
class wxPyTextDropTarget : public wxPyDropTarget {
public:
- %pythonAppend wxPyTextDropTarget "self._setCallbackInfo(self, TextDropTarget)"
+ %pythonAppend wxPyTextDropTarget setCallbackInfo(TextDropTarget)
wxPyTextDropTarget();
void _setCallbackInfo(PyObject* self, PyObject* _class);
class wxPyFileDropTarget : public wxPyDropTarget
{
public:
- %pythonAppend wxPyFileDropTarget "self._setCallbackInfo(self, FileDropTarget)"
+ %pythonAppend wxPyFileDropTarget setCallbackInfo(FileDropTarget)
wxPyFileDropTarget();
void _setCallbackInfo(PyObject* self, PyObject* _class);