CPZPixelPane

org.cosplay.CPZPixelPane
See theCPZPixelPane companion object

(0,0)-based pane for CPZPixel.

It is used for internal purposes only.

Attributes

See also:
Companion:
object
Source:
CPZPixelPane.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CPScreen

Members list

Concise view

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.

Attributes

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.

Attributes

Source:
CPZPixelPane.scala

Gets dimension of this pane.

Gets dimension of this pane.

Attributes

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

Gets Z-pixel at given XY-coordinate.

Gets Z-pixel at given XY-coordinate.

Attributes

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.

Attributes

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.

Attributes

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