TextEntity class
A text overlay in source-image coordinates: position is its centre and width the box its glyphs wrap in, with rotation in radians and scale applied about that centre.
Constructors
Properties
- align ↔ TextAlign
-
Alignment of the lines inside width.
getter/setter pair
- colour ↔ Color
-
The overlay's colour.
getter/setter pair
- fontSize ↔ double
-
Normalized 0–1, mapped to source pixels by displayFontSize.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Identifies the overlay across copies.
final
- position ↔ Offset
-
The centre, in source-image pixels.
getter/setter pair
- rotation ↔ double
-
Rotation about position, in radians.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale ↔ double
-
Scale about position.
getter/setter pair
- style ↔ TextEntityStyle
-
How colour is spent.
getter/setter pair
- text ↔ String
-
The string shown.
getter/setter pair
- width ↔ double
-
Width of the box the glyphs wrap in, in source-image pixels.
getter/setter pair
Methods
-
copyWith(
{String? text, TextEntityStyle? style, TextAlign? align, Color? colour, double? fontSize, Offset? position, double? rotation, double? scale, double? width}) → TextEntity - This overlay, same id, with the given fields replaced.
-
displayFontSize(
Size reference) → double -
fontSize in source pixels, against the source image
reference. -
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