LcPaintDesc class final

Describes what to paint a shape's fill/stroke with - a solid color or a gradient - independent of the shape's own geometry (mirrors lib/src/model/paint.dart's LayerPaint/Gradient split). Embedded by value inside a shape's fields below (e.g. LcLayerDesc.rect_paint).

Inheritance
Implemented types
Available extensions

Constructors

LcPaintDesc()

Properties

address Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
extend_mode int
LcExtendMode; meaningful for gradient kinds only.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
kind int
LcPaintKind
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
solid_color_argb int
meaningful when kind == LC_PAINT_KIND_SOLID.
getter/setter pair
stop_count int
getter/setter pair
stops Pointer<LcGradientStop>
Gradient stops - option (b): pointer + count, same ownership pattern as LcLayerDesc.image_data/image_data_size below. Owned by the caller for the duration of a single lc_render_scene call only; meaningful for gradient kinds only (NULL/0 when kind == LC_PAINT_KIND_SOLID).
getter/setter pair
stroke_cap int
LcStrokeCap
getter/setter pair
stroke_join int
LcStrokeJoin
getter/setter pair
stroke_miter_limit double
getter/setter pair
values Array<Double>
Gradient geometry, fractional (0..1) relative to the painted shape's own width/height - meaning depends on kind: LINEAR_GRADIENT: x0, y0, x1, y1 (start point, end point) RADIAL_GRADIENT: cx, cy, radius (center point, radius; values3 unused) CONIC_GRADIENT: cx, cy, angle (center point, start angle in radians; values3 unused)
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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