pub struct TableContext {
pub focus: bool,
pub selected_cell: bool,
pub selected_row: bool,
pub selected_column: bool,
pub style: Style,
pub row_style: Option<Style>,
pub select_style: Option<Style>,
pub space_area: Rect,
pub row_area: Rect,
pub non_exhaustive: NonExhaustive,
}Expand description
Render-context for rendering a table-cell.
Fields§
§focus: boolFocus flag is set.
selected_cell: boolCell is selected.
selected_row: boolRow of the cell is selected.
selected_column: boolColumn of the cell is selected.
style: StyleBase style
row_style: Option<Style>Row style if any.
select_style: Option<Style>Selection style if any.
space_area: RectSpacing after the cell. It’s guaranteed that this is writeable in the buffer given to render_cell.
row_area: RectTotal area for the current row.
non_exhaustive: NonExhaustiveConstruct with ..Default::default()
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableContext
impl RefUnwindSafe for TableContext
impl Send for TableContext
impl Sync for TableContext
impl Unpin for TableContext
impl UnwindSafe for TableContext
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