GraffitiSuite Docs
Docs
Graffitianimatorcontainer
Loading document parsing libraries...
# GraffitiAnimatorContainer 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 GraffitiAnimatorContainer | (None) | Delegate function definition for when animation has completed. | | AnimationProgress | animControl as GraffitiAnimatorContainer <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 | GraffitiAnimatorContainer | Adds a new keyframe. | | AddKeyframe | waitTime as Integer = 0 | GraffitiAnimatorContainer | Adds a new keyframe. | | AddKeyframe | Name as String <br> waitTime as Integer = 0 | GraffitiAnimatorContainer | Adds a new keyframe. | | AddOperation | animOp as GraffitiAnimatorOperation | GraffitiAnimatorContainer | Adds a new animation operation to the stack. | | Constructor | Target as DesktopContainer | (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 | GraffitiAnimatorContainer | Moves the control to the specified position. | | OnComplete | finishFunction as AnimationComplete | GraffitiAnimatorContainer | Invokes the provided delegate when all animation has completed. | | OnKeyframe | keyframeFunction as AtKeyframe | GraffitiAnimatorContainer | Invokes the provided delegate when the animation encounters a keyframe. | | OnProgress | changeFunction as AnimationProgress | GraffitiAnimatorContainer | Invokes the provided delegate as animation operations progress. | | Play | DestroyWhenComplete as Boolean = True | GraffitiAnimatorContainer | 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 | GraffitiAnimatorContainer | Resizes the RectControl 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 | GraffitiAnimatorContainer | Causes the RectControl to shake violently along the X-axis. | | Stop | (None) | GraffitiAnimatorContainer | Cancels all running animations and immediately applies the requested end values for those operations. | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | State | GraffitiAnimator.States | (None) | The current running state of the animator. | | Target | DesktopContainer | (None) | The UI element to be animated. |