pub struct ScrollEvent { /* private fields */ }Expand description
A generic scroll event, that can be used to fire a key event in a
view by View::fire_scroll_event.
Implementations§
Source§impl ScrollEvent
impl ScrollEvent
Sourcepub fn new(
lib: Arc<Library>,
ty: ScrollEventType,
delta_x: i32,
delta_y: i32,
) -> Result<ScrollEvent, CreationError>
pub fn new( lib: Arc<Library>, ty: ScrollEventType, delta_x: i32, delta_y: i32, ) -> Result<ScrollEvent, CreationError>
Create a new ScrollEvent.
§Arguments
lib- The ultralight library.ty- The type of the event.delta_x- The horizontal scroll amount.delta_y- The vertical scroll amount.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScrollEvent
impl RefUnwindSafe for ScrollEvent
impl !Send for ScrollEvent
impl !Sync for ScrollEvent
impl Unpin for ScrollEvent
impl UnwindSafe for ScrollEvent
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