1 #############################################################################
2 ## Name: ext/dnd/XS/DropSource.xs
3 ## Purpose: XS for Wx::DropSource
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: DropSource.xs 2285 2007-11-11 21:31:54Z mbarbon $
8 ## Copyright: (c) 2001-2004, 2007 Mattia Barbon
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
14 #include "cpp/dropsource.h"
16 MODULE=Wx PACKAGE=Wx::DropSource
20 #if defined( __WXMSW__ ) || defined( __WXMAC__ )
23 newCursorEmpty( CLASS, win = 0, cursorCopy = (wxCursor*)&wxNullCursor, cursorMove = (wxCursor*)&wxNullCursor, cursorStop = (wxCursor*)&wxNullCursor )
30 RETVAL = new wxPliDropSource( wxPli_get_class( aTHX_ CLASS ), win,
31 *cursorCopy, *cursorMove,
37 newCursorData( CLASS, data, win = 0, cursorCopy = (wxCursor*)&wxNullCursor, cursorMove = (wxCursor*)&wxNullCursor, cursorStop = (wxCursor*)&wxNullCursor )
45 RETVAL = new wxPliDropSource( wxPli_get_class( aTHX_ CLASS ), *data, win,
46 *cursorCopy, *cursorMove,
54 newIconEmpty( CLASS, win = 0, iconCopy = (wxIcon*)&wxNullIcon, iconMove = (wxIcon*)&wxNullIcon, iconStop = (wxIcon*)&wxNullIcon )
61 RETVAL = new wxPliDropSource( wxPli_get_class( aTHX_ CLASS ), win,
62 *iconCopy, *iconMove, *iconStop );
67 newIconData( CLASS, data, win = 0, iconCopy = (wxIcon*)&wxNullIcon, iconMove = (wxIcon*)&wxNullIcon, iconStop = (wxIcon*)&wxNullIcon )
75 RETVAL = new wxPliDropSource( wxPli_get_class( aTHX_ CLASS ), *data, win,
76 *iconCopy, *iconMove, *iconStop );
83 wxDropSource::DoDragDrop( flags = wxDrag_CopyOnly )
87 wxDropSource::SetData( data )
90 THIS->SetData( *data );
93 wxDropSource::GetDataObject()
95 RETVAL = THIS->GetDataObject();
99 wxPli_object_set_deleteable( aTHX_ ST(0), false );
102 wxDropSource::SetCursor( res, cursor )
106 THIS->SetCursor( res, *cursor );