TerminalButton

roguelikestarterkit.ui.components.TerminalButton

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class Theme(charSheet: CharSheet, up: TerminalTileColors, over: TerminalTileColors, down: TerminalTileColors, hasBorder: Boolean, borderTiles: TerminalBorderTiles)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Theme

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Theme.type

Value members

Concrete methods

def apply[ReferenceData](label: ReferenceData => String, theme: Theme, calculateBounds: ReferenceData => Bounds): Button[ReferenceData]

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme, with dynamically calculated bounds

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme, with dynamically calculated bounds

Attributes

def apply[ReferenceData](label: String, theme: Theme, bounds: Bounds): Button[ReferenceData]

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme, with custom bounds

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme, with custom bounds

Attributes

def apply[ReferenceData](label: String, theme: Theme): Button[ReferenceData]

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a single line of simple text.

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a single line of simple text.

Attributes

def apply[ReferenceData](label: ReferenceData => String, theme: Theme): Button[ReferenceData]

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a single line of simple text.

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a single line of simple text.

Attributes

def fromTile[ReferenceData](label: Tile, theme: Theme): Button[ReferenceData]

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a single Tile.

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a single Tile.

Attributes

def fromTile[ReferenceData](label: ReferenceData => Tile, theme: Theme): Button[ReferenceData]

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a Tile.

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a Tile.

Attributes

def fromTiles[ReferenceData](tileLabel: ReferenceData => Batch[Tile], theme: Theme, calculateBounds: ReferenceData => Bounds): Button[ReferenceData]

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme, with dynamically calculated bounds, where the label is a row of tiles.

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme, with dynamically calculated bounds, where the label is a row of tiles.

Attributes

def fromTiles[ReferenceData](label: Batch[Tile], theme: Theme, bounds: Bounds): Button[ReferenceData]

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme, with custom bounds, where the label is a row of tiles.

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme, with custom bounds, where the label is a row of tiles.

Attributes

def fromTiles[ReferenceData](label: Batch[Tile], theme: Theme): Button[ReferenceData]

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a single row of tiles.

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a single row of tiles.

Attributes

def fromTiles[ReferenceData](label: ReferenceData => Batch[Tile], theme: Theme): Button[ReferenceData]

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a single row of tiles.

Creates a button rendered using the RogueTerminalEmulator based on a Button.Theme where the bounds are based on the label size, which is assumed to be a single row of tiles.

Attributes