wxDragImage fixes and cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-05-18 23:46:30 +00:00
parent 30aaddfe89
commit 10e07c70d8
7 changed files with 112 additions and 90 deletions

View File

@@ -469,7 +469,6 @@ bool wxShowTip(wxWindow *parent, wxTipProvider *tipProvider, bool showAtStartup
%{
#include <wx/generic/dragimgg.h>
static wxPoint wxPyNullPoint;
%}
%name (wxDragImage) class wxGenericDragImage : public wxObject
@@ -477,10 +476,10 @@ static wxPoint wxPyNullPoint;
public:
wxGenericDragImage(const wxBitmap& image,
const wxCursor& cursor = wxNullCursor,
const wxPoint& hotspot = wxPyNullPoint);
const wxCursor& cursor = wxNullCursor);
~wxGenericDragImage();
void SetBackingBitmap(wxBitmap* bitmap);
bool BeginDrag(const wxPoint& hotspot, wxWindow* window,
bool fullScreen = FALSE, wxRect* rect = NULL);
@@ -500,12 +499,10 @@ public:
// Alternate Constructors
%new wxGenericDragImage* wxDragIcon(const wxIcon& image,
const wxCursor& cursor = wxNullCursor,
const wxPoint& hotspot = wxPyNullPoint);
const wxCursor& cursor = wxNullCursor);
%new wxGenericDragImage* wxDragString(const wxString& str,
const wxCursor& cursor = wxNullCursor,
const wxPoint& hotspot = wxPyNullPoint);
const wxCursor& cursor = wxNullCursor);
%new wxGenericDragImage* wxDragTreeItem(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
@@ -515,15 +512,13 @@ public:
%{
wxGenericDragImage* wxDragIcon(const wxIcon& image,
const wxCursor& cursor,
const wxPoint& hotspot) {
return new wxGenericDragImage(image, cursor, hotspot);
const wxCursor& cursor) {
return new wxGenericDragImage(image, cursor);
}
wxGenericDragImage* wxDragString(const wxString& str,
const wxCursor& cursor,
const wxPoint& hotspot) {
return new wxGenericDragImage(str, cursor, hotspot);
const wxCursor& cursor) {
return new wxGenericDragImage(str, cursor);
}
wxGenericDragImage* wxDragTreeItem(const wxTreeCtrl& treeCtrl, wxTreeItemId& id) {