pub struct RenderState { /* private fields */ }
Expand description
Manages rendering state and dirty flags
Implementations§
Source§impl RenderState
impl RenderState
Sourcepub fn mark_dirty(&mut self, reason: RenderReason)
pub fn mark_dirty(&mut self, reason: RenderReason)
Mark the UI as needing re-render
Sourcepub fn needs_render(&self) -> bool
pub fn needs_render(&self) -> bool
Check if re-render is needed
Sourcepub fn force_render(&mut self)
pub fn force_render(&mut self)
Force a render on the next check
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 search/input)
Sourcepub fn dirty_reason(&self) -> Option<&RenderReason>
pub fn dirty_reason(&self) -> Option<&RenderReason>
Get the current dirty reason
Source§impl RenderState
Helper methods for common state changes
impl RenderState
Helper methods for common state changes
Navigation changed (cursor moved)
Sourcepub fn on_search_update(&mut self)
pub fn on_search_update(&mut self)
Search results updated
Sourcepub fn on_data_change(&mut self)
pub fn on_data_change(&mut self)
Data changed (filter, sort, etc.)
Sourcepub fn on_user_input(&mut self)
pub fn on_user_input(&mut self)
User input received
Sourcepub fn on_window_resize(&mut self)
pub fn on_window_resize(&mut self)
Window resized
Sourcepub fn on_debounced_action(&mut self)
pub fn on_debounced_action(&mut self)
Debounced action completed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderState
impl RefUnwindSafe for RenderState
impl Send for RenderState
impl Sync for RenderState
impl Unpin for RenderState
impl UnwindSafe for RenderState
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