indigoextras.ui

package indigoextras.ui

Members list

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])

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Button.type
final case class ButtonAssets(up: SceneNode, over: SceneNode, down: SceneNode)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait ButtonState

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Down.type
object Over.type
object Up.type
object ButtonState

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
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])

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
HitArea.type
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])

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
InputField.type
final case class InputFieldAssets(text: Text[_], cursor: Graphic[_])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class InputFieldChange(key: BindingKey, updatedText: String) extends GlobalEvent

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait GlobalEvent
class Object
trait Matchable
class Any
Show all
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

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
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

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait RadioButtonState

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Hover.type
object Normal.type
object Selected.type

Attributes

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