pub struct Button<'text> { /* private fields */ }
👎Deprecated: Use tui-framework-experiment instead
Implementations§
Source§impl Button<'_>
impl Button<'_>
pub fn toggle_press(&mut self)
👎Deprecated: Use tui-framework-experiment instead
pub fn press(&mut self)
👎Deprecated: Use tui-framework-experiment instead
pub fn normal(&mut self)
👎Deprecated: Use tui-framework-experiment instead
pub fn select(&mut self)
👎Deprecated: Use tui-framework-experiment instead
Trait Implementations§
Source§impl EventHandler for Button<'_>
impl EventHandler for Button<'_>
Source§fn handle_key(&mut self, key_event: KeyPressedEvent)
fn handle_key(&mut self, key_event: KeyPressedEvent)
👎Deprecated: Use tui-framework-experiment instead
Source§fn handle_event(&mut self, event: Event)
fn handle_event(&mut self, event: Event)
👎Deprecated: Use tui-framework-experiment instead
Source§fn handle_mouse(&mut self, event: MouseEvent)
fn handle_mouse(&mut self, event: MouseEvent)
👎Deprecated: Use tui-framework-experiment instead
Auto Trait Implementations§
impl<'text> Freeze for Button<'text>
impl<'text> RefUnwindSafe for Button<'text>
impl<'text> Send for Button<'text>
impl<'text> Sync for Button<'text>
impl<'text> Unpin for Button<'text>
impl<'text> UnwindSafe for Button<'text>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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