RadioButtonGroup

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

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
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 Params
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 Params
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

def update(mouse: Mouse): Outcome[RadioButtonGroup]

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 Params
mouse

The current mouse state

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 Params
newDepth

the new depth to render the radio buttons at

Returns

RadioButtonGroup

def withHitArea(newHitArea: Rectangle): RadioButtonGroup

Specify a new hit area for the radio buttons

Specify a new hit area for the radio buttons

Value Params
newHitArea

the new hit area

Returns

RadioButtonGroup

Replace the radio buttons in this group

Replace the radio buttons in this group

Value Params
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 Params
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