RadioButtonGroup

indigoextras.ui.RadioButtonGroup
See theRadioButtonGroup companion object
final case class RadioButtonGroup(buttonAssets: ButtonAssets, hitArea: Rectangle, depth: Depth, options: Batch[RadioButton])

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

Members list

Value members

Concrete methods

Append radio buttons to this group

Append radio buttons to this group

Value parameters

radioButtons

a variable number of radio buttons to add

Attributes

Returns

RadioButtonGroup

Append radio buttons to this group

Append radio buttons to this group

Value parameters

radioButtons

a list of radio buttons to add

Attributes

Returns

RadioButtonGroup

def draw: Group

Returns graphics to present the current state of the radio button.

Returns graphics to present the current state of the radio button.

Attributes

Returns

A Group of scene update primitives collecting the graphics for all options

Update all the option buttons according to the newest state of mouse input.

Update all the option buttons according to the newest state of mouse input.

Value parameters

mouse

The current mouse state

Attributes

Returns

An Outcome[RadioButtonGroup] with this radio button's new state

def withDepth(newDepth: Depth): RadioButtonGroup

Specify a new depth to draw the radio buttons at.

Specify a new depth to draw the radio buttons at.

Value parameters

newDepth

the new depth to render the radio buttons at

Attributes

Returns

RadioButtonGroup

Specify a new hit area for the radio buttons

Specify a new hit area for the radio buttons

Value parameters

newHitArea

the new hit area

Attributes

Returns

RadioButtonGroup

Replace the radio buttons in this group

Replace the radio buttons in this group

Value parameters

radioButtons

a variable number of radio buttons to use

Attributes

Returns

RadioButtonGroup

Replace the radio buttons in this group

Replace the radio buttons in this group

Value parameters

radioButtons

a list of radio buttons to use

Attributes

Returns

RadioButtonGroup

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product