pub struct TableContext<'a> {
pub row: usize,
pub focus: bool,
pub selected_cell: bool,
pub selected_row: bool,
pub selected_column: bool,
pub style: Style,
pub select_style: Option<Style>,
pub column_layout: &'a [Rect],
pub space_area: Rect,
pub row_area: Rect,
pub non_exhaustive: NonExhaustive,
}Expand description
Render-context for rendering a table-cell.
Fields§
§row: usizeCurrent row.
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
select_style: Option<Style>Selection style if any.
column_layout: &'a [Rect]Column layout for all columns. Only the x-position and width are set, y-position and height are 0.
space_area: RectSpacing after the current cell. Will be empty when calling row-rendering.
row_area: RectTotal area for the current row.
non_exhaustive: NonExhaustiveConstruct with ..Default::default()
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for TableContext<'a>
impl<'a> Freeze for TableContext<'a>
impl<'a> RefUnwindSafe for TableContext<'a>
impl<'a> Send for TableContext<'a>
impl<'a> Sync for TableContext<'a>
impl<'a> Unpin for TableContext<'a>
impl<'a> UnsafeUnpin for TableContext<'a>
impl<'a> UnwindSafe for TableContext<'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