pub struct ScalingList<'a> {
pub visible: &'a [IndicatorItem],
pub total: usize,
pub viewport: f32,
pub before_padding: f32,
pub after_padding: f32,
}Expand description
A scaling list as ScalingLazyColumnStateAdapter sees it. Device pixels.
Fields§
§visible: &'a [IndicatorItem]The rows on screen, in order. Only the first and last are read, but the whole window is taken because that is what the adapter is handed and because a caller that trims it to two has to get the window right itself.
total: usizetotalItemsCount — every row, on screen or not. This is the
denominator the thumb’s length is a share of.
viewport: f32viewportSize.height.
before_padding: f32beforeContentPadding + beforeAutoCenteringPadding, the blank the list
keeps above its first row. It counts only while the first row is on
screen, which is the adapter’s own rule and not an optimisation.
after_padding: f32afterContentPadding + afterAutoCenteringPadding, likewise below the
last row.
Trait Implementations§
Source§impl<'a> Clone for ScalingList<'a>
impl<'a> Clone for ScalingList<'a>
Source§fn clone(&self) -> ScalingList<'a>
fn clone(&self) -> ScalingList<'a>
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 moreimpl<'a> Copy for ScalingList<'a>
Source§impl<'a> Debug for ScalingList<'a>
impl<'a> Debug for ScalingList<'a>
Source§impl<'a> PartialEq for ScalingList<'a>
impl<'a> PartialEq for ScalingList<'a>
impl<'a> StructuralPartialEq for ScalingList<'a>
Auto Trait Implementations§
impl<'a> Freeze for ScalingList<'a>
impl<'a> RefUnwindSafe for ScalingList<'a>
impl<'a> Send for ScalingList<'a>
impl<'a> Sync for ScalingList<'a>
impl<'a> Unpin for ScalingList<'a>
impl<'a> UnsafeUnpin for ScalingList<'a>
impl<'a> UnwindSafe for ScalingList<'a>
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