CPZPixelPane

(0,0)-based pane for CPZPixel.

It is used for internal purposes only.

See also:
Companion:
object
Source:
CPZPixelPane.scala
class Object
trait Matchable
class Any
class CPScreen

Value members

Abstract methods

def addPixel(zpx: CPZPixel, x: Int, y: Int): Unit

Adds Z-pixel at given XY-coordinate.

Adds Z-pixel at given XY-coordinate.

Value parameters:
x

X-coordinate of the pixel.

y

Y-coordinate of the pixel.

zpx

Z-pixel to add.

Source:
CPZPixelPane.scala

Gets background pixel of this pane.

Gets background pixel of this pane.

Source:
CPZPixelPane.scala

Gets dimension of this pane.

Gets dimension of this pane.

Source:
CPZPixelPane.scala
def getPixel(x: Int, y: Int): CPZPixel

Gets Z-pixel at given XY-coordinate.

Gets Z-pixel at given XY-coordinate.

Value parameters:
x

X-coordinate of the pixel.

y

Y-coordinate of the pixel.

Source:
CPZPixelPane.scala
def optPixel(x: Int, y: Int): Option[CPZPixel]

Gets optional Z-pixel at given XY-coordinate.

Gets optional Z-pixel at given XY-coordinate.

Value parameters:
x

X-coordinate of the pixel.

y

Y-coordinate of the pixel.

Returns:

Some of pixel if given XY-coordinate is valid, None otherwise.

Source:
CPZPixelPane.scala

Concrete methods

def addPixel(px: CPPixel, x: Int, y: Int, z: Int): Unit

Adds pixel at given XY-coordinate and Z-index.

Adds pixel at given XY-coordinate and Z-index.

Value parameters:
px

Pixel to add.

x

X-coordinate of the pixel.

y

Y-coordinate of the pixel.

z

Z-index. Pixel with the larger or equal Z-index overrides the pixel with the smaller one.

Source:
CPZPixelPane.scala