pub struct Radio {
pub states: RadioStates,
/* private fields */
}
Expand description
§Radio
Radio component represents a group of tabs to select from
Fields§
§states: RadioStates
Implementations§
Source§impl Radio
impl Radio
pub fn foreground(self, fg: Color) -> Self
pub fn background(self, bg: Color) -> Self
pub fn borders(self, b: Borders) -> Self
pub fn title<S: Into<String>>(self, t: S, a: Alignment) -> Self
pub fn inactive(self, s: Style) -> Self
pub fn rewind(self, r: bool) -> Self
pub fn choices<S: AsRef<str>>(self, choices: &[S]) -> Self
pub fn value(self, i: usize) -> Self
Trait Implementations§
Source§impl MockComponent for Radio
impl MockComponent for Radio
Source§fn view(&mut self, render: &mut Frame<'_>, area: Rect)
fn view(&mut self, render: &mut Frame<'_>, area: Rect)
Based on the current properties and states, renders the component in the provided area frame.
Render can also mutate the component state if this is required
Source§fn query(&self, attr: Attribute) -> Option<AttrValue>
fn query(&self, attr: Attribute) -> Option<AttrValue>
Query attribute of component properties.
Auto Trait Implementations§
impl Freeze for Radio
impl RefUnwindSafe for Radio
impl Send for Radio
impl Sync for Radio
impl Unpin for Radio
impl UnwindSafe for Radio
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more