1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: anitest sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/animate/animate.h"
14 // Define a new application
15 class MyApp
: public wxApp
21 class MyCanvas
: public wxScrolledWindow
24 MyCanvas(wxWindow
*parent
, const wxPoint
& pos
, const wxSize
& size
);
25 void OnPaint(wxPaintEvent
& event
);
33 class MyFrame
: public wxFrame
37 MyFrame(wxWindow
*parent
, const wxWindowID id
, const wxString
& title
,
38 const wxPoint
& pos
, const wxSize
& size
, const long style
);
41 void OnAbout(wxCommandEvent
& event
);
42 void OnQuit(wxCommandEvent
& event
);
44 void OnOpen(wxCommandEvent
& event
);
46 MyCanvas
* GetCanvas() const { return m_canvas
; }
47 wxGIFAnimationCtrl
* GetAnimationCtrl() const { return m_animationCtrl
; }
50 wxAnimationPlayer
& GetPlayer() { return m_player
; }
51 wxAnimationBase
& GetAnimation() { return m_animation
; }
58 wxGIFAnimationCtrl
* m_animationCtrl
;
60 wxAnimationPlayer m_player
;
61 wxGIFAnimation m_animation
;