- wxDragImage(const wxBitmap& image,
- const wxCursor& cursor = wxNullCursor);
- wxDragImage(const wxIcon& image,
- const wxCursor& cursor = wxNullCursor);
- wxDragImage(const wxString& text,
- const wxCursor& cursor = wxNullCursor);
- wxDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
- wxDragImage(const wxListCtrl& treeCtrl, long id);
- wxDragImage(const wxCursor& cursor = wxNullCursor);
- //@}
-
- //@{
- /**
- Start dragging the image, using the first window to capture the mouse and the
- second
- to specify the bounding area. This form is equivalent to using the first form,
- but more convenient than working out the bounding rectangle explicitly.
-
- You need to then call Show()
- 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.
-
- @param window
- The window that captures the mouse, and within which the dragging
- is limited unless fullScreen is @true.
-
- @param boundingWindow
- In the second form of the function, specifies the
- area within which the drag occurs.
-
- @param fullScreen
- If @true, specifies that the drag will be visible over the full
- screen, or over as much of the screen as is specified by rect. Note that the
- mouse will
- still be captured in window.
-
- @param rect
- If non-@NULL, specifies the rectangle (in screen coordinates) that
- bounds the dragging operation. Specifying this can make the operation more
- efficient
- by cutting down on the area under consideration, and it can also make a visual
- difference
- since the drag is clipped to this area.
+ /**
+ Constructs a drag image from a bitmap and optional cursor.
+
+ @param image
+ Bitmap to be used as the drag image. The bitmap can have a mask.
+ @param cursor
+ Optional cursor to combine with the image.
+ @param cursorHotspot
+ This parameter is deprecated.
+ */
+ wxDragImage(const wxBitmap& image, const wxCursor& cursor = wxNullCursor,
+ const wxPoint& cursorHotspot = wxPoint(0, 0));
+ /**
+ Constructs a drag image from an icon and optional cursor.
+
+ @param image
+ Icon to be used as the drag image.
+ @param cursor
+ Optional cursor to combine with the image.
+ @param cursorHotspot
+ This parameter is deprecated.
+
+ @beginWxPythonOnly
+ This constructor is called wxDragIcon in wxPython.
+ @endWxPythonOnly
+ */
+ wxDragImage(const wxIcon& image, const wxCursor& cursor = wxNullCursor,
+ const wxPoint& cursorHotspot = wxPoint(0, 0));
+ /**
+ Constructs a drag image from a text string and optional cursor.
+
+ @param text
+ Text used to construct a drag image.
+ @param cursor
+ Optional cursor to combine with the image.
+ @param cursorHotspot
+ This parameter is deprecated.
+
+ @beginWxPythonOnly
+ This constructor is called wxDragString in wxPython.
+ @endWxPythonOnly
+ */
+ wxDragImage(const wxString& text, const wxCursor& cursor = wxNullCursor,
+ const wxPoint& cursorHotspot = wxPoint(0, 0));
+ /**
+ Constructs a drag image from the text in the given tree control item,
+ and optional cursor.
+
+ @param treeCtrl
+ Tree control for constructing a tree drag image.
+ @param id
+ Tree control item id.
+
+ @beginWxPythonOnly
+ This constructor is called wxDragTreeItem in wxPython.
+ @endWxPythonOnly
+ */
+ wxDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
+ /**
+ Constructs a drag image from the text in the given list control item,
+ and optional cursor.
+
+ @param listCtrl
+ List control for constructing a list drag image.
+ @param id
+ List control item id.
+
+ @beginWxPythonOnly
+ This constructor is called wxDragListItem in wxPython.
+ @endWxPythonOnly
+ */
+ wxDragImage(const wxListCtrl& listCtrl, long id);
+ /**
+ Constructs a drag image an optional cursor. This constructor is only
+ available for wxGenericDragImage, and can be used when the application
+ supplies DoDrawImage() and GetImageRect().
+
+ @param cursor
+ Optional cursor to combine with the image.
+ @param cursorHotspot
+ This parameter is deprecated.
+ */
+ wxDragImage(const wxCursor& cursor = wxNullCursor,
+ const wxPoint& cursorHotspot = wxPoint(0, 0));
+
+ /**
+ Start dragging the image, in a window or full screen.
+
+ You need to then call Show() 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.
+ @param window
+ The window that captures the mouse, and within which the dragging
+ is limited unless fullScreen is @true.
+ @param fullScreen
+ If @true, specifies that the drag will be visible over the full
+ screen, or over as much of the screen as is specified by rect. Note
+ that the mouse will still be captured in window.
+ @param rect
+ If non-@NULL, specifies the rectangle (in screen coordinates) that
+ bounds the dragging operation. Specifying this can make the
+ operation more efficient by cutting down on the area under
+ consideration, and it can also make a visual difference since the
+ drag is clipped to this area.