CursorLook class

What the cursor is drawn in: the two colours every mark is made of, how big it is, and whether a press ripples.

A value, so a stage can hand one over and a reel can change it per node — the pointer is a scene node, and this is what its args carry. The default is the film's own look: ink and paper, because a cursor lands wherever the flow takes it — over a white card, over a brown button, over a photograph — and one colour cannot survive all three, so every shape is a dark mark with a light one under or around it. A reel that knows what it is drawn over can pick its own pair.

Constructors

CursorLook({Color ink = const Color(0xCC000000), Color paper = const Color(0xF2FFFFFF), double size = 1.0, bool ripple = true})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
ink → Color
The dark mark: the fill of the fingertip, the outline and shadow of the arrow, the outer ring of the ripple.
final
paper → Color
The light mark: the ring around the fingertip, the body of the arrow, the inner ring of the ripple.
final
ripple → bool
Whether a press sends a ring out. Off for a look that draws its own press feedback, or for a cursor over an app whose own ink ripple is the point.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → double
A multiplier on every dimension. 1 is a 20-point fingertip and a 20-point arrow; a reel that zooms 2× and wants the finger to stay a finger says 0.5, and a landing page that wants it seen says 1.4.
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

Constants

standard → const CursorLook
The film's own look.