Packages

object CanvasIO extends CanvasIOOps with IOOps[Canvas]

Object containing the operations that act on a Canvas.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CanvasIO
  2. IOOps
  3. IOBaseOps
  4. CanvasIOOps
  5. MSurfaceIOOps
  6. SurfaceIOOps
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 access[A](f: (Canvas) ⇒ A): RIO[Canvas, A]

    Returns a operation that requires this resource.

    Returns a operation that requires this resource.

    Definition Classes
    IOOps
  5. def accessCanvas[A](f: (Canvas) ⇒ A): CanvasIO[A]

    Store an unsafe canvas operation in a CanvasIO.

    Store an unsafe canvas operation in a CanvasIO.

    Definition Classes
    CanvasIOOps
  6. def accessMSurface[A](f: (MutableSurface) ⇒ A): MSurfaceIO[A]

    Wrap mutable surface operations in a MSurfaceIO.

    Wrap mutable surface operations in a MSurfaceIO.

    Definition Classes
    MSurfaceIOOps
  7. def accessSurface[A](f: (Surface) ⇒ A): SurfaceIO[A]

    Wrap surface operations in a SurfaceIO.

    Wrap surface operations in a SurfaceIO.

    Definition Classes
    SurfaceIOOps
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def blit(that: Surface, mask: Option[Color] = None)(x: Int, y: Int, cx: Int = 0, cy: Int = 0, cw: Int = that.width, ch: Int = that.height): MSurfaceIO[Unit]

    Draws a surface on top of this surface.

    Draws a surface on top of this surface.

    that

    surface to draw

    mask

    color to use as a mask (pixels with this color won't be merged)

    x

    leftmost pixel on the destination surface

    y

    topmost pixel on the destination surface

    cx

    leftmost pixel on the source surface

    cy

    topmost pixel on the source surface

    cw

    clip width of the source surface

    ch

    clip height of the source surface

    Definition Classes
    MSurfaceIOOps
  10. val canvasSettings: CanvasIO[Settings]

    Fetches the canvas settings.

    Fetches the canvas settings.

    Definition Classes
    CanvasIOOps
  11. def changeSettings(newSettings: Settings): CanvasIO[Unit]

    Changes the settings applied to the canvas.

    Changes the settings applied to the canvas.

    newSettings

    new canvas settings

    Definition Classes
    CanvasIOOps
  12. def clear(buffers: Set[Buffer] = Canvas.Buffer.all): CanvasIO[Unit]

    Clears buffers, such as the backbuffer and keyboard inputs.

    Clears buffers, such as the backbuffer and keyboard inputs.

    buffers

    set of Canvas.Buffers to be cleared

    Definition Classes
    CanvasIOOps
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def fill(color: Color): MSurfaceIO[Unit]

    Fill the surface with a certain color

    Fill the surface with a certain color

    color

    Color to fill the surface with

    Definition Classes
    MSurfaceIOOps
  17. def fillRegion(x: Int, y: Int, w: Int, h: Int, color: Color): MSurfaceIO[Unit]

    Fill part of the surface with a certain color

    Fill part of the surface with a certain color

    x

    leftmost pixel on the destination surface

    y

    topmost pixel on the destination surface

    w

    region width

    h

    region height

    color

    Color to fill the surface with

    Definition Classes
    MSurfaceIOOps
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def foreach[A](it: () ⇒ Iterator[A])(f: (A) ⇒ RIO[Canvas, Any]): RIO[Canvas, Unit]

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

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

    Definition Classes
    IOOps
  20. def foreach[A](it: Iterable[A])(f: (A) ⇒ RIO[Canvas, Any]): RIO[Canvas, Unit]

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

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

    Definition Classes
    IOOps
  21. def fromCallback[A](operation: ((Try[A]) ⇒ Unit) ⇒ Unit): RIO[Canvas, Poll[A]]

    Returns a Poll from a function that receives a callback

    Returns a Poll from a function that receives a callback

    Definition Classes
    IOBaseOps
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. val getKeyboardInput: CanvasIO[KeyboardInput]

    Gets the current keyboard input.

    Gets the current keyboard input.

    Definition Classes
    CanvasIOOps
  24. def getPixel(x: Int, y: Int): SurfaceIO[Option[Color]]

    Gets the color from the this surface.

    Gets the color from the this surface. This operation can be perfomance intensive, so it might be worthwile to either use getPixels 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

    Definition Classes
    SurfaceIOOps
  25. val getPixels: SurfaceIO[Vector[Array[Color]]]

    Returns the pixels from this surface.

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

    returns

    color matrix

    Definition Classes
    SurfaceIOOps
  26. val getPointerInput: CanvasIO[PointerInput]

    Gets the current pointer input.

    Gets the current pointer input.

    Definition Classes
    CanvasIOOps
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. val height: SurfaceIO[Int]

    Returns the surfaace height

    Returns the surfaace height

    Definition Classes
    SurfaceIOOps
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. val noop: RIO[Canvas, Unit]

    An operation that does nothing.

    An operation that does nothing.

    Definition Classes
    IOBaseOps
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. def pure[A](x: A): RIO[Canvas, A]

    Lifts a value into a RIO.

    Lifts a value into a RIO.

    Definition Classes
    IOBaseOps
  35. def putPixel(x: Int, y: Int, color: Color): MSurfaceIO[Unit]

    Put a pixel in the surface with a certain color.

    Put a pixel in the surface with a certain color.

    x

    pixel x position

    y

    pixel y position

    color

    Color to apply to the pixel

    Definition Classes
    MSurfaceIOOps
  36. val redraw: CanvasIO[Unit]

    Flips buffers and redraws the screen.

    Flips buffers and redraws the screen.

    Definition Classes
    CanvasIOOps
  37. def sequence[A](it: Iterable[RIO[Canvas, A]]): RIO[Canvas, List[A]]

    Converts an Iterable[RIO[R, A]] into a RIO[R, List[A]].

    Converts an Iterable[RIO[R, A]] into a RIO[R, List[A]].

    Definition Classes
    IOOps
  38. def sequence_(it: Iterable[RIO[Canvas, Any]]): RIO[Canvas, Unit]

    Converts an Iterable[RIO[R, A]] into a RIO[R, Unit].

    Converts an Iterable[RIO[R, A]] into a RIO[R, Unit].

    Definition Classes
    IOOps
  39. def suspend[A](x: ⇒ A): RIO[Canvas, A]

    Suspends a computation into a RIO.

    Suspends a computation into a RIO.

    Definition Classes
    IOBaseOps
  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. def traverse[A, B](it: Iterable[A])(f: (A) ⇒ RIO[Canvas, B]): RIO[Canvas, List[B]]

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

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

    Definition Classes
    IOOps
  43. val view: SurfaceIO[SurfaceView]

    Returns a view over this surface.

    Returns a view over this surface.

    Operations performed on a view are executed in a defered fashion.

    Definition Classes
    SurfaceIOOps
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  47. def when(predicate: Boolean)(io: ⇒ RIO[Canvas, Unit]): RIO[Canvas, Unit]

    Runs a computation only if the predicate is true, otherwise does nothing

    Runs a computation only if the predicate is true, otherwise does nothing

    Definition Classes
    IOOps
  48. val width: SurfaceIO[Int]

    Returns the surfaace width

    Returns the surfaace width

    Definition Classes
    SurfaceIOOps

Inherited from IOOps[Canvas]

Inherited from IOBaseOps[Canvas]

Inherited from CanvasIOOps

Inherited from MSurfaceIOOps

Inherited from SurfaceIOOps

Inherited from AnyRef

Inherited from Any

Ungrouped