pub struct Scroller {Show 14 fields
pub scroll_pos_x: Property<f64>,
pub scroll_pos_y: Property<f64>,
pub scroll_width: Property<Size>,
pub scroll_height: Property<Size>,
pub autosize: Property<bool>,
pub autosize_x: Property<Option<bool>>,
pub autosize_y: Property<Option<bool>>,
pub corner_radius: Property<f64>,
pub snap_positions_x: Property<Vec<Size>>,
pub snap_positions_y: Property<Vec<Size>>,
pub _clip_content: Property<bool>,
pub _projected_children_count: Property<usize>,
pub _resolved_scroll_width: Property<Size>,
pub _resolved_scroll_height: Property<Size>,
}Expand description
A scrolling container, which clips its bounds and offers platform-native scrolling on either or both of the horizontal and vertical axes.
Fields§
§scroll_pos_x: Property<f64>Horizontal scroll offset, in pixels.
scroll_pos_y: Property<f64>Vertical scroll offset, in pixels.
scroll_width: Property<Size>Width of the scrollable content pane.
scroll_height: Property<Size>Height of the scrollable content pane.
autosize: Property<bool>Automatically sizes the scroll pane on its default axes when possible.
For Scroller, the default autosized axis is y; x remains bound to
scroll_width unless autosize_x explicitly opts in.
autosize_x: Property<Option<bool>>Optional override for whether autosize manages the x axis.
autosize_y: Property<Option<bool>>Optional override for whether autosize manages the y axis.
corner_radius: Property<f64>Corner radius for the scroller clipping region, in pixels.
snap_positions_x: Property<Vec<Size>>Scroll snap anchors expressed in px/% along each axis. Web maps to CSS scroll-snap-type + scroll-snap-align; Apple chassis map these offsets to native scroll end-points while keeping engine scroll state authoritative.
snap_positions_y: Property<Vec<Size>>Vertical scroll snap anchors expressed in px/%.
_clip_content: Property<bool>§_projected_children_count: Property<usize>§_resolved_scroll_width: Property<Size>§_resolved_scroll_height: Property<Size>Implementations§
Trait Implementations§
Source§impl CoercionRules for Scroller
impl CoercionRules for Scroller
Source§impl<'de> Deserialize<'de> for Scroller
impl<'de> Deserialize<'de> for Scroller
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl HelperFunctions for Scroller
impl HelperFunctions for Scroller
Source§fn register_all_functions()
fn register_all_functions()
impl ImplToFromPaxAny for Scroller
Source§impl Interpolatable for Scroller
impl Interpolatable for Scroller
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl ToPaxValue for Scroller
impl ToPaxValue for Scroller
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
PaxValue.Auto Trait Implementations§
impl Freeze for Scroller
impl RefUnwindSafe for Scroller
impl Send for Scroller
impl Sync for Scroller
impl Unpin for Scroller
impl UnsafeUnpin for Scroller
impl UnwindSafe for Scroller
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Source§impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
Source§fn to_pax_any(self) -> PaxAny
fn to_pax_any(self) -> PaxAny
PaxAny.Source§fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
PaxAny.