[][src]Struct opencv::viz::MouseEvent

pub struct MouseEvent { /* fields omitted */ }

This class represents a mouse event.

Implementations

impl MouseEvent[src]

impl MouseEvent[src]

pub fn new(
    typ: MouseEvent_Type,
    button: MouseEvent_MouseButton,
    pointer: Point,
    modifiers: i32
) -> Result<MouseEvent>
[src]

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]

impl Drop for MouseEvent[src]

impl MouseEventTrait for MouseEvent[src]

impl Send for MouseEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.