pub struct ScrollProps {
pub layout: LayoutStyle,
pub axis: ScrollAxis,
pub scroll_handle: Option<ScrollHandle>,
pub intrinsic_measure_mode: ScrollIntrinsicMeasureMode,
pub windowed_paint: bool,
pub probe_unbounded: bool,
}Fields§
§layout: LayoutStyle§axis: ScrollAxis§scroll_handle: Option<ScrollHandle>§intrinsic_measure_mode: ScrollIntrinsicMeasureMode§windowed_paint: boolWhen true, the scroll subtree’s paint output depends on the scroll offset in a
windowed/virtualized way (e.g. a single Canvas that only paints the visible range).
In this mode, scroll-handle updates must be allowed to invalidate view-cache reuse so the subtree can re-render and re-run paint handlers for the new visible window.
This is a mechanism-only switch; policy lives in ecosystem layers.
probe_unbounded: boolWhen true (default), scroll containers probe their content with a very large available size along the scroll axis to measure the full scrollable extent.
When false, probing uses the viewport constraints, which allows word-wrapping content while still permitting scrolling for long unbreakable tokens.
Trait Implementations§
Source§impl Clone for ScrollProps
impl Clone for ScrollProps
Source§fn clone(&self) -> ScrollProps
fn clone(&self) -> ScrollProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScrollProps
impl Debug for ScrollProps
Source§impl Default for ScrollProps
impl Default for ScrollProps
Source§impl IntoElement for ScrollProps
impl IntoElement for ScrollProps
fn into_element(self, id: GlobalElementId) -> AnyElement
Auto Trait Implementations§
impl Freeze for ScrollProps
impl !RefUnwindSafe for ScrollProps
impl !Send for ScrollProps
impl !Sync for ScrollProps
impl Unpin for ScrollProps
impl UnsafeUnpin for ScrollProps
impl !UnwindSafe for ScrollProps
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