1 #############################################################################
2 ## Name: XS/EvtHandler.xs
3 ## Purpose: XS for Wx::EvtHandler
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: EvtHandler.xs 2315 2008-01-18 21:47:17Z mbarbon $
8 ## Copyright: (c) 2000-2003, 2005, 2008 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 MODULE=Wx PACKAGE=Wx::EvtHandler
18 RETVAL = new wxEvtHandler();
19 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
24 wxEvtHandler::AddPendingEvent( event )
27 THIS->AddPendingEvent( *event );
30 wxEvtHandler::Connect( id, lastid, type, method )
38 THIS->Connect( id, lastid, type,
39 wxPliCastEvtHandler( &wxPliEventCallback::Handler ),
40 new wxPliEventCallback( method, ST(0) ) );
44 THIS->Disconnect( id, lastid, type,
45 wxPliCastEvtHandler( &wxPliEventCallback::Handler ),
50 wxEvtHandler::Destroy()
55 wxEvtHandler::Disconnect( id, lastid, type )
60 RETVAL = THIS->Disconnect( id, lastid, type,
61 wxPliCastEvtHandler( &wxPliEventCallback::Handler ) );
66 wxEvtHandler::GetEvtHandlerEnabled()
69 wxEvtHandler::GetNextHandler()
72 wxEvtHandler::GetPreviousHandler()
75 wxEvtHandler::ProcessEvent( event )
79 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
82 wxEvtHandler::SafelyProcessEvent( event );
89 wxEvtHandler::SetEvtHandlerEnabled( enabled )
93 wxEvtHandler::SetNextHandler( handler )
97 wxEvtHandler::SetPreviousHandler( handler )