X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d2a2b601b1994333886dff8f53d82a714c4042f..9018abe3ef28d237b0421c8d96987907adbe5532:/include/wx/gtk/dnd.h diff --git a/include/wx/gtk/dnd.h b/include/wx/gtk/dnd.h index 998f656c59..dc0a2d850d 100644 --- a/include/wx/gtk/dnd.h +++ b/include/wx/gtk/dnd.h @@ -23,6 +23,8 @@ #include "wx/string.h" #include "wx/dataobj.h" #include "wx/cursor.h" +#include "wx/icon.h" +#include "wx/gdicmn.h" //------------------------------------------------------------------------- // conditional compilation @@ -60,6 +62,7 @@ class wxDropTarget: public wxObject virtual void OnEnter() { } virtual void OnLeave() { } + virtual void OnMouseMove( long WXUNUSED(x), long WXUNUSED(y) ) { } virtual bool OnDrop( long x, long y, const void *data, size_t size ) = 0; // Override these to indicate what kind of data you support: @@ -158,10 +161,10 @@ class wxDropSource: public wxObject public: /* constructor. set data later with SetData() */ - wxDropSource( wxWindow *win ); + wxDropSource( wxWindow *win, const wxIcon &go = wxNullIcon, const wxIcon &stop = wxNullIcon ); /* constructor for setting one data object */ - wxDropSource( wxDataObject *data, wxWindow *win ); + wxDropSource( wxDataObject *data, wxWindow *win, const wxIcon &go = wxNullIcon, const wxIcon &stop = wxNullIcon ); /* constructor for setting several data objects via wxDataBroker */ wxDropSource( wxDataBroker *data, wxWindow *win ); @@ -192,6 +195,9 @@ class wxDropSource: public wxObject wxCursor m_defaultCursor; wxCursor m_goaheadCursor; + + wxIcon m_goIcon; + wxIcon m_stopIcon; }; #endif