object SurfaceIO extends SurfaceIOOps with IOOps[Surface]
- Alphabetic
- By Inheritance
- SurfaceIO
- IOOps
- IOBaseOps
- SurfaceIOOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def access[A](f: (Surface) => A): RIO[Surface, A]
Returns a operation that requires this resource.
Returns a operation that requires this resource.
- Definition Classes
- IOOps
- def accessSurface[A](f: (Surface) => A): SurfaceIO[A]
Wrap surface operations in a SurfaceIO.
Wrap surface operations in a SurfaceIO.
- Definition Classes
- SurfaceIOOps
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def foreach[A](it: () => Iterator[A])(f: (A) => RIO[Surface, Any]): RIO[Surface, Unit]
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
- def foreach[A](it: Iterable[A])(f: (A) => RIO[Surface, Any]): RIO[Surface, Unit]
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
- def fromCallback[A](operation: ((Try[A]) => Unit) => Unit): RIO[Surface, Poll[A]]
Returns a Poll from a function that receives a callback
Returns a Poll from a function that receives a callback
- Definition Classes
- IOBaseOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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
getPixelsto 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
- 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
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val noop: RIO[Surface, Unit]
An operation that does nothing.
An operation that does nothing.
- Definition Classes
- IOBaseOps
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pure[A](x: A): RIO[Surface, A]
Lifts a value into a RIO.
Lifts a value into a RIO.
- Definition Classes
- IOBaseOps
- def sequence[A](it: Iterable[RIO[Surface, A]]): RIO[Surface, List[A]]
Converts an
Iterable[RIO[R, A]]into aRIO[R, List[A]].Converts an
Iterable[RIO[R, A]]into aRIO[R, List[A]].- Definition Classes
- IOOps
- def sequence_(it: Iterable[RIO[Surface, Any]]): RIO[Surface, Unit]
Converts an
Iterable[RIO[R, A]]into aRIO[R, Unit].Converts an
Iterable[RIO[R, A]]into aRIO[R, Unit].- Definition Classes
- IOOps
- def suspend[A](x: => A): RIO[Surface, A]
Suspends a computation into a RIO.
Suspends a computation into a RIO.
- Definition Classes
- IOBaseOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def traverse[A, B](it: Iterable[A])(f: (A) => RIO[Surface, B]): RIO[Surface, List[B]]
Converts an
Iterable[A]into aRIO[R, List[B]]by applying an operation to each element.Converts an
Iterable[A]into aRIO[R, List[B]]by applying an operation to each element.- Definition Classes
- IOOps
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def when(predicate: Boolean)(io: => RIO[Surface, Unit]): RIO[Surface, Unit]
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