CanvasAlgebra

doodle.java2d.algebra.CanvasAlgebra$
case object CanvasAlgebra extends MouseClick[Canvas] with MouseMove[Canvas] with Redraw[Canvas]

Attributes

Source:
CanvasAlgebra.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
trait Redraw[Canvas]
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
Source:
Mirror.scala
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
Source:
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source:
Mirror.scala
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
Source:
Mirror.scala
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton
Source:
Mirror.scala

Value members

Concrete methods

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

Return a stream that has an event every time the mouse is clicked on 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 is clicked on 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.

On systems, such as the browser, that will emulate touch events as mouse events this will also return such touch events.

Attributes

Source:
CanvasAlgebra.scala
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:
CanvasAlgebra.scala
def redraw(canvas: Canvas): Stream[IO, Int]

Return a stream that has an event every time the canvas is ready to redraw. The value is the approximate time in millisecond since a frame was last rendered.

Return a stream that has an event every time the canvas is ready to redraw. The value is the approximate time in millisecond since a frame was last rendered.

Attributes

Source:
CanvasAlgebra.scala

Inherited methods

def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
Source:
Mirror.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product