Mac and GTK can take three icons in the wxDropSource now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-02-20 22:19:06 +00:00
parent 54e0d4ab33
commit 5b6ec72d86

View File

@@ -455,15 +455,17 @@ bool wxIsDragResultOk(wxDragResult res);
class wxPyDropSource : public wxDropSource { class wxPyDropSource : public wxDropSource {
public: public:
#ifdef __WXMSW__ #ifdef __WXMSW__
wxPyDropSource(wxWindow *win = NULL, wxPyDropSource(wxWindow *win = NULL,
const wxCursor &cursorCopy = wxNullCursor, const wxCursor &copy = wxNullCursor,
const wxCursor &cursorMove = wxNullCursor, const wxCursor &move = wxNullCursor,
const wxCursor &cursorStop = wxNullCursor) const wxCursor &none = wxNullCursor)
: wxDropSource(win, cursorCopy, cursorMove, cursorStop) {} : wxDropSource(win, copy, move, none) {}
#else #else
wxPyDropSource(wxWindow *win = NULL, wxPyDropSource(wxWindow *win = NULL,
const wxIcon &go = wxNullIcon) const wxIcon& copy = wxNullIcon,
: wxDropSource(win, go) {} const wxIcon& move = wxNullIcon,
const wxIcon& none = wxNullIcon)
: wxDropSource(win, copy, move, none) {}
#endif #endif
~wxPyDropSource() { } ~wxPyDropSource() { }
@@ -479,13 +481,15 @@ IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
%name(wxDropSource) class wxPyDropSource { %name(wxDropSource) class wxPyDropSource {
public: public:
#ifdef __WXMSW__ #ifdef __WXMSW__
wxPyDropSource(wxWindow *win = NULL, wxPyDropSource(wxWindow *win = NULL,
const wxCursor &cursorCopy = wxNullCursor, const wxCursor &copy = wxNullCursor,
const wxCursor &cursorMove = wxNullCursor, const wxCursor &move = wxNullCursor,
const wxCursor &cursorStop = wxNullCursor); const wxCursor &none = wxNullCursor);
#else #else
wxPyDropSource(wxWindow *win = NULL, wxPyDropSource(wxWindow *win = NULL,
const wxIcon &go = wxNullIcon); const wxIcon& copy = wxNullIcon,
const wxIcon& move = wxNullIcon,
const wxIcon& none = wxNullIcon);
#endif #endif
void _setCallbackInfo(PyObject* self, PyObject* _class, int incref); void _setCallbackInfo(PyObject* self, PyObject* _class, int incref);