#[repr(C)]pub struct OH_NativeXComponent_MouseEvent {
pub x: f32,
pub y: f32,
pub screenX: f32,
pub screenY: f32,
pub timestamp: i64,
pub action: OH_NativeXComponent_MouseEventAction,
pub button: OH_NativeXComponent_MouseEventButton,
}Expand description
Represents the mouse event information.
Available since API-level: 9
Version: 1.0
Fields§
§x: f32X coordinate of the mouse point relative to the left edge of the element to mouse.
y: f32Y coordinate of the mouse point relative to the upper edge of the element to mouse.
screenX: f32X coordinate of the mouse point relative to the left edge of the screen.
screenY: f32Y coordinate of the mouse point relative to the upper edge of the screen.
timestamp: i64Timestamp of the current mouse event.
action: OH_NativeXComponent_MouseEventActionMouse event action.
Mouse event button.
Trait Implementations§
Source§impl Clone for OH_NativeXComponent_MouseEvent
impl Clone for OH_NativeXComponent_MouseEvent
Source§fn clone(&self) -> OH_NativeXComponent_MouseEvent
fn clone(&self) -> OH_NativeXComponent_MouseEvent
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OH_NativeXComponent_MouseEvent
Auto Trait Implementations§
impl Freeze for OH_NativeXComponent_MouseEvent
impl RefUnwindSafe for OH_NativeXComponent_MouseEvent
impl Send for OH_NativeXComponent_MouseEvent
impl Sync for OH_NativeXComponent_MouseEvent
impl Unpin for OH_NativeXComponent_MouseEvent
impl UnwindSafe for OH_NativeXComponent_MouseEvent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)