Trait

eu.joaocosta.minart.graphics.pure

CanvasIOOps

Related Doc: package pure

Permalink

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. 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. def accessMSurface[A](f: (MutableSurface) ⇒ A): MSurfaceIO[A]

    Permalink

    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]

    Permalink

    Wrap surface operations in a SurfaceIO.

    Wrap surface operations in a SurfaceIO.

    Definition Classes
    SurfaceIOOps
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. 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]

    Permalink

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

    Permalink

    Changes the settings applied to the canvas.

    Changes the settings applied to the canvas.

    newSettings

    new canvas settings

  10. def clear(buffers: Set[Buffer] = Canvas.Buffer.all): CanvasIO[Unit]

    Permalink

    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

  11. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def fill(color: Color): MSurfaceIO[Unit]

    Permalink

    Fill the surface with a certain color

    Fill the surface with a certain color

    color

    Color to fill the surface with

    Definition Classes
    MSurfaceIOOps
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  16. val getKeyboardInput: CanvasIO[KeyboardInput]

    Permalink

    Gets the current keyboard input.

  17. def getPixel(x: Int, y: Int): SurfaceIO[Option[Color]]

    Permalink

    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
  18. val getPixels: SurfaceIO[Vector[Array[Color]]]

    Permalink

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

    Permalink

    Gets the current pointer input.

  20. val getSettings: CanvasIO[Settings]

    Permalink

    Fetches the canvas settings.

  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  22. val height: SurfaceIO[Int]

    Permalink

    Returns the surfaace height

    Returns the surfaace height

    Definition Classes
    SurfaceIOOps
  23. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  27. def putPixel(x: Int, y: Int, color: Color): MSurfaceIO[Unit]

    Permalink

    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
  28. val redraw: CanvasIO[Unit]

    Permalink

    Flips buffers and redraws the screen.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. val view: SurfaceIO[SurfaceView]

    Permalink

    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
  32. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. val width: SurfaceIO[Int]

    Permalink

    Returns the surfaace width

    Returns the surfaace width

    Definition Classes
    SurfaceIOOps

Deprecated Value Members

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

    Permalink

    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
    Annotations
    @deprecated
    Deprecated

    Use blit instead

  2. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from MSurfaceIOOps

Inherited from SurfaceIOOps

Inherited from AnyRef

Inherited from Any

Ungrouped