1 #############################################################################
2 ## Name: ext/dnd/XS/DropFiles.xs
3 ## Purpose: XS for Wx::DropFilesEvent
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: DropFiles.xs 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright: (c) 2001, 2004 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 #############################################################################
15 MODULE=wxEvt PACKAGE=Wx::DropFilesEvent
18 wxDropFilesEvent::GetFiles()
20 wxString* files = THIS->GetFiles();
21 int i, max = THIS->GetNumberOfFiles();
23 for( i = 0; i < max; ++i )
26 SV* tmp = sv_2mortal( newSVpv( CHAR_P files[i].mb_str(wxConvUTF8), 0 ) );
30 PUSHs( sv_2mortal( newSVpv( CHAR_P files[i].c_str(), 0 ) ) );
35 wxDropFilesEvent::GetNumberOfFiles()
38 wxDropFilesEvent::GetPosition()
40 RETVAL = new wxPoint( THIS->GetPosition() );