pub struct TableWidgetManager { /* private fields */ }
Expand description
Table widget manager that owns all table-related state
Implementations§
Source§impl TableWidgetManager
impl TableWidgetManager
Sourcepub fn set_dataview(&mut self, dataview: Arc<DataView>)
pub fn set_dataview(&mut self, dataview: Arc<DataView>)
Set the data view for the table
Navigate to a specific position
Sourcepub fn move_cursor(&mut self, row_delta: isize, col_delta: isize)
pub fn move_cursor(&mut self, row_delta: isize, col_delta: isize)
Move cursor by relative amount
Handle search result navigation
Sourcepub fn needs_render(&self) -> bool
pub fn needs_render(&self) -> bool
Check if render is needed
Sourcepub fn position(&self) -> TablePosition
pub fn position(&self) -> TablePosition
Get current position
Sourcepub fn previous_position(&self) -> Option<TablePosition>
pub fn previous_position(&self) -> Option<TablePosition>
Get previous position (for clearing)
Sourcepub fn force_render(&mut self)
pub fn force_render(&mut self)
Force a re-render
Sourcepub fn set_high_frequency_mode(&mut self, enabled: bool)
pub fn set_high_frequency_mode(&mut self, enabled: bool)
Set high-frequency mode for responsive updates
Sourcepub fn viewport_manager(&self) -> Option<&ViewportManager>
pub fn viewport_manager(&self) -> Option<&ViewportManager>
Get the viewport manager
Sourcepub fn viewport_manager_mut(&mut self) -> Option<&mut ViewportManager>
pub fn viewport_manager_mut(&mut self) -> Option<&mut ViewportManager>
Get mutable viewport manager
Sourcepub fn on_debounced_search(&mut self, row: usize, column: usize)
pub fn on_debounced_search(&mut self, row: usize, column: usize)
Handle debounced search action
Sourcepub fn render_state(&self) -> &RenderState
pub fn render_state(&self) -> &RenderState
Get render state for debugging
Sourcepub fn set_scroll_offset(&mut self, row_offset: usize, col_offset: usize)
pub fn set_scroll_offset(&mut self, row_offset: usize, col_offset: usize)
Update scroll offset
Sourcepub fn scroll_offset(&self) -> (usize, usize)
pub fn scroll_offset(&self) -> (usize, usize)
Get current scroll offset
Sourcepub fn check_and_render<F>(&mut self, render_fn: F) -> bool
pub fn check_and_render<F>(&mut self, render_fn: F) -> bool
Check and perform render if needed Returns true if render was performed
Auto Trait Implementations§
impl Freeze for TableWidgetManager
impl !RefUnwindSafe for TableWidgetManager
impl Send for TableWidgetManager
impl Sync for TableWidgetManager
impl Unpin for TableWidgetManager
impl !UnwindSafe for TableWidgetManager
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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