pub struct ScrollData {
pub first_index: i32,
pub last_index: i32,
pub center_index: i32,
pub offset_x: f32,
pub offset_y: f32,
pub has_offset: bool,
}Expand description
Data for a scroll event (list/grid/water-flow/scroll).
Fields§
§first_index: i32First visible item index (scroll-index events).
last_index: i32Last visible item index (scroll-index events).
center_index: i32Center visible item index (list only).
offset_x: f32Horizontal movement for this scroll frame, in vp.
offset_y: f32Vertical movement for this scroll frame, in vp.
has_offset: boolWhether this event carried offsets instead of visible indices.
Trait Implementations§
Source§impl Clone for ScrollData
impl Clone for ScrollData
impl Copy for ScrollData
Source§impl Debug for ScrollData
impl Debug for ScrollData
Source§impl Default for ScrollData
impl Default for ScrollData
Source§impl From<&ArkEventData> for ScrollData
impl From<&ArkEventData> for ScrollData
Source§fn from(data: &ArkEventData) -> Self
fn from(data: &ArkEventData) -> Self
Converts to this type from the input type.
Source§impl From<ArkEventData> for ScrollData
impl From<ArkEventData> for ScrollData
Source§fn from(data: ArkEventData) -> Self
fn from(data: ArkEventData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScrollData
impl RefUnwindSafe for ScrollData
impl Send for ScrollData
impl Sync for ScrollData
impl Unpin for ScrollData
impl UnsafeUnpin for ScrollData
impl UnwindSafe for ScrollData
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.