GifAtlas class

Represents a Gif animation in the form of a texture atlas, which contains a list of frames.

Inheritance

Constructors

GifAtlas()

Properties

actualHeight double?
The actual height of the texture after applying the scale.
getter/setter pairinherited
actualWidth double?
The actual width of the texture after applying the scale.
getter/setter pairinherited
color Color?
The color of the texture when the texture is a plain color.
getter/setter pairinherited
disposed bool
Indicates whether this GTexture instance has been disposed or not. Once disposed, the root reference and all other properties are set to null, and further method calls to this instance may result in errors or unexpected behavior.
no setterinherited
frame GRect?
The region of the texture to render.
getter/setter pairinherited
frameHeight double
The height of the frame of the texture.
no setterinherited
frameWidth double
The width of the frame of the texture.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
The height of the texture.
no setterinherited
nativeHeight double
The height of the texture in pixels.
no setterinherited
nativeWidth double
The width of the texture in pixels.
no setterinherited
numFrames int
Total number of frames in the animation.
getter/setter pair
pivotX double?
The horizontal coordinate of the texture's pivot point.
getter/setter pairinherited
pivotY double?
The vertical coordinate of the texture's pivot point.
getter/setter pairinherited
root Image?
The underlying platform Image data for the texture.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double?
The scale of the texture.
getter/setter pairinherited
scale9Grid GRect?
The region of the texture that should be scaled when rendering.
getter/setter pairinherited
scale9GridDest GRect?
The destination region of the texture to be scaled when rendering.
getter/setter pairinherited
sourceRect GRect?
The source rectangle of the texture.
getter/setter pairinherited
textureFrames List<GTexture>
Returns a list of texture frames from the list of frames.
no setter
width double?
The width of the texture.
no setterinherited

Methods

addFrame(GifFrame frame) → void
Adds a frame to the list of frames.
copyFrom(GTexture other) → void
Copies the properties of another GTexture to this one.
inherited
dispose() → void
Disposes this texture's resources, including its image data if it has one.
inherited
getBounds() GRect?
Gets the bounds of the texture.
inherited
nextFrame() bool
Switches to the next frame in the animation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prevFrame() bool
Switches to the previous frame in the animation.
render(Canvas canvas, [Paint? paint]) → void
Renders the texture to the specified canvas using the optional paint.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited