GraffitiSuite Docs
Docs
Graffitianimatorwindow
Loading document parsing libraries...
# GraffitiAnimatorWindow 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 | animWindow as GraffitiAnimatorWindow | (None) | Delegate function definition for when animation has completed. | | AnimationProgress | animWindow as GraffitiAnimatorWindow <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 | GraffitiAnimatorWindow | Adds a new keyframe. | | AddKeyframe | waitTime as Integer = 0 | GraffitiAnimatorWindow | Adds a new keyframe. | | AddKeyframe | Name as String <br> waitTime as Integer = 0 | GraffitiAnimatorWindow | Adds a new keyframe. | | AddOperation | animOp as GraffitiAnimatorOperation | GraffitiAnimatorWindow | Adds a new animation operation to the stack. | | Constructor | Target as DesktopWindow | (None) | Instantiates 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 | GraffitiAnimatorWindow | Moves the control to the specified position. | | NextKeyframe | (None) | (None) | Skips all operations until the next keyframe is encountered. | | OnComplete | finishFunction as AnimationComplete | GraffitiAnimatorWindow | Invokes the provided delegate when all animation has completed. | | OnKeyframe | keyframeFunction as AtKeyframe | GraffitiAnimatorWindow | Invokes the provided delegate when the animation encounters a keyframe. | | OnProgress | changeFunction as AnimationProgress | GraffitiAnimatorWindow | Invokes the provided delegate as animation operations progress. | | Play | DestroyWhenComplete as Boolean = True | GraffitiAnimatorWindow | Plays the provided animation stack, optionally destructs itself when complete. | | Resize | newWidth as Double <br> newHeight as Double <br> animationLength as Integer <br> easing as GraffitiAnimator.Easings | GraffitiAnimatorWindow | Resizes the target using the specified values. | | 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 | GraffitiAnimatorWindow | Causes the target to shake violently along the X-axis. | | Stop | (None) | GraffitiAnimatorWindow | Cancels all running animations and immediately applies the requested end values for those operations. | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | id | String | (None) | (None) | | State | GraffitiAnimator.States | (None) | The current running state of the animator. | | Target | DesktopWindow | (None) | The window to be animated. |