indigoextras.ui

Type members

Classlikes

final case class Button(buttonAssets: ButtonAssets, bounds: Rectangle, depth: Depth, state: ButtonState, onUp: () => Batch[GlobalEvent], onDown: () => Batch[GlobalEvent], onHoverOver: () => Batch[GlobalEvent], onHoverOut: () => Batch[GlobalEvent], onClick: () => Batch[GlobalEvent], onHoldDown: () => Batch[GlobalEvent])
Companion:
object
object Button
Companion:
class
final case class ButtonAssets(up: SceneNode, over: SceneNode, down: SceneNode)
sealed trait ButtonState
Companion:
object
Companion:
class
final case class HitArea(area: Closed, state: ButtonState, onUp: () => Batch[GlobalEvent], onDown: () => Batch[GlobalEvent], onHoverOver: () => Batch[GlobalEvent], onHoverOut: () => Batch[GlobalEvent], onClick: () => Batch[GlobalEvent], onHoldDown: () => Batch[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: () => Batch[GlobalEvent], onLoseFocus: () => Batch[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: () => Batch[GlobalEvent], onUnselected: () => Batch[GlobalEvent], onHoverOver: () => Batch[GlobalEvent], onHoverOut: () => Batch[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 parameters:
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: Batch[RadioButton])

A group of mutually exclusive radio buttons.

A group of mutually exclusive radio buttons.

Value parameters:
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 trait RadioButtonState
Companion:
object
Companion:
class