pub struct GenericMenu<'a> {
table_custom: TableCustomRetroStyle<'a>,
scrollbar: ScrollBarCustomRetroStyle<'a>,
selected_row: usize,
info_footer: Paragraph<'a>,
info_footer_data: Vec<FooterData>,
vertical_layout: Layout,
current_preset: Option<u16>,
}Fields§
§table_custom: TableCustomRetroStyle<'a>§scrollbar: ScrollBarCustomRetroStyle<'a>§selected_row: usize§vertical_layout: Layout§current_preset: Option<u16>Implementations§
Source§impl<'a> GenericMenu<'a>
impl<'a> GenericMenu<'a>
pub fn new( rows: Vec<RowData>, headers: &[String], info_footer: Vec<FooterData>, current_preset: Option<u16>, ) -> Self
pub fn next_row(&mut self)
pub fn previous_row(&mut self)
pub fn next_parameter_value(&mut self)
pub fn previous_parameter_value(&mut self)
pub fn run( &mut self, actions_inputs: Vec<ActionInputs<'a>>, terminal: &mut DefaultTerminal, )
fn draw(&mut self, frame: &mut Frame<'_>)
Auto Trait Implementations§
impl<'a> Freeze for GenericMenu<'a>
impl<'a> RefUnwindSafe for GenericMenu<'a>
impl<'a> Send for GenericMenu<'a>
impl<'a> Sync for GenericMenu<'a>
impl<'a> Unpin for GenericMenu<'a>
impl<'a> UnwindSafe for GenericMenu<'a>
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