RenderUtilMixin mixin

A mixin that provides utility methods for rendering.

Mixin Applications

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createImage([bool adjustOffset = true, double resolution = 1]) Future<Image>
Creates an Image object from the rendered image of the object asynchronously. You can optionally provide a resolution value, which defaults to 1.
createImageSync([bool adjustOffset = true, double resolution = 1]) Image
Creates an Image object from the rendered image of the object synchronously. You can optionally provide a resolution value, which defaults to 1.
createImageTexture([bool adjustOffset = true, double resolution = 1]) Future<GTexture>
Creates a GTexture object from the rendered image of the object asynchronously. You can optionally provide a resolution value, which defaults to 1.
createImageTextureSync([bool adjustOffset = true, double resolution = 1]) GTexture
Creates a GTexture object from the rendered image of the object synchronously. You can optionally provide a resolution value, which defaults to 1.
createPicture([void prePaintCallback(Canvas)?]) Picture
Creates a Picture object and returns it. You can optionally provide a prePaintCallback function that is called before the picture is painted.
getBounds() GRect
Returns the bounds of the object as a GRect.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas) → void
Renders the object on the provided Canvas.
toString() String
A string representation of this object.
inherited

Operators

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