indigoextras.ui

Type members

Classlikes

final case
class Button(buttonAssets: ButtonAssets, bounds: Rectangle, depth: Depth, state: ButtonState, onUp: () => List[GlobalEvent], onDown: () => List[GlobalEvent], onHoverOver: () => List[GlobalEvent], onHoverOut: () => List[GlobalEvent], onClick: () => List[GlobalEvent], onHoldDown: () => List[GlobalEvent])
Companion
object
object Button
Companion
class
final case
class ButtonAssets(up: SceneNode, over: SceneNode, down: SceneNode)
sealed
Companion
object
Companion
class
final case
class HitArea(area: Closed, state: ButtonState, onUp: () => List[GlobalEvent], onDown: () => List[GlobalEvent], onHoverOver: () => List[GlobalEvent], onHoverOut: () => List[GlobalEvent], onClick: () => List[GlobalEvent], onHoldDown: () => List[GlobalEvent])
Companion
object
object HitArea
Companion
class
final case
class InputField(text: String, characterLimit: Int, multiLine: Boolean, assets: InputFieldAssets, cursorBlinkRate: Option[Seconds], position: Point, depth: Depth, hasFocus: Boolean, cursorPosition: Int, lastCursorMove: Seconds, key: Option[BindingKey], onFocus: () => List[GlobalEvent], onLoseFocus: () => List[GlobalEvent])
Companion
object
object InputField
Companion
class
final case
class InputFieldAssets(text: Text[_], cursor: Graphic[_])
final case
class InputFieldChange(key: BindingKey, updatedText: String) extends GlobalEvent
final case
class RadioButton(position: Point, onSelected: () => List[GlobalEvent], onUnselected: () => List[GlobalEvent], onHoverOver: () => List[GlobalEvent], onHoverOut: () => List[GlobalEvent], hitArea: Option[Rectangle], buttonAssets: Option[ButtonAssets], state: RadioButtonState)

Represents an individual option button in a radio button group. This class just containing the distinct information for this option: it's position and the events fired on interacting with it. Attributes shared between options are contained in the RadioButtonGroup class.

Represents an individual option button in a radio button group. This class just containing the distinct information for this option: it's position and the events fired on interacting with it. Attributes shared between options are contained in the RadioButtonGroup class.

Value Params
onHoverOut

The events fired when this button is no longer hovered over

onHoverOver

The events fired when this button is hovered over

onSelected

The events fired when this button is selected

onUnselected

The events fired when this button ceases to be selected

position

The top-left position of this option button

state

The current state of the radio button i.e., selected, hover, or normal

Companion
object
Companion
class
final case
class RadioButtonGroup(buttonAssets: ButtonAssets, hitArea: Rectangle, depth: Depth, options: List[RadioButton])

A group of mutually exclusive radio buttons.

A group of mutually exclusive radio buttons.

Value Params
buttonAssets

The graphics to use identically for all of the options: up (unselected), down (selected) and over

depth

The depth at which to present the buttons

hitArea

The hit area of the radio button relative to the button's position

options

A list individual radio buttons that comprise this group

Companion
object
Companion
class
sealed
Companion
object
Companion
class