Object/Trait

eu.joaocosta.minart.pure

CanvasIO

Related Docs: trait CanvasIO | package pure

Permalink

object CanvasIO

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. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def accessCanvas[A](f: (Canvas) ⇒ A): CanvasIO[A]

    Permalink

    Store an unsafe canvas operation in a CanvasIO.

  5. final def asInstanceOf[T0]: T0

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

    Permalink

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def foreach[A](it: Iterable[A])(f: (A) ⇒ CanvasIO[Any]): CanvasIO[Unit]

    Permalink

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

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

    Permalink

    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]

    Permalink

    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[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. val getKeyboardInput: CanvasIO[KeyboardInput]

    Permalink

    Gets the current keyboard input.

  16. val getPointerInput: CanvasIO[PointerInput]

    Permalink

    Gets the current pointer input.

  17. val getSettings: CanvasIO[Settings]

    Permalink

    Fetches the canvas settings.

  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. val noop: CanvasIO[Unit]

    Permalink

    An operation that does nothing *

  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def pure[A](x: A): CanvasIO[A]

    Permalink

    Lifts a value into a CanvasIO.

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

    Permalink

    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

  26. val redraw: CanvasIO[Unit]

    Permalink

    Flips buffers and redraws the screen.

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

    Permalink

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

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

    Permalink

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

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def traverse[A, B](it: Iterable[A])(f: (A) ⇒ CanvasIO[B]): CanvasIO[List[B]]

    Permalink

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

  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped