#[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: f32
X coordinate of the mouse point relative to the left edge of the element to mouse.
y: f32
Y coordinate of the mouse point relative to the upper edge of the element to mouse.
screenX: f32
X coordinate of the mouse point relative to the left edge of the screen.
screenY: f32
Y coordinate of the mouse point relative to the upper edge of the screen.
timestamp: i64
Timestamp of the current mouse event.
action: OH_NativeXComponent_MouseEventAction
Mouse 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 · Source§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§
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