Struct rat_widget::table::FTableContext
source · pub struct FTableContext {
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 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.
non_exhaustive: NonExhaustiveConstruct with ..Default::default()
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FTableContext
impl RefUnwindSafe for FTableContext
impl Send for FTableContext
impl Sync for FTableContext
impl Unpin for FTableContext
impl UnwindSafe for FTableContext
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