CPZPixel

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

Immutable container that combines pixel and its Z-index.

Attributes

px

Pixel.

z

Pixel's Z-index.

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

Members list

Concise view

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

t

New tag.

Source:
CPZPixel.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val bg: Option[CPColor]

Shortcut for pixel's background.

Shortcut for pixel's background.

Attributes

Source:
CPZPixel.scala
val char: Char

Shortcut for pixel's character.

Shortcut for pixel's character.

Attributes

Source:
CPZPixel.scala
val fg: CPColor

Shortcut for pixel's foreground.

Shortcut for pixel's foreground.

Attributes

Source:
CPZPixel.scala
val tag: Int

Shortcut for pixel's tag.

Shortcut for pixel's tag.

Attributes

Source:
CPZPixel.scala