OverlayPosition

termflow.tui.OverlayPosition
See theOverlayPosition companion enum

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def resolve(pos: OverlayPosition, overlayWidth: Int, overlayHeight: Int, rootWidth: Int, rootHeight: Int): (XCoord, YCoord)

Resolve a position to an absolute top-left (x, y) for an overlay of the given (width, height) rendered inside (rootWidth, rootHeight).

Resolve a position to an absolute top-left (x, y) for an overlay of the given (width, height) rendered inside (rootWidth, rootHeight).

Off-screen results are clamped so an oversized overlay stays anchored at (1, 1) rather than producing negative coordinates.

Attributes

Concrete fields

val cornerInset: Int

Standard inset (1 cell from each edge) used by the corner positions.

Standard inset (1 cell from each edge) used by the corner positions.

Attributes