Object

eu.joaocosta.minart.graphics.pure

MSurfaceIO

Related Doc: package pure

Permalink

object MSurfaceIO extends MSurfaceIOOps with IOOps[MutableSurface]

Linear Supertypes
IOOps[MutableSurface], IOBaseOps[MutableSurface], MSurfaceIOOps, SurfaceIOOps, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MSurfaceIO
  2. IOOps
  3. IOBaseOps
  4. MSurfaceIOOps
  5. SurfaceIOOps
  6. AnyRef
  7. 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 access[A](f: (MutableSurface) ⇒ A): RIO[MutableSurface, A]

    Permalink

    Returns a operation that requires this resource.

    Returns a operation that requires this resource.

    Definition Classes
    IOOps
  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)(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

    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]

    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
  10. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. 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
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def foreach[A](it: () ⇒ Iterator[A])(f: (A) ⇒ RIO[MutableSurface, Any]): RIO[MutableSurface, Unit]

    Permalink

    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
  16. def foreach[A](it: Iterable[A])(f: (A) ⇒ RIO[MutableSurface, Any]): RIO[MutableSurface, Unit]

    Permalink

    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
  17. def fromCallback[A](operation: ((Try[A]) ⇒ Unit) ⇒ Unit): RIO[MutableSurface, Poll[A]]

    Permalink

    Returns a Poll from a function that receives a callback

    Returns a Poll from a function that receives a callback

    Definition Classes
    IOBaseOps
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. 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
  20. 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
  21. def hashCode(): Int

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

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

    Permalink
    Definition Classes
    AnyRef
  24. val noop: RIO[MutableSurface, Unit]

    Permalink

    An operation that does nothing.

    An operation that does nothing.

    Definition Classes
    IOBaseOps
  25. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  27. def pure[A](x: A): RIO[MutableSurface, A]

    Permalink

    Lifts a value into a RIO.

    Lifts a value into a RIO.

    Definition Classes
    IOBaseOps
  28. 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
  29. def sequence[A](it: Iterable[RIO[MutableSurface, A]]): RIO[MutableSurface, List[A]]

    Permalink

    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
  30. def sequence_(it: Iterable[RIO[MutableSurface, Any]]): RIO[MutableSurface, Unit]

    Permalink

    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
  31. def suspend[A](x: ⇒ A): RIO[MutableSurface, A]

    Permalink

    Suspends a computation into a RIO.

    Suspends a computation into a RIO.

    Definition Classes
    IOBaseOps
  32. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink

    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
  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def when(predicate: Boolean)(io: ⇒ RIO[MutableSurface, Unit]): RIO[MutableSurface, Unit]

    Permalink

    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

Inherited from IOOps[MutableSurface]

Inherited from IOBaseOps[MutableSurface]

Inherited from MSurfaceIOOps

Inherited from SurfaceIOOps

Inherited from AnyRef

Inherited from Any

Ungrouped