Packages

trait CanvasIOOps extends MSurfaceIOOps

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

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CanvasIOOps
  2. MSurfaceIOOps
  3. SurfaceIOOps
  4. AnyRef
  5. 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. 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
  6. def accessSurface[A](f: (Surface) => A): SurfaceIO[A]

    Wrap surface operations in a SurfaceIO.

    Wrap surface operations in a SurfaceIO.

    Definition Classes
    SurfaceIOOps
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def blit(that: Surface)(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

    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
  9. def blitWithMask(that: Surface, mask: Color)(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 and masks the pixels with a certain color.

    Draws a surface on top of this surface and masks the pixels with a certain color.

    that

    surface to draw

    mask

    color to usa as a mask

    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. def changeSettings(newSettings: Settings): CanvasIO[Unit]

    Changes the settings applied to the canvas.

    Changes the settings applied to the canvas.

    newSettings

    new canvas settings

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

  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. 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
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. val getKeyboardInput: CanvasIO[KeyboardInput]

    Gets the current keyboard input.

  19. 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
  20. 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
  21. val getPointerInput: CanvasIO[PointerInput]

    Gets the current pointer input.

  22. val getSettings: CanvasIO[Settings]

    Fetches the canvas settings.

  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. 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
  29. val redraw: CanvasIO[Unit]

    Flips buffers and redraws the screen.

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

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

    Annotations
    @deprecated
    Deprecated

    Use CanvasIO.getPixels instead

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

    Annotations
    @deprecated
    Deprecated

    Use CanvasIO.getPixel instead

Inherited from MSurfaceIOOps

Inherited from SurfaceIOOps

Inherited from AnyRef

Inherited from Any

Ungrouped