initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
52
libs/wxWidgets-3.3.1/samples/animate/anitest.h
Normal file
52
libs/wxWidgets-3.3.1/samples/animate/anitest.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: anitest.cpp
|
||||
// Purpose: anitest sample
|
||||
// Author: Julian Smart
|
||||
// Created: 02/07/2001
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/animate.h"
|
||||
|
||||
// Define a new application
|
||||
class MyApp : public wxApp
|
||||
{
|
||||
public:
|
||||
bool OnInit() override;
|
||||
};
|
||||
|
||||
// Define a new frame
|
||||
class MyFrame : public wxFrame
|
||||
{
|
||||
public:
|
||||
|
||||
MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title);
|
||||
|
||||
void OnAbout(wxCommandEvent& event);
|
||||
void OnQuit(wxCommandEvent& event);
|
||||
|
||||
void OnPlay(wxCommandEvent& event);
|
||||
void OnSetNullAnimation(wxCommandEvent& event);
|
||||
void OnSetInactiveBitmap(wxCommandEvent& event);
|
||||
void OnSetNoAutoResize(wxCommandEvent& event);
|
||||
void OnSetBgColor(wxCommandEvent& event);
|
||||
void OnStop(wxCommandEvent& event);
|
||||
|
||||
#ifdef wxHAS_NATIVE_ANIMATIONCTRL
|
||||
void OnUseGeneric(wxCommandEvent& event);
|
||||
#endif // wxHAS_NATIVE_ANIMATIONCTRL
|
||||
|
||||
void OnUpdateUI(wxUpdateUIEvent& event);
|
||||
|
||||
#if wxUSE_FILEDLG
|
||||
void OnOpen(wxCommandEvent& event);
|
||||
#endif // wxUSE_FILEDLG
|
||||
|
||||
private:
|
||||
void RecreateAnimation(long style);
|
||||
|
||||
wxAnimationCtrlBase* m_animationCtrl;
|
||||
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
Reference in New Issue
Block a user