[−][src]Struct opencv::viz::MouseEvent
This class represents a mouse event.
Implementations
impl MouseEvent
[src]
pub fn as_raw_MouseEvent(&self) -> *const c_void
[src]
pub fn as_raw_mut_MouseEvent(&mut self) -> *mut c_void
[src]
impl MouseEvent
[src]
pub fn new(
typ: MouseEvent_Type,
button: MouseEvent_MouseButton,
pointer: Point,
modifiers: i32
) -> Result<MouseEvent>
[src]
typ: MouseEvent_Type,
button: MouseEvent_MouseButton,
pointer: Point,
modifiers: i32
) -> Result<MouseEvent>
Constructs a MouseEvent.
Parameters
- type: Type of the event. This can be MouseMove, MouseButtonPress, MouseButtonRelease, MouseScrollDown, MouseScrollUp, MouseDblClick.
- button: Mouse button. This can be NoButton, LeftButton, MiddleButton, RightButton, VScroll.
- pointer: Position of the event.
- modifiers: Signals if alt, ctrl or shift are pressed or their combination.
Trait Implementations
impl Boxed for MouseEvent
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for MouseEvent
[src]
impl MouseEventTrait for MouseEvent
[src]
fn as_raw_MouseEvent(&self) -> *const c_void
[src]
fn as_raw_mut_MouseEvent(&mut self) -> *mut c_void
[src]
fn typ(&self) -> MouseEvent_Type
[src]
fn set_type(&mut self, val: MouseEvent_Type)
[src]
fn button(&self) -> MouseEvent_MouseButton
[src]
fn set_button(&mut self, val: MouseEvent_MouseButton)
[src]
fn pointer(&self) -> Point
[src]
fn set_pointer(&mut self, val: Point)
[src]
fn modifiers(&self) -> i32
[src]
fn set_modifiers(&mut self, val: i32)
[src]
impl Send for MouseEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for MouseEvent
impl !Sync for MouseEvent
impl Unpin for MouseEvent
impl UnwindSafe for MouseEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,