Returns a operation that requires this resource.
Returns a operation that requires this resource.
Store an unsafe canvas operation in a CanvasIO.
Store an unsafe canvas operation in a CanvasIO.
Wrap mutable surface operations in a MSurfaceIO.
Wrap mutable surface operations in a MSurfaceIO.
Wrap surface operations in a SurfaceIO.
Wrap surface operations in a SurfaceIO.
Draws a surface on top of this surface.
Draws a surface on top of this surface.
surface to draw
color to use as a mask (pixels with this color won't be merged)
leftmost pixel on the destination surface
topmost pixel on the destination surface
leftmost pixel on the source surface
topmost pixel on the source surface
clip width of the source surface
clip height of the source surface
Changes the settings applied to the canvas.
Changes the settings applied to the canvas.
new canvas settings
Clears buffers, such as the backbuffer and keyboard inputs.
Clears buffers, such as the backbuffer and keyboard inputs.
set of Canvas.Buffers to be cleared
Fill the surface with a certain color
Fill the surface with a certain color
Color
to fill the surface with
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.
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.
Returns a Poll from a function that receives a callback
Gets the current keyboard input.
Gets the current keyboard input.
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.
pixel x position
pixel y position
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.
color matrix
Gets the current pointer input.
Gets the current pointer input.
Fetches the canvas settings.
Fetches the canvas settings.
Returns the surfaace height
Returns the surfaace height
An operation that does nothing.
An operation that does nothing.
Lifts a value into a RIO.
Put a pixel in the surface with a certain color.
Put a pixel in the surface with a certain color.
pixel x position
pixel y position
Color
to apply to the pixel
Flips buffers and redraws the screen.
Flips buffers and redraws the screen.
Converts an Iterable[RIO[R, A]]
into a RIO[R, List[A]]
.
Converts an Iterable[RIO[R, A]]
into a RIO[R, List[A]]
.
Converts an Iterable[RIO[R, A]]
into a RIO[R, Unit]
.
Converts an Iterable[RIO[R, A]]
into a RIO[R, Unit]
.
Suspends a computation into a RIO.
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.
Returns a view over this surface.
Returns a view over this surface.
Operations performed on a view are executed in a defered fashion.
Runs a computation only if the predicate is true, otherwise does nothing
Runs a computation only if the predicate is true, otherwise does nothing
Returns the surfaace width
Returns the surfaace width
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.
surface to draw
color to usa as a mask
leftmost pixel on the destination surface
topmost pixel on the destination surface
leftmost pixel on the source surface
topmost pixel on the source surface
clip width of the source surface
clip height of the source surface
Use blit instead
(Since version ) see corresponding Javadoc for more information.
Object containing the operations that act on a Canvas.