1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
|
#############################################################################
## Name: ext/dnd/XS/DropTarget.xs
## Purpose: XS for Wx::*DropTarget
## Author: Mattia Barbon
## Modified by:
## Created: 16/08/2001
## RCS-ID: $Id: DropTarget.xs 2285 2007-11-11 21:31:54Z mbarbon $
## Copyright: (c) 2001-2002, 2004, 2006-2007 Mattia Barbon
## Licence: This program is free software; you can redistribute it and/or
## modify it under the same terms as Perl itself
#############################################################################
#include <wx/dnd.h>
#include "cpp/droptarget.h"
MODULE=Wx PACKAGE=Wx::DropTarget
#!sub OnData
SV*
wxDropTarget::new( data = 0 )
wxDataObject* data
CODE:
wxPliDropTarget* retval = new wxPliDropTarget( CLASS, data );
RETVAL = newRV_noinc( SvRV( retval->m_callback.GetSelf() ) );
wxPli_thread_sv_register( aTHX_ "Wx::DropTarget", retval, RETVAL );
OUTPUT:
RETVAL
static void
wxDropTarget::CLONE()
CODE:
wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
## // thread OK
void
DESTROY( THIS )
wxDropTarget* THIS
CODE:
wxPli_thread_sv_unregister( aTHX_ "Wx::DropTarget", THIS, ST(0) );
if( wxPli_object_is_deleteable( aTHX_ ST(0) ) )
delete THIS;
void
wxDropTarget::GetData()
void
wxDropTarget::SetDataObject( data )
wxDataObject* data
CODE:
wxPli_object_set_deleteable( aTHX_ ST(1), false );
SvREFCNT_inc( SvRV( ST(1) ) ); // at this point the scalar must not go away
THIS->SetDataObject( data );
# callbacks
# wxDragResult
# wxDropTarget::OnData( x, y, def )
# wxCoord x
# wxCoord y
# wxDragResult def
# CODE:
# RETVAL = THIS->wxDropTarget::OnData( x, y, def );
# OUTPUT:
# RETVAL
wxDragResult
wxDropTarget::OnEnter( x, y, def )
wxCoord x
wxCoord y
wxDragResult def
CODE:
RETVAL = THIS->wxDropTarget::OnEnter( x, y, def );
OUTPUT:
RETVAL
wxDragResult
wxDropTarget::OnDragOver( x, y, def )
wxCoord x
wxCoord y
wxDragResult def
CODE:
RETVAL = THIS->wxDropTarget::OnDragOver( x, y, def );
OUTPUT:
RETVAL
bool
wxDropTarget::OnDrop( x, y )
wxCoord x
wxCoord y
CODE:
RETVAL = THIS->wxDropTarget::OnDrop( x, y );
OUTPUT:
RETVAL
void
wxDropTarget::OnLeave()
CODE:
THIS->wxDropTarget::OnLeave();
MODULE=Wx PACKAGE=Wx::TextDropTarget
SV*
wxTextDropTarget::new()
CODE:
wxPliTextDropTarget* retval = new wxPliTextDropTarget( CLASS );
RETVAL = retval->m_callback.GetSelf();
SvREFCNT_inc( RETVAL );
OUTPUT:
RETVAL
#!sub OnDropText
MODULE=Wx PACKAGE=Wx::FileDropTarget
SV*
wxFileDropTarget::new()
CODE:
wxPliFileDropTarget* retval = new wxPliFileDropTarget( CLASS );
RETVAL = retval->m_callback.GetSelf();
SvREFCNT_inc( RETVAL );
OUTPUT:
RETVAL
#!sub OnDropFiles
|