CPZPixelPane

org.cosplay.CPZPixelPane
See theCPZPixelPane companion object
trait CPZPixelPane

(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

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.

Attributes

Source
CPZPixelPane.scala

Gets background pixel of this pane.

Gets background pixel of this pane.

Attributes

Source
CPZPixelPane.scala
def getDim: CPDim

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.

Value parameters

x

X-coordinate of the pixel.

y

Y-coordinate of the pixel.

Attributes

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.

Attributes

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.

Attributes

Source
CPZPixelPane.scala