#[repr(u32)]pub enum MouseEventVirtualKeys {
None = 0,
LeftButton = 1,
RightButton = 2,
Shift = 4,
Control = 8,
MiddleButton = 16,
XButton1 = 32,
XButton2 = 64,
}Expand description
Mouse event virtual keys associated with a COREWEBVIEW2_MOUSE_EVENT_KIND for SendMouseInput. These values can be combined into a bit flag if more than one virtual key is pressed for the event. The values of this enum align with the matching MK_* mouse keys.
Variants§
None = 0
No additional keys pressed.
LeftButton = 1
Left mouse button is down, MK_LBUTTON.
RightButton = 2
Right mouse button is down, MK_RBUTTON.
Shift = 4
SHIFT key is down, MK_SHIFT.
Control = 8
CTRL key is down, MK_CONTROL.
MiddleButton = 16
Middle mouse button is down, MK_MBUTTON.
XButton1 = 32
First X button is down, MK_XBUTTON1
XButton2 = 64
Second X button is down, MK_XBUTTON2
Trait Implementations§
Source§impl Clone for MouseEventVirtualKeys
impl Clone for MouseEventVirtualKeys
Source§fn clone(&self) -> MouseEventVirtualKeys
fn clone(&self) -> MouseEventVirtualKeys
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 moreSource§impl Debug for MouseEventVirtualKeys
impl Debug for MouseEventVirtualKeys
Source§impl PartialEq for MouseEventVirtualKeys
impl PartialEq for MouseEventVirtualKeys
impl Copy for MouseEventVirtualKeys
impl Eq for MouseEventVirtualKeys
impl StructuralPartialEq for MouseEventVirtualKeys
Auto Trait Implementations§
impl Freeze for MouseEventVirtualKeys
impl RefUnwindSafe for MouseEventVirtualKeys
impl Send for MouseEventVirtualKeys
impl Sync for MouseEventVirtualKeys
impl Unpin for MouseEventVirtualKeys
impl UnwindSafe for MouseEventVirtualKeys
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