Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / debian / libwx-perl / usr / lib / perl5 / Wx / DropSource.pm
1 #############################################################################
2 ## Name:        ext/dnd/lib/Wx/DropSource.pm
3 ## Purpose:     Wx::DropSource
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     17/08/2001
7 ## RCS-ID:      $Id: DropSource.pm 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright:   (c) 2001-2003, 2005 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 #############################################################################
12
13 package Wx::DropSource;
14
15 sub new {
16   my $this = shift;
17
18   if( !Wx::wxMSW() && !Wx::wxMAC() ) {
19     Wx::_match( @_, $Wx::_wwin_wico_wico_wico, 0, 1 ) && return $this->newIconEmpty( @_ );
20     Wx::_match( @_, $Wx::_wdat_wwin_wico_wico_wico, 1, 1 ) && return $this->newIconData( @_ );
21   } else {
22     Wx::_match( @_, $Wx::_wwin_wcur_wcur_wcur, 0, 1 ) && return $this->newCursorEmpty( @_ );
23     Wx::_match( @_, $Wx::_wdat_wwin_wcur_wcur_wcur, 1, 1 ) && return $this->newCursorData( @_ );
24   }
25
26   Wx::_croak Wx::_ovl_error;
27 }
28
29 1;
30
31 # Local variables: #
32 # mode: cperl #
33 # End: #