pub enum RadioStyle {
Square,
Mark,
Box,
Dot,
}Expand description
How the options of a RadioGroup are marked.
Variants§
Square
A small square centred in two cells for every option; only its colour tells the chosen one.
Choosing blends the new square from the quiet tone to the chosen tone over two
motion.steps while the option left behind blends back; the shape never changes. The
square is the icon radio-mark-small; a blank icon (as in ASCII) draws a box whose tone
blends the same way.
Mark
A small square centred in two cells for the options not chosen and a full two-cell box of
solid colour for the chosen one. Choosing blends the mark’s colour towards the chosen tone
and swaps the small square for the full box halfway, with no size in between; the option
left behind blends back and shrinks the same way. The small square is the icon
radio-mark-small; a blank icon (as in ASCII) draws a faint box instead.
Box
A two-cell box of solid colour, filled for the chosen option and the empty tone for the others; exactly the box of a checkbox. No glyph, so it looks the same in every glyph mode.
Dot
A filled dot ● for the chosen option and a ring ○ for the others.
Trait Implementations§
Source§impl Clone for RadioStyle
impl Clone for RadioStyle
Source§fn clone(&self) -> RadioStyle
fn clone(&self) -> RadioStyle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RadioStyle
Source§impl Debug for RadioStyle
impl Debug for RadioStyle
Source§impl Default for RadioStyle
impl Default for RadioStyle
Source§fn default() -> RadioStyle
fn default() -> RadioStyle
impl Eq for RadioStyle
Source§impl PartialEq for RadioStyle
impl PartialEq for RadioStyle
impl StructuralPartialEq for RadioStyle
Auto Trait Implementations§
impl Freeze for RadioStyle
impl RefUnwindSafe for RadioStyle
impl Send for RadioStyle
impl Sync for RadioStyle
impl Unpin for RadioStyle
impl UnsafeUnpin for RadioStyle
impl UnwindSafe for RadioStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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