Object

eu.joaocosta.minart.graphics.pure

SurfaceIO

Related Doc: package pure

Permalink

object SurfaceIO extends SurfaceIOOps with IOOps[Surface]

Object containing the operations that act on a Surface.

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

    Permalink

    Returns a operation that requires this resource.

    Returns a operation that requires this resource.

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

    Permalink

    Wrap surface operations in a SurfaceIO.

    Wrap surface operations in a SurfaceIO.

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

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def foreach[A](it: () ⇒ Iterator[A])(f: (A) ⇒ RIO[Surface, Any]): RIO[Surface, 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
  11. def foreach[A](it: Iterable[A])(f: (A) ⇒ RIO[Surface, Any]): RIO[Surface, 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
  12. def fromCallback[A](operation: ((Try[A]) ⇒ Unit) ⇒ Unit): RIO[Surface, 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
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  14. 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
  15. 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
  16. def hashCode(): Int

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

    Permalink

    Returns the surfaace height

    Returns the surfaace height

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

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

    Permalink
    Definition Classes
    AnyRef
  20. val noop: RIO[Surface, Unit]

    Permalink

    An operation that does nothing.

    An operation that does nothing.

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  23. def pure[A](x: A): RIO[Surface, A]

    Permalink

    Lifts a value into a RIO.

    Lifts a value into a RIO.

    Definition Classes
    IOBaseOps
  24. def sequence[A](it: Iterable[RIO[Surface, A]]): RIO[Surface, 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
  25. def sequence_(it: Iterable[RIO[Surface, Any]]): RIO[Surface, 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
  26. def suspend[A](x: ⇒ A): RIO[Surface, A]

    Permalink

    Suspends a computation into a RIO.

    Suspends a computation into a RIO.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def traverse[A, B](it: Iterable[A])(f: (A) ⇒ RIO[Surface, B]): RIO[Surface, 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
  30. 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
  31. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def when(predicate: Boolean)(io: ⇒ RIO[Surface, Unit]): RIO[Surface, 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
  35. val width: SurfaceIO[Int]

    Permalink

    Returns the surfaace width

    Returns the surfaace width

    Definition Classes
    SurfaceIOOps

Deprecated Value Members

  1. 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 IOOps[Surface]

Inherited from IOBaseOps[Surface]

Inherited from SurfaceIOOps

Inherited from AnyRef

Inherited from Any

Ungrouped