pub struct TableRowConfig {
pub index: usize,
pub is_selected: Signal<bool>,
pub is_hovered: Signal<bool>,
pub is_alt: bool,
pub is_focused: Option<Signal<bool>>,
pub is_window_active: Option<Signal<bool>>,
}Fields§
§index: usize§is_selected: Signal<bool>§is_hovered: Signal<bool>§is_alt: bool§is_focused: Option<Signal<bool>>Whether the view holds keyboard focus. None = “treat as always
focused” (the stock TableView paints its selection band directly and
passes None here). A custom style that paints row backgrounds reactively
can supply this — combined with is_window_active
— to desaturate the selection (SelectedInactive) when focus is elsewhere.
is_window_active: Option<Signal<bool>>Whether the host window is active (focused AND not occluded). None =
“treat as always active”. Custom styles combine this with
is_focused so a selected row desaturates in a
background window, matching the stock views.
Auto Trait Implementations§
impl !RefUnwindSafe for TableRowConfig
impl !Send for TableRowConfig
impl !Sync for TableRowConfig
impl !UnwindSafe for TableRowConfig
impl Freeze for TableRowConfig
impl Unpin for TableRowConfig
impl UnsafeUnpin for TableRowConfig
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