pub struct TabData<T> {
pub cursor: Pos,
pub is_selected: bool,
pub popup_state: PopUpState,
pub popup: Option<Box<dyn Tab<AppState = T>>>,
pub state_modifier: Option<Box<dyn FnMut(&Box<dyn Any>)>>,
pub area_map: BTreeMap<String, Rect>,
pub first_pass: bool,
pub key_history: Vec<KeyCode>,
}Fields§
§cursor: Pos§is_selected: bool§popup_state: PopUpState§popup: Option<Box<dyn Tab<AppState = T>>>§state_modifier: Option<Box<dyn FnMut(&Box<dyn Any>)>>§area_map: BTreeMap<String, Rect>§first_pass: bool§key_history: Vec<KeyCode>Implementations§
Source§impl<T> TabData<T>
impl<T> TabData<T>
pub fn _debug_show_cursor(&self, f: &mut Frame<'_>)
pub fn is_selected(&self, area: Rect) -> bool
pub fn char_match(&self, keys: &str) -> bool
pub fn key_match(&self, keys: Vec<KeyCode>) -> bool
pub fn move_right(&mut self)
pub fn move_down(&mut self)
pub fn isitselected(area: Rect, cursor: Pos) -> bool
pub fn move_up(&mut self)
pub fn move_left(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TabData<T>
impl<T> !RefUnwindSafe for TabData<T>
impl<T> !Send for TabData<T>
impl<T> !Sync for TabData<T>
impl<T> Unpin for TabData<T>
impl<T> !UnwindSafe for TabData<T>
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