Struct cursive::views::RadioGroup [] [src]

pub struct RadioGroup<T> { /* fields omitted */ }

Group to coordinate multiple radio buttons.

A RadioGroup is used to create and manage RadioButtons.

A RadioGroup can be cloned; it will keep pointing to the same group.

Methods

impl<T> RadioGroup<T>
[src]

[src]

Creates an empty group for radio buttons.

[src]

Adds a new button to the group.

The button will display label next to it, and will embed value.

[src]

Returns the id of the selected button.

Buttons are indexed in the order they are created, starting from 0.

[src]

Returns the value associated with the selected button.

impl RadioGroup<String>
[src]

[src]

Adds a button, using the label itself as value.

Trait Implementations

impl<T: Clone> Clone for RadioGroup<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Default for RadioGroup<T>
[src]

[src]

Returns the "default value" for a type. Read more