]>
git.saurik.com Git - wxWidgets.git/blob - samples/animate/anitest.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: anitest sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/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
);
32 class MyFrame
: public wxFrame
36 MyFrame(wxWindow
*parent
, const wxWindowID id
, const wxString
& title
,
37 const wxPoint
& pos
, const wxSize
& size
, const long style
);
40 void OnAbout(wxCommandEvent
& event
);
41 void OnQuit(wxCommandEvent
& event
);
43 void OnPlay(wxCommandEvent
& event
);
44 void OnStop(wxCommandEvent
& event
);
46 void OnUpdateUI(wxUpdateUIEvent
& event
);
49 void OnOpen(wxCommandEvent
& event
);
50 #endif // wxUSE_FILEDLG
52 MyCanvas
* GetCanvas() const { return m_canvas
; }
53 wxAnimationCtrl
* GetAnimationCtrl() const { return m_animationCtrl
; }
57 wxAnimationCtrl
* m_animationCtrl
;