Add wxDropSource::SetIcon for wxGTK to mimic SetCursor on the other ports.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-05-03 23:30:40 +00:00
parent 07b6b12176
commit 7bb22bd68d
2 changed files with 26 additions and 1 deletions

View File

@@ -81,6 +81,17 @@ public:
virtual ~wxDropSource();
// set the icon corresponding to given drag result
void SetIcon(wxDragResult res, const wxIcon& icon)
{
if ( res == wxDragCopy )
m_iconCopy = icon;
else if ( res == wxDragMove )
m_iconMove = icon;
else
m_iconNone = icon;
}
// start drag action
virtual wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly);