CPZPixel

final case class CPZPixel(px: CPPixel, z: Int) extends Serializable

Immutable container that combines pixel and its Z-index.

Value parameters:
px

Pixel.

z

Pixel's Z-index.

See also:
Source:
CPZPixel.scala
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

inline def withBg(c: Option[CPColor]): CPZPixel

Gets a copy of this Z-pixel with a new background.

Gets a copy of this Z-pixel with a new background.

Value parameters:
c

New background.

Source:
CPZPixel.scala
inline def withChar(ch: Char): CPZPixel

Gets a copy of this Z-pixel with a new character.

Gets a copy of this Z-pixel with a new character.

Value parameters:
ch

New character.

Source:
CPZPixel.scala
inline def withFg(c: CPColor): CPZPixel

Gets a copy of this Z-pixel with a new foreground.

Gets a copy of this Z-pixel with a new foreground.

Value parameters:
c

New foreground.

Source:
CPZPixel.scala
inline def withFgBg(fg: CPColor, bg: Option[CPColor]): CPZPixel

Gets a copy of this Z-pixel with a new foreground and background.

Gets a copy of this Z-pixel with a new foreground and background.

Value parameters:
bg

New background.

fg

New foreground.

Source:
CPZPixel.scala
inline def withTag(t: Int): CPZPixel

Gets a copy of this Z-pixel with a new tag.

Gets a copy of this Z-pixel with a new tag.

Value parameters:
t

New tag.

Source:
CPZPixel.scala

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

val bg: Option[CPColor]

Shortcut for pixel's background.

Shortcut for pixel's background.

Source:
CPZPixel.scala
val char: Char

Shortcut for pixel's character.

Shortcut for pixel's character.

Source:
CPZPixel.scala
val fg: CPColor

Shortcut for pixel's foreground.

Shortcut for pixel's foreground.

Source:
CPZPixel.scala
val tag: Int

Shortcut for pixel's tag.

Shortcut for pixel's tag.

Source:
CPZPixel.scala