pub struct MouseEvent { /* private fields */ }Expand description
A generic mouse event, that can be used to fire a key event in a
view by View::fire_mouse_event.
Implementations§
Source§impl MouseEvent
impl MouseEvent
Sourcepub fn new(
lib: Arc<Library>,
ty: MouseEventType,
x: i32,
y: i32,
button: MouseButton,
) -> Result<MouseEvent, CreationError>
pub fn new( lib: Arc<Library>, ty: MouseEventType, x: i32, y: i32, button: MouseButton, ) -> Result<MouseEvent, CreationError>
Create a new MouseEvent.
§Arguments
lib- The ultralight library.ty- The type of the event.x- The x-position of the mouse. relative to the view.y- The y-position of the mouse. relative to the view.button- The button that was pressed or released if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MouseEvent
impl RefUnwindSafe for MouseEvent
impl !Send for MouseEvent
impl !Sync for MouseEvent
impl Unpin for MouseEvent
impl UnwindSafe for MouseEvent
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