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:
@@ -81,6 +81,17 @@ public:
|
|||||||
|
|
||||||
virtual ~wxDropSource();
|
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
|
// start drag action
|
||||||
virtual wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly);
|
virtual wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly);
|
||||||
|
|
||||||
|
@@ -310,10 +310,24 @@ public:
|
|||||||
@param res
|
@param res
|
||||||
The drag result to set the icon for.
|
The drag result to set the icon for.
|
||||||
@param cursor
|
@param cursor
|
||||||
The ion to show when this drag result occurs.
|
The icon to show when this drag result occurs.
|
||||||
|
|
||||||
|
@onlyfor{wxmsw,wxosx}
|
||||||
*/
|
*/
|
||||||
void SetCursor(wxDragResult res, const wxCursor& cursor);
|
void SetCursor(wxDragResult res, const wxCursor& cursor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Set the icon to use for a certain drag result.
|
||||||
|
|
||||||
|
@param res
|
||||||
|
The drag result to set the icon for.
|
||||||
|
@param icon
|
||||||
|
The icon to show when this drag result occurs.
|
||||||
|
|
||||||
|
@onlyfor{wxgtk}
|
||||||
|
*/
|
||||||
|
void SetIcon(wxDragResult res, const wxIcon& icon);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the data wxDataObject associated with the drop source. This will
|
Sets the data wxDataObject associated with the drop source. This will
|
||||||
not delete any previously associated data.
|
not delete any previously associated data.
|
||||||
|
Reference in New Issue
Block a user