Packages

object CanvasIO

Representation of a canvas operation, with the common Monad operations.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CanvasIO
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def accessCanvas[A](f: (Canvas) => A): CanvasIO[A]

    Store an unsafe canvas operation in a CanvasIO.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clear(resources: Set[Resource] = Canvas.Resource.all): CanvasIO[Unit]

    Clears resources, such as the backbuffer and keyboard inputs.

    Clears resources, such as the backbuffer and keyboard inputs.

    resources

    set of Canvas.Resources to be cleared

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def foreach[A](it: Iterable[A])(f: (A) => CanvasIO[Any]): CanvasIO[Unit]

    Applies an operation to each element of a Iterable[A] and discards the result.

  12. val getBackbuffer: CanvasIO[Vector[Vector[Color]]]

    Returns the backbuffer.

    Returns the backbuffer. This operation can be perfomance intensive, so it might be worthwile to implement this operation on the application code.

  13. def getBackbufferPixel(x: Int, y: Int): CanvasIO[Color]

    Gets the color from the backbuffer.

    Gets the color from the backbuffer. This operation can be perfomance intensive, so it might be worthwile to either use getBackbuffer to fetch multiple pixels at the same time or to implement this operation on the application code.

    x

    pixel x position

    y

    pixel y position

  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. val getKeyboardInput: CanvasIO[KeyboardInput]

    Gets the current keyboard input.

  16. val getPointerInput: CanvasIO[PointerInput]

    Gets the current pointer input.

  17. val getSettings: CanvasIO[Settings]

    Fetches the canvas settings.

  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. val noop: CanvasIO[Unit]

    An operation that does nothing *

  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def pollFuture[A](future: Future[A]): CanvasIO[Option[Try[A]]]

    Polls a future and optionally returns its result.

  25. def pure[A](x: A): CanvasIO[A]

    Lifts a value into a CanvasIO.

  26. def putPixel(x: Int, y: Int, color: Color): CanvasIO[Unit]

    Puts a pixel in the back buffer with a certain color.

    Puts a pixel in the back buffer with a certain color.

    x

    pixel x position

    y

    pixel y position

    color

    Color to apply to the pixel

  27. val redraw: CanvasIO[Unit]

    Flips buffers and redraws the screen.

  28. def sequence[A](it: Iterable[CanvasIO[A]]): CanvasIO[List[A]]

    Converts an Iterable[CanvasIO[A]] into a CanvasIO[List[A]].

  29. def sequence_(it: Iterable[CanvasIO[Any]]): CanvasIO[Unit]

    Converts an Iterable[CanvasIO[A]] into a CanvasIO[Unit].

  30. def suspend[A](x: => A): CanvasIO[A]

    Suspends a computation into a CanvasIO.

  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. def traverse[A, B](it: Iterable[A])(f: (A) => CanvasIO[B]): CanvasIO[List[B]]

    Converts an Iterable[A] into a CanvasIO[List[B]] by applying an operation to each element.

  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped