pub struct Scroller {
pub scroll_pos_x: Property<f64>,
pub scroll_pos_y: Property<f64>,
pub scroll_width: Property<Size>,
pub scroll_height: Property<Size>,
pub _clip_content: Property<bool>,
pub _platform_params: Property<PlatformSpecificScrollParams>,
pub _momentum_x: Property<f64>,
pub _momentum_y: Property<f64>,
pub _damping: Property<f64>,
pub _slot_children_count: Property<usize>,
}Expand description
A scrolling container for arbitrary content.
Fields§
§scroll_pos_x: Property<f64>§scroll_pos_y: Property<f64>§scroll_width: Property<Size>§scroll_height: Property<Size>§_clip_content: Property<bool>§_platform_params: Property<PlatformSpecificScrollParams>§_momentum_x: Property<f64>§_momentum_y: Property<f64>§_damping: Property<f64>§_slot_children_count: Property<usize>Implementations§
source§impl Scroller
impl Scroller
pub fn on_mount(&mut self, ctx: &NodeContext)
pub fn update(&mut self, ctx: &NodeContext)
pub fn add_position(&self, ctx: &NodeContext, dx: f64, dy: f64)
pub fn add_momentum(&self, ddx: f64, ddy: f64)
pub fn process_new_touch_pos( &self, ctx: &NodeContext, x: f64, y: f64, ident: i64, )
pub fn handle_wheel(&mut self, ctx: &NodeContext, args: Event<Wheel>)
pub fn touch_move(&mut self, ctx: &NodeContext, args: Event<TouchMove>)
pub fn touch_start(&mut self, _ctx: &NodeContext, args: Event<TouchStart>)
pub fn touch_end(&mut self, ctx: &NodeContext, args: Event<TouchEnd>)
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HelperFunctions for Scroller
impl HelperFunctions for Scroller
source§impl Interpolatable for Scroller
impl Interpolatable for Scroller
fn interpolate(&self, _other: &Self, _t: f64) -> Self
source§impl ToPaxValue for Scroller
impl ToPaxValue for Scroller
fn to_pax_value(self) -> PaxValue
impl ImplToFromPaxAny for Scroller
Auto Trait Implementations§
impl Freeze for Scroller
impl RefUnwindSafe for Scroller
impl Send for Scroller
impl Sync for Scroller
impl Unpin 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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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
Performs the conversion.