Renderer class abstract

Constructors

Renderer()

Properties

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

Methods

align(Fit fit, Alignment alignment, AABB frame, AABB content, double scaleFactor) → void
beginMask(MaskMode mode, AABB bounds, {double resolution = 1, int handle = 0, BlendMode blendMode = ui.BlendMode.srcOver}) → bool
Opens a layer-mask bracket. Everything drawn until beginMaskSource is the masked content; everything from there until endMask is the mask source. endMask composites content x coverage into this renderer.
beginMaskSource() → void
Ends the content half and begins the mask half. Only legal after a beginMask that returned true.
clipPath(RenderPath path) → void
clipRect(Rect rect) → void
dispose() → void
drawCircle(Offset center, double radius, RenderPaint paint) → void
drawImage(RenderImage image, BlendMode blendMode, double opacity, {ImageSampler sampler = ImageSampler.linearClamp, double additiveness = 0}) → void
drawImageMesh(RenderImage image, VertexRenderBuffer vertices, VertexRenderBuffer uvs, IndexRenderBuffer indices, BlendMode blendMode, double opacity, {ImageSampler sampler = ImageSampler.linearClamp, double additiveness = 0}) → void
drawImageMeshInstanced(RenderImage image, VertexRenderBuffer vertices, VertexRenderBuffer uvs, IndexRenderBuffer indices, ImageMeshInstances instances, {ImageSampler sampler = ImageSampler.linearClamp}) → void
This default implementation just calls drawImageMesh N times. Implementations which call into the Rive renderer should override this.
drawLine(Offset from, Offset to, RenderPaint paint) → void
drawPath(RenderPath path, RenderPaint paint) → void
drawRect(Rect rect, RenderPaint paint) → void
drawText(RenderText text, [RenderPaint? paint]) → void
Draw a RenderText, supply paint to override styles provided during text building.
endMask() → void
Ends the mask half and composites the result.
modulateOpacity(double opacity) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restore() → void
rotate(double angle) → void
save() → void
scale(double sx, [double? sy]) → void
toString() → String
A string representation of this object.
inherited
transform(Mat2D matrix) → void
translate(double x, double y) → void

Operators

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

Static Properties

nativeGpu → dynamic
no setter
nativeQueue → dynamic
no setter

Static Methods

acquireMaskHandle() → int
A key for one mask's retained offscreen canvases, so a mask does not re-allocate its textures every frame. Owned by whatever authors the mask and handed back with releaseMaskHandle when it goes away.
computeAlignment(Fit fit, Alignment alignment, AABB frame, AABB content, double scaleFactor) → Mat2D
make(Canvas canvas) → Renderer
Makes a Renderer for a Flutter Canvas.
makeDashPath() → DashPathEffect
makeTrimPath() → TrimPathEffect
releaseMaskHandle(int handle) → void