pub struct VirtualList<T> { /* private fields */ }Implementations§
Source§impl<T: 'static> VirtualList<T>
impl<T: 'static> VirtualList<T>
pub fn new<F: Fn() -> Vec<T> + 'static>(items: F) -> Self
pub fn key<K: Fn(&T) -> u64 + 'static>(self, key: K) -> Self
pub fn item<I, F>(self, item: F) -> Self
pub fn item_indexed<I, F>(self, item: F) -> Self
pub fn item_height(self, h: f32) -> Self
pub fn overscan(self, n: usize) -> Self
pub fn scrollbar_visibility(self, visibility: ScrollbarVisibility) -> Self
pub fn show_scrollbar(self, show: bool) -> Self
pub fn scrollbar_width(self, width: f32) -> Self
pub fn scrollbar_track(self, color: Color) -> Self
pub fn scrollbar_thumb(self, color: Color) -> Self
pub fn on_scroll(self, handler: impl Fn(f32) + 'static) -> Self
pub fn scroll_step(self, step: f32) -> Self
pub fn width(self, width: impl Into<Length>) -> Self
pub fn height(self, height: impl Into<Length>) -> Self
pub fn min_width(self, v: f32) -> Self
pub fn max_width(self, v: f32) -> Self
pub fn min_height(self, v: f32) -> Self
pub fn max_height(self, v: f32) -> Self
pub fn flex(self, weight: f32) -> Self
pub fn expand(self) -> Self
pub fn fill_width(self) -> Self
pub fn fill_height(self) -> Self
pub fn fill_size(self) -> Self
pub fn offset(&self) -> f32
pub fn scroll_to(&self, y: f32)
pub fn scroll_by(&self, dy: f32)
pub fn scroll_to_top(&self)
pub fn scroll_to_bottom(&self)
pub fn page_up(&self)
pub fn page_down(&self)
pub fn max_offset(&self) -> f32
Trait Implementations§
Source§impl<T: 'static> Clone for VirtualList<T>
impl<T: 'static> Clone for VirtualList<T>
Source§impl<T: 'static> View for VirtualList<T>
impl<T: 'static> View for VirtualList<T>
fn reuse_state(&self, old: &Self)
fn body(&self) -> impl View + 'static
fn arrange_override( &self, rt: &Runtime, el: ElementId, rect: Rect, ctx: &mut LayoutCtx<'_>, ) -> bool
fn clip_self(&self) -> bool
fn captures_pointer_ctx(&self, _rt: &Runtime, _el: ElementId) -> bool
fn paint_foreground(&self, ctx: &mut PaintCtx<'_>)
fn layout_style_ctx(&self, _rt: &Runtime, _el: ElementId) -> LayoutStyle
fn accessibility(&self) -> Option<Accessible>
fn clip_radius(&self) -> f32
fn paint_opacity(&self) -> Option<f32>
fn paint_opacity_ctx(&self, _rt: &Runtime, _el: ElementId) -> Option<f32>
fn paint_offset(&self) -> Vec2
fn paint_offset_ctx(&self, _rt: &Runtime, _el: ElementId) -> Vec2
fn paint_scale(&self) -> f32
fn paint_scale_ctx(&self, _rt: &Runtime, _el: ElementId) -> f32
fn paint_rotation(&self) -> f32
fn paint_rotation_ctx(&self, _rt: &Runtime, _el: ElementId) -> f32
fn foreground_filter(&self) -> Option<Filter>
fn hit_testable(&self) -> bool
fn test_id(&self) -> Option<String>
fn focus_trap(&self) -> bool
fn accepts_tab(&self) -> bool
fn accepts_drop(&self, _payload: &DragPayload) -> bool
fn on_drag_over(&self, _pos: DropPosition, _ctx: &mut EventCtx<'_>)
fn on_drop(&self, _pos: DropPosition, _ctx: &mut EventCtx<'_>)
fn on_drag_start(&self, _ctx: &mut EventCtx<'_>)
fn on_drag_end(&self, _end: DragEnd, _ctx: &mut EventCtx<'_>)
Auto Trait Implementations§
impl<T> !RefUnwindSafe for VirtualList<T>
impl<T> !Send for VirtualList<T>
impl<T> !Sync for VirtualList<T>
impl<T> !UnwindSafe for VirtualList<T>
impl<T> Freeze for VirtualList<T>
impl<T> Unpin for VirtualList<T>
impl<T> UnsafeUnpin for VirtualList<T>
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