1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: callback helper class for events
4 // Author: Mattia Barbon
7 // RCS-ID: $Id: e_cback.h 2454 2008-08-31 11:12:47Z mbarbon $
8 // Copyright: (c) 2000-2001, 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 #ifndef _WXPERL_E_CBACK_H
14 #define _WXPERL_E_CBACK_H
16 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
17 typedef void (wxObject::* wxPliObjectEventFunction)(wxEvent&);
19 #define wxPliCastEvtHandler( e ) \
20 ((wxObjectEventFunction)(wxPliObjectEventFunction) e)
22 #define wxPliCastEvtHandler( e ) \
23 ((wxObjectEventFunction) e)
26 class wxPliEventCallback : public wxObject
29 wxPliEventCallback( SV* method, SV* self );
30 ~wxPliEventCallback();
32 void Handler( wxEvent& event );
39 #endif // _WXPERL_E_CBACK_H
41 // Local variables: //