pub struct EuvVirtualList { /* private fields */ }Expand description
High-performance reactive virtualized scrollable list rendering only the visible window of total_items.
Implementations§
Source§impl EuvVirtualList
Window calculation, clamped scrolling, and reactive mounting for EuvVirtualList.
impl EuvVirtualList
Window calculation, clamped scrolling, and reactive mounting for EuvVirtualList.
Sourcepub fn viewport_height(self, height: f32) -> Self
pub fn viewport_height(self, height: f32) -> Self
Sourcepub fn max_scroll_y(&self) -> f32
pub fn max_scroll_y(&self) -> f32
Sourcepub fn scroll_by(&self, delta_y: f32)
pub fn scroll_by(&self, delta_y: f32)
Advances the reactive scroll offset by delta_y, clamped to [0.0, max_scroll_y()].
§Arguments
&Self- Virtual list configuration.f32- Incremental vertical scroll delta in logical pixels.
Sourcepub fn visible_range(&self) -> (usize, usize)
pub fn visible_range(&self) -> (usize, usize)
Sourcepub fn mount_with_handle<F>(&self, row_builder: F) -> EuvVirtualListHandle
pub fn mount_with_handle<F>(&self, row_builder: F) -> EuvVirtualListHandle
Mounts a reactive clipped scrollable list returning a controller handle for O(1) stable-ID single-row patches and refreshes.
§Arguments
&Self- Virtual list configuration.F- Zero-context row builder closure takingusizerow index and returningNodeId.
§Returns
EuvVirtualListHandle- Mounted viewport root and targeted single-row update controller.
Sourcepub fn mount_with<F>(&self, row_builder: F) -> NodeId
pub fn mount_with<F>(&self, row_builder: F) -> NodeId
Sourcepub fn mount_pooled<S, Init, Bind>(
&self,
create_row: Init,
bind_row: Bind,
) -> NodeId
pub fn mount_pooled<S, Init, Bind>( &self, create_row: Init, bind_row: Bind, ) -> NodeId
Mounts a zero-allocation pooled virtual list that recycles mounted row subtrees and rebinds them in place on scroll.
§Arguments
&Self- Virtual list configuration.Init- Factory constructing one reusable row subtree(row_root, row_state)per pool slot.Bind- In-place binder updating a recycled row’srow_statefor a new item index insideSceneTree.
§Returns
NodeId- Mounted reactive scroll viewport handle.
Source§impl EuvVirtualList
impl EuvVirtualList
pub fn get_total_items(&self) -> usize
pub fn get_mut_total_items(&mut self) -> &mut usize
pub fn set_total_items(&mut self, val: usize) -> &mut Self
pub fn get_item_height(&self) -> f32
pub fn get_mut_item_height(&mut self) -> &mut f32
pub fn set_item_height(&mut self, val: f32) -> &mut Self
pub fn get_viewport_height(&self) -> f32
pub fn get_mut_viewport_height(&mut self) -> &mut f32
pub fn set_viewport_height(&mut self, val: f32) -> &mut Self
pub fn get_scroll_y(&self) -> Signal<f32>
pub fn get_mut_scroll_y(&mut self) -> &mut Signal<f32>
pub fn set_scroll_y(&mut self, val: Signal<f32>) -> &mut Self
pub fn get_overscan(&self) -> usize
pub fn get_mut_overscan(&mut self) -> &mut usize
pub fn set_overscan(&mut self, val: usize) -> &mut Self
pub fn get_tokens(&self) -> ThemeTokens
pub fn get_mut_tokens(&mut self) -> &mut ThemeTokens
pub fn set_tokens(&mut self, val: ThemeTokens) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvVirtualList
impl Clone for EuvVirtualList
Source§impl Debug for EuvVirtualList
impl Debug for EuvVirtualList
Auto Trait Implementations§
impl Forget for EuvVirtualList
impl Freeze for EuvVirtualList
impl Move for EuvVirtualList
impl RefUnwindSafe for EuvVirtualList
impl Send for EuvVirtualList
impl Sync for EuvVirtualList
impl Unpin for EuvVirtualList
impl UnsafeUnpin for EuvVirtualList
impl UnwindSafe for EuvVirtualList
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