1 #############################################################################
2 ## Name: XS/Animation.xsp
3 ## Purpose: XS+++ for Wx::Animation
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: Animation.xsp 2556 2009-05-11 10:18:47Z mbarbon $
8 ## Copyright: (c) 2007, 2009 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 #############################################################################
15 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
17 #include <wx/animate.h>
19 %name{Wx::Animation} class wxAnimation
22 ## wxAnimation( const wxString& name,
23 ## wxAnimationType type = wxANIMATION_TYPE_ANY );
29 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
33 %code{% wxPli_thread_sv_unregister( aTHX_ "Wx::Bitmap", THIS, ST(0) );
38 int GetDelay( unsigned int frame );
39 unsigned int GetFrameCount();
40 wxImage& GetFrame( unsigned int frame );
41 wxSize GetSize() const;
43 bool LoadFile( const wxString& name,
44 wxAnimationType type = wxANIMATION_TYPE_ANY );
45 bool Load( wxPliInputStream stream,
46 wxAnimationType type = wxANIMATION_TYPE_ANY );