Canvas

doodle.java2d.effect.Canvas
See theCanvas companion object
final class Canvas

A Canvas is an area on the screen to which Pictures can be drawn.

Attributes

Companion
object
Source
Canvas.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def close(): IO[Boolean]

Attributes

Source
Canvas.scala

Attributes

Source
Canvas.scala
def render[A](picture: Picture[A]): IO[A]

Draw the given Picture to this Canvas.

Draw the given Picture to this Canvas.

Attributes

Source
Canvas.scala

Concrete fields

val closed: IO[Unit]

Attributes

Source
Canvas.scala

Attributes

Source
Canvas.scala

Attributes

Source
Canvas.scala
val redraw: Stream[IO, Int]

Attributes

Source
Canvas.scala
val stream: Stream[IO, Nothing]

The stream that runs everything the Canvas' internals need to work. You must make sure this is executed if you create a Canvas by hand.

The stream that runs everything the Canvas' internals need to work. You must make sure this is executed if you create a Canvas by hand.

Attributes

Source
Canvas.scala