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
);
45 void OnOpen(wxCommandEvent
& event
);
46 #endif // wxUSE_FILEDLG
48 MyCanvas
* GetCanvas() const { return m_canvas
; }
49 wxGIFAnimationCtrl
* GetAnimationCtrl() const { return m_animationCtrl
; }
52 wxAnimationPlayer
& GetPlayer() { return m_player
; }
53 wxAnimationBase
& GetAnimation() { return m_animation
; }
60 wxGIFAnimationCtrl
* m_animationCtrl
;
62 wxAnimationPlayer m_player
;
63 wxGIFAnimation m_animation
;