/////////////////////////////////////////////////////////////////////////////
// Name: dragimag.h
-// Purpose: documentation for wxDragImage class
+// Purpose: interface of wxDragImage
// Author: wxWidgets team
// RCS-ID: $Id$
// Licence: wxWindows license
for
wxGenericDragImage, and can be used when the application
supplies DoDrawImage() and GetImageRect().
-
+
@param image
Icon or bitmap to be used as the drag image. The bitmap can
have a mask.
and Move() to show the image on the screen.
Call EndDrag() when the drag has finished.
Note that this call automatically calls CaptureMouse.
-
+
@param hotspot
The location of the drag position relative to the upper-left corner
of the image.
(together with
wxDragImage::DoDrawImage) to provide a virtual drawing capability.
*/
- virtual wxRect GetImageRect(const wxPoint& pos);
+ virtual wxRect GetImageRect(const wxPoint& pos) const;
/**
Hides the image. You may wish to call this before updating the window
*/
bool UpdateBackingFromWindow(wxDC& windowDC, wxMemoryDC& destDC,
const wxRect& sourceRect,
- const wxRect& destRect);
+ const wxRect& destRect) const;
};
+