pub struct SliverLayoutDimensions {
pub scroll_offset: f64,
pub preceding_scroll_extent: f64,
pub viewport_main_axis_extent: f64,
pub cross_axis_extent: f64,
}Expand description
Relates the dimensions of the RenderSliver during layout.
Fields§
§scroll_offset: f64Scroll offset in this sliver’s coordinate system of the earliest visible part of this sliver.
preceding_scroll_extent: f64Scroll distance consumed by all slivers that came before this one.
viewport_main_axis_extent: f64The number of pixels the viewport can display in the main axis.
For a vertical list, this is the height of the viewport.
cross_axis_extent: f64The number of pixels in the cross-axis.
For a vertical list, this is the width of the sliver.
Implementations§
Trait Implementations§
Source§impl Clone for SliverLayoutDimensions
impl Clone for SliverLayoutDimensions
impl Copy for SliverLayoutDimensions
Source§impl Debug for SliverLayoutDimensions
impl Debug for SliverLayoutDimensions
Source§impl Display for SliverLayoutDimensions
impl Display for SliverLayoutDimensions
Source§impl PartialEq for SliverLayoutDimensions
impl PartialEq for SliverLayoutDimensions
impl StructuralPartialEq for SliverLayoutDimensions
Auto Trait Implementations§
impl Freeze for SliverLayoutDimensions
impl RefUnwindSafe for SliverLayoutDimensions
impl Send for SliverLayoutDimensions
impl Sync for SliverLayoutDimensions
impl Unpin for SliverLayoutDimensions
impl UnsafeUnpin for SliverLayoutDimensions
impl UnwindSafe for SliverLayoutDimensions
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