LcPathCommand enum
A single step of a PathLayer's geometry (mirrors lib/src/model/path.dart's
PathCommand). Each command consumes a fixed number of doubles from the
parallel LcLayerDesc.path_coords array below:
MOVE_TO/LINE_TO: 1 point (2 doubles: x, y)
QUAD_TO: 2 points (4 doubles: control, end)
CUBIC_TO: 3 points (6 doubles: control1, control2, end)
ARC_TO: 7 doubles: rx, ry, x_axis_rotation (radians),
large_arc (0.0/1.0), sweep (0.0/1.0), end x, end y -
same endpoint parameterization as SVG's A/a path
command. The flags are packed as doubles (rather than
giving ARC_TO a different stride/type in path_coords)
so every command can be walked the same way: read N
doubles, where N depends only on the command byte.
CLOSE: 0 doubles.
Values
- LC_PATH_COMMAND_MOVE_TO → const LcPathCommand
-
const LcPathCommand(0) - LC_PATH_COMMAND_LINE_TO → const LcPathCommand
-
const LcPathCommand(1) - LC_PATH_COMMAND_QUAD_TO → const LcPathCommand
-
const LcPathCommand(2) - LC_PATH_COMMAND_CUBIC_TO → const LcPathCommand
-
const LcPathCommand(3) - LC_PATH_COMMAND_CLOSE → const LcPathCommand
-
const LcPathCommand(4) - LC_PATH_COMMAND_ARC_TO → const LcPathCommand
-
const LcPathCommand(5)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
final
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
Static Methods
-
fromValue(
int value) → LcPathCommand
Constants
-
values
→ const List<
LcPathCommand> - A constant List of the values in this enum, in order of their declaration.