pub struct PlacedRow {
pub top: f32,
pub height: f32,
pub reported_height: f32,
pub scale: f32,
pub alpha: f32,
}Expand description
Where a row ends up once the list has scaled it.
Fields§
§top: f32Top edge after the transform, in the unit top was given in.
height: f32Height after the transform.
reported_height: f32The height the layout reports for this row:
ScalingLazyListItemInfo.size, which is roundToInt(size * scale).
It is not Self::height. The graphics layer scales by the unrounded
factor, so what is drawn is a fraction of a pixel different from what is
reported — and it is the reported one that Wear stacks the next row
against and that the scroll indicator divides by. Advance an outward
walk by this plus the gap; see the module docs for why the walk stacks
scaled sizes at all.
scale: f32§alpha: f32Trait Implementations§
impl Copy for PlacedRow
impl StructuralPartialEq for PlacedRow
Auto Trait Implementations§
impl Freeze for PlacedRow
impl RefUnwindSafe for PlacedRow
impl Send for PlacedRow
impl Sync for PlacedRow
impl Unpin for PlacedRow
impl UnsafeUnpin for PlacedRow
impl UnwindSafe for PlacedRow
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