pub struct ScrollStyle {
pub physics: ScrollPhysics,
}Expand description
Per-widget-type default physics, keyed by platform (D108/Phase 26 Step 2).
This is the ONLY place platform is consulted for scroll behavior — one
pure lookup, never branches scattered through widget code — and it is
always the lowest-priority source: an app’s own theme ext value or an
explicit .physics(...) on a ScrollView both override it. See
rosace-widgets/src/tree/scroll_view.rs’s resolve_physics.
Fields§
§physics: ScrollPhysicsImplementations§
Source§impl ScrollStyle
impl ScrollStyle
Sourcepub fn default_for_platform(platform: Platform) -> ScrollPhysics
pub fn default_for_platform(platform: Platform) -> ScrollPhysics
iOS/macOS default to rubber-band Bounce (the platform-native feel);
every other platform defaults to plain Momentum. Android’s overscroll
“glow” is a separate visual effect on similar physics, not modeled
here — out of scope (see .steering/PHASE_26.md).
Trait Implementations§
Source§impl Clone for ScrollStyle
impl Clone for ScrollStyle
Source§fn clone(&self) -> ScrollStyle
fn clone(&self) -> ScrollStyle
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 Copy for ScrollStyle
Auto Trait Implementations§
impl Freeze for ScrollStyle
impl RefUnwindSafe for ScrollStyle
impl Send for ScrollStyle
impl Sync for ScrollStyle
impl Unpin for ScrollStyle
impl UnsafeUnpin for ScrollStyle
impl UnwindSafe for ScrollStyle
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