1 #############################################################################
2 ## Name: ext/dnd/XS/Clipboard.xs
3 ## Purpose: XS for Wx::Clipboard
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: Clipboard.xs 2274 2007-11-10 22:37:30Z mbarbon $
8 ## Copyright: (c) 2001-2002, 2004, 2006-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 #############################################################################
13 #include <wx/clipbrd.h>
15 MODULE=Wx PACKAGE=Wx::Clipboard
18 wxClipboard::AddData( data )
21 wxPli_object_set_deleteable( aTHX_ ST(1), false );
22 SvREFCNT_inc( SvRV( ST(1) ) ); // at this point the scalar must not go away
23 RETVAL = THIS->AddData( data );
37 wxClipboard::GetData( data )
40 RETVAL = THIS->GetData( *data );
45 wxClipboard::IsOpened()
48 wxClipboard::IsSupported( format )
51 RETVAL = THIS->IsSupported( *format );
59 wxClipboard::SetData( data )
62 wxPli_object_set_deleteable( aTHX_ ST(1), false );
63 SvREFCNT_inc( SvRV( ST(1) ) ); // at this point the scalar must not go away
64 RETVAL = THIS->SetData( data );
69 wxClipboard::UsePrimarySelection( primary = true )
72 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
75 wxClipboard::IsUsingPrimarySelection()