ASPiK SDK
ianimationtarget.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #ifndef __ianimationtarget__
6 #define __ianimationtarget__
7 
8 #include "../vstguifwd.h"
9 
10 namespace VSTGUI {
11 namespace Animation {
12 
13 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
18 {
19 public:
20  virtual ~IAnimationTarget () noexcept = default;
21 
22  virtual void animationStart (CView* view, IdStringPtr name) = 0;
23  virtual void animationTick (CView* view, IdStringPtr name, float pos) = 0;
24  virtual void animationFinished (CView* view, IdStringPtr name, bool wasCanceled) = 0;
25 };
26 
27 }} // namespaces
28 
29 #endif // __ianimationtarget__
virtual void animationFinished(CView *view, IdStringPtr name, bool wasCanceled)=0
animation ended
virtual void animationTick(CView *view, IdStringPtr name, float pos)=0
pos is a normalized value between zero and one
Definition: customcontrols.cpp:8
virtual void animationStart(CView *view, IdStringPtr name)=0
animation starts
Base Class of all view objects.
Definition: cview.h:44
Animation target interface.
Definition: ianimationtarget.h:17