pub struct ListReading {
pub geometry: Option<ScrollGeometry>,
pub scroll_y: f32,
pub viewport: Size,
pub pad_t: f32,
pub pad_x: f32,
pub overscan: usize,
}Expand description
What a variable-height list reads before it slices: the container’s
last layout, where its scroll is going, the window, and the padding
its rows sit inside. list takes it from the frame
(Self::of); a binding builds it from the same readings its view
already has (scrollGeometry, scrollOffset, the viewport), so the
arithmetic after it is this module’s in every language.
Fields§
§geometry: Option<ScrollGeometry>scroll_geometry of the container, None before a layout has
resolved it — the first frame.
scroll_y: f32scroll_offset(key).y: the retained offset, which is where an
eased leg is going when it differs from geometry.offset.
viewport: SizeThe window, logical px: what the first frame slices by.
pad_t: f32The container’s top padding and its horizontal padding together.
pad_x: f32§overscan: usizeRows built past each end of the window; 2 unless a view says.
Implementations§
Source§impl ListReading
impl ListReading
Trait Implementations§
Source§impl Clone for ListReading
impl Clone for ListReading
Source§fn clone(&self) -> ListReading
fn clone(&self) -> ListReading
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ListReading
Source§impl Debug for ListReading
impl Debug for ListReading
Source§impl Default for ListReading
impl Default for ListReading
Source§fn default() -> ListReading
fn default() -> ListReading
Auto Trait Implementations§
impl Freeze for ListReading
impl RefUnwindSafe for ListReading
impl Send for ListReading
impl Sync for ListReading
impl Unpin for ListReading
impl UnsafeUnpin for ListReading
impl UnwindSafe for ListReading
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.