pub struct VirtualList<T> { /* private fields */ }Implementations§
Source§impl<T> VirtualList<T>where
T: 'static,
impl<T> VirtualList<T>where
T: 'static,
pub fn new<F>(items: F) -> VirtualList<T>
pub fn key<K>(self, key: K) -> VirtualList<T>
pub fn item<I, F>(self, item: F) -> VirtualList<T>
pub fn item_indexed<I, F>(self, item: F) -> VirtualList<T>
pub fn item_height(self, h: f32) -> VirtualList<T>
pub fn overscan(self, n: usize) -> VirtualList<T>
pub fn scrollbar_visibility( self, visibility: ScrollbarVisibility, ) -> VirtualList<T>
pub fn show_scrollbar(self, show: bool) -> VirtualList<T>
pub fn scrollbar_width(self, width: f32) -> VirtualList<T>
pub fn scrollbar_track(self, color: Color) -> VirtualList<T>
pub fn scrollbar_thumb(self, color: Color) -> VirtualList<T>
pub fn on_scroll(self, handler: impl Fn(f32) + 'static) -> VirtualList<T>
pub fn scroll_step(self, step: f32) -> VirtualList<T>
pub fn width(self, width: impl Into<Length>) -> VirtualList<T>
pub fn height(self, height: impl Into<Length>) -> VirtualList<T>
pub fn min_width(self, v: f32) -> VirtualList<T>
pub fn max_width(self, v: f32) -> VirtualList<T>
pub fn min_height(self, v: f32) -> VirtualList<T>
pub fn max_height(self, v: f32) -> VirtualList<T>
pub fn flex(self, weight: f32) -> VirtualList<T>
pub fn expand(self) -> VirtualList<T>
pub fn fill_width(self) -> VirtualList<T>
pub fn fill_height(self) -> VirtualList<T>
pub fn fill_size(self) -> VirtualList<T>
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> Clone for VirtualList<T>where
T: 'static,
impl<T> Clone for VirtualList<T>where
T: 'static,
Source§fn clone(&self) -> VirtualList<T>
fn clone(&self) -> VirtualList<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> View for VirtualList<T>where
T: 'static,
impl<T> View for VirtualList<T>where
T: 'static,
fn reuse_state(&self, old: &VirtualList<T>)
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