CPPosPixel

final case class CPPosPixel(px: CPPixel, x: Int, y: Int) extends Ordered[CPPosPixel] with Serializable

Immutable container for pixel and its XY-coordinate.

Value parameters:
px

Pixel.

x

Pixel X-coordinate.

y

Pixel Y-coordinate.

See also:
Source:
CPPosPixel.scala
trait Product
trait Equals
trait Serializable
trait Ordered[CPPosPixel]
trait Comparable[CPPosPixel]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def compare(that: CPPosPixel): Int
Definition Classes
Ordered
Source:
CPPosPixel.scala
inline def isBellowLeftOf(other: CPPosPixel): Boolean
inline def isBellowRightOf(other: CPPosPixel): Boolean
inline def isBelowOf(other: CPPosPixel): Boolean
inline def isLeftOf(other: CPPosPixel): Boolean
inline def isRightOf(other: CPPosPixel): Boolean
inline def isSameColumn(other: CPPosPixel): Boolean
inline def isSamePos(other: CPPosPixel): Boolean
inline def isSameRow(other: CPPosPixel): Boolean
inline def isTopLeftOf(other: CPPosPixel): Boolean
inline def isTopOf(other: CPPosPixel): Boolean
inline def isTopRightOf(other: CPPosPixel): Boolean
inline def withBg(c: Option[CPColor]): CPPosPixel
inline def withChar(ch: Char): CPPosPixel
inline def withTag(t: Int): CPPosPixel

Inherited methods

def <(that: CPPosPixel): Boolean
Inherited from:
Ordered
def <=(that: CPPosPixel): Boolean
Inherited from:
Ordered
def >(that: CPPosPixel): Boolean
Inherited from:
Ordered
def >=(that: CPPosPixel): Boolean
Inherited from:
Ordered
def compareTo(that: CPPosPixel): Int
Inherited from:
Ordered
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

val bg: Option[CPColor]
val char: Char
lazy val pos: (Int, Int)
val tag: Int