GraffitiSuite Docs
Docs
Graffitianimatorcontrol
Loading document parsing libraries...
# GraffitiAnimatorControl Class Inherits GraffitiAnimatorObject ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | True | True | ### Android | 32-Bit | 64-Bit | | :---: | :---: | | False | True | ### Console | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ### Desktop | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ### iOS | 32-Bit | 64-Bit | | :---: | :---: | | False | True | ### Web | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Delegates | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | AnimationComplete | animControl as GraffitiAnimatorControl | (None) | Delegate function definition for when animation has completed. | | AnimationProgress | animControl as GraffitiAnimatorControl <br> animOp as GraffitiAnimatorOperation <br> newValue as Double | (None) | Delegate function for reporting animation progress. | | AtKeyframe | currentKeyframe as GraffitiAnimatorKeyframe | (None) | Delegate function for reporting when a keyframe has been encountered. | ## Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | AddKeyframe | newKeyframe as GraffitiAnimatorKeyframe | GraffitiAnimatorControl | Adds a new keyframe. | | AddKeyframe | waitTime as Integer = 0 | GraffitiAnimatorControl | Adds a new keyframe. | | AddKeyframe | Name as String <br> waitTime as Integer = 0 | GraffitiAnimatorControl | Adds a new keyframe. | | AddOperation | animOp as GraffitiAnimatorOperation | GraffitiAnimatorControl | Adds a new operation. | | Constructor | Target as DesktopUIControl | (None) | Creates a new instance of the class. | | Destructor | (None) | (None) | (None) | | Move | newLeft as Double <br> newTop as Double <br> animationLength as Integer <br> easing as GraffitiAnimator.Easings | GraffitiAnimatorControl | Performs a move operation, shifting Left and Top. | | NextKeyframe | (None) | (None) | Skip all operations until the next keyframe is reached. | | OnComplete | finishFunction as AnimationComplete | GraffitiAnimatorControl | Assigns a delegate to be called when the animation queue is empty. | | OnKeyframe | keyframeFunction as AtKeyframe | GraffitiAnimatorControl | Assigns a delegate to be called when a keyframe is encountered. | | OnProgress | changeFunction as AnimationProgress | GraffitiAnimatorControl | Assigns a delegate to report progress of the animation operations. | | Play | DestroyWhenComplete as Boolean = True | GraffitiAnimatorControl | Begin animation. | | Resize | newWidth as Double <br> newHeight as Double <br> animationLength as Integer <br> easing as GraffitiAnimator.Easings | GraffitiAnimatorControl | Resize the target's width and height. | | Shake | numberOfShakes as Integer = 5 <br> deltaX as Integer = 5 <br> deltaY as Integer = 0 <br> animationLength as Integer = 800 <br> easing as GraffitiAnimator.Easings = GraffitiAnimator.Easings.CubicOut | GraffitiAnimatorControl | Shake the target by rapidly modified its Left position. | | Stop | (None) | GraffitiAnimatorControl | Stop all animation. | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | State | GraffitiAnimator.States | (None) | The current running state of the animator. | | Target | DesktopUIControl | (None) | The UI element to be animated. |