pub struct VirtualTableState { /* private fields */ }Expand description
Retained interaction state shared by rebuilt VirtualTable instances.
Row selection and pending scroll requests use stable row keys, while column
widths use the explicit key assigned to each VirtualTableColumn.
Implementations§
Source§impl VirtualTableState
impl VirtualTableState
pub fn new() -> Self
pub fn selected_key(&self) -> Option<u64>
pub fn select_key(&self, key: Option<u64>) -> bool
pub fn scroll_to(&self, key: u64, alignment: ScrollAlignment)
pub fn column_width(&self, key: u64) -> Option<f32>
pub fn set_column_width(&self, key: u64, width: f32) -> bool
pub fn scroll_state(&self) -> ScrollState
pub fn viewport(&self) -> VirtualViewportSnapshot<u64>
pub fn viewport_signal(&self) -> Signal<VirtualViewportSnapshot<u64>>
Trait Implementations§
Source§impl Clone for VirtualTableState
impl Clone for VirtualTableState
Auto Trait Implementations§
impl !RefUnwindSafe for VirtualTableState
impl !Send for VirtualTableState
impl !Sync for VirtualTableState
impl !UnwindSafe for VirtualTableState
impl Forget for VirtualTableState
impl Freeze for VirtualTableState
impl Move for VirtualTableState
impl Unpin for VirtualTableState
impl UnsafeUnpin for VirtualTableState
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