Packages

trait MSurfaceIOOps extends SurfaceIOOps

Representation of a mutable surface operation, with the common Monad operations.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MSurfaceIOOps
  2. SurfaceIOOps
  3. AnyRef
  4. 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 accessMSurface[A](f: (MutableSurface) ⇒ A): MSurfaceIO[A]

    Wrap mutable surface operations in a MSurfaceIO.

  5. def accessSurface[A](f: (Surface) ⇒ A): SurfaceIO[A]

    Wrap surface operations in a SurfaceIO.

    Wrap surface operations in a SurfaceIO.

    Definition Classes
    SurfaceIOOps
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. 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

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. 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

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

  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. 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
  16. 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
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. val height: SurfaceIO[Int]

    Returns the surfaace height

    Returns the surfaace height

    Definition Classes
    SurfaceIOOps
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. 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

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. 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
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  30. val width: SurfaceIO[Int]

    Returns the surfaace width

    Returns the surfaace width

    Definition Classes
    SurfaceIOOps

Inherited from SurfaceIOOps

Inherited from AnyRef

Inherited from Any

Ungrouped