CanvasIO
Object containing the operations that act on a Canvas.
Attributes
- Graph
- Supertypes
- trait IOOps[Canvas]trait IOBaseOps[Canvas]trait CanvasIOOpstrait MSurfaceIOOpstrait SurfaceIOOpsclass Objecttrait Matchableclass Any
- Self type
- CanvasIO.type
Members list
Value members
Inherited methods
Returns a operation that requires this resource.
Store an unsafe canvas operation in a CanvasIO.
Wrap mutable surface operations in a MSurfaceIO.
Wrap surface operations in a SurfaceIO.
Draws a surface on top of this surface.
Draws a surface on top of this surface.
Attributes
- ch
clip height of the source surface
- cw
clip width of the source surface
- cx
leftmost pixel on the source surface
- cy
topmost pixel on the source surface
- mask
color to use as a mask (pixels with this color won't be merged)
- that
surface to draw
- x
leftmost pixel on the destination surface
- y
topmost pixel on the destination surface
- Inherited from:
- MSurfaceIOOps
Changes the settings applied to the canvas.
Changes the settings applied to the canvas.
Attributes
- newSettings
new canvas settings
- Inherited from:
- CanvasIOOps
Clears buffers, such as the backbuffer and keyboard inputs.
Clears buffers, such as the backbuffer and keyboard inputs.
Attributes
- buffers
set of Canvas.Buffers to be cleared
- Inherited from:
- CanvasIOOps
Fill the surface with a certain color
Fill the surface with a certain color
Attributes
- color
Color
to fill the surface with- Inherited from:
- MSurfaceIOOps
Fill part of the surface with a certain color
Fill part of the surface with a certain color
Attributes
- color
Color
to fill the surface with- h
region height
- w
region width
- x
leftmost pixel on the destination surface
- y
topmost pixel on the destination surface
- Inherited from:
- MSurfaceIOOps
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.
Attributes
- Inherited from:
- IOOps
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.
Attributes
- Inherited from:
- IOOps
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.
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.
Attributes
- x
pixel x position
- y
pixel y position
- Inherited from:
- SurfaceIOOps
Put a pixel in the surface with a certain color.
Put a pixel in the surface with a certain color.
Attributes
- color
Color
to apply to the pixel- x
pixel x position
- y
pixel y position
- Inherited from:
- MSurfaceIOOps
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[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.
Attributes
- Inherited from:
- IOOps
Inherited fields
Fetches the canvas settings.
Gets the current keyboard input.
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 the pixels from this surface. This operation can be perfomance intensive, so it might be worthwile to implement this operation on the application code.
Attributes
- Returns:
color matrix
- Inherited from:
- SurfaceIOOps
Gets the current pointer input.
Returns the surfaace height
An operation that does nothing.
Flips buffers and redraws the screen.
Returns a view over this surface.
Returns a view over this surface.
Operations performed on a view are executed in a defered fashion.
Attributes
- Inherited from:
- SurfaceIOOps
Returns the surfaace width