pub struct CaptionState {
pub area: Rect,
pub navchar: Option<char>,
pub hotkey: Option<KeyEvent>,
pub linked: FocusFlag,
pub mouse: MouseFlags,
pub non_exhaustive: NonExhaustive,
}Fields§
§area: RectArea for the whole widget. readonly. renewed for each render.
Hot-key 1 readonly. renewed for each render.
hotkey: Option<KeyEvent>Hot-key 2 limited. renewed for each render if set with the widget.
linked: FocusFlagAssociated widget
mouse: MouseFlagsFlags for mouse handling. used for mouse interaction
non_exhaustive: NonExhaustiveImplementations§
Trait Implementations§
Source§impl Clone for CaptionState
impl Clone for CaptionState
Source§impl Debug for CaptionState
impl Debug for CaptionState
Source§impl Default for CaptionState
impl Default for CaptionState
Source§impl<'a> HandleEvent<Event, &'a Focus, Outcome> for CaptionState
impl<'a> HandleEvent<Event, &'a Focus, Outcome> for CaptionState
Source§impl RelocatableState for CaptionState
impl RelocatableState for CaptionState
Auto Trait Implementations§
impl !Freeze for CaptionState
impl !RefUnwindSafe for CaptionState
impl !Send for CaptionState
impl !Sync for CaptionState
impl Unpin for CaptionState
impl !UnwindSafe for CaptionState
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