logo
pub struct BasicMouse {
    pub down: Signal1<MouseEvent>,
    pub move_: Signal1<MouseEvent>,
    pub up: Signal1<MouseEvent>,
    pub scroll: Signal1<f32>,
    /* private fields */
}

Fields

down: Signal1<MouseEvent>move_: Signal1<MouseEvent>up: Signal1<MouseEvent>scroll: Signal1<f32>

Implementations

Trait Implementations

Emitted when a mouse button is pressed down.

Emitted when the mouse cursor is moved while over the stage.

A velocity emitted when the mouse wheel or trackpad is scrolled. A positive value is an upward scroll, negative is a downward scroll. Typically, each scroll wheel “click” equates to 1 velocity. Read more

Emitted when a mouse button is released.

True if the environment has a mouse.

The last recorded X coordinate of the mouse.

The last recorded Y coordinate of the mouse.

The style of the mouse cursor.

@returns True if the given button is currently being held down.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.