MouseMove

doodle.interact.algebra.MouseMove
trait MouseMove[Canvas]

Algebra for generating a stream of events giving the current mouse location. Whenever the mouse moves a new event is generated. The algebra applies to a Renderer's Canvas data type instead of the F data type, and hence gives the mouse location in the canvas rather than relative to any Picture rendered on the canvas.

Attributes

Source
MouseMove.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def mouseMove(canvas: Canvas): Stream[IO, Point]

Return a stream that has an event every time the mouse moves across the canvas. The coordinate system used is the global coordinate system used by the Canvas, which usually means the origin is centered on the canvas.

Return a stream that has an event every time the mouse moves across the canvas. The coordinate system used is the global coordinate system used by the Canvas, which usually means the origin is centered on the canvas.

Attributes

Source
MouseMove.scala