RadioButtonGroup

final case class RadioButtonGroup(buttonAssets: ButtonAssets, hitArea: Rectangle, depth: Depth, options: List[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

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

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

Returns:

RadioButtonGroup

def addRadioButtons(radioButtons: List[RadioButton]): RadioButtonGroup

Append radio buttons to this group

Append radio buttons to this group

Value parameters:
radioButtons

a list of radio buttons to add

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.

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

Returns:

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

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

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

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

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

Returns:

RadioButtonGroup

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product