pub struct BasicPointer {
pub down: Signal1<PointerEvent>,
pub move_: Signal1<PointerEvent>,
pub up: Signal1<PointerEvent>,
/* private fields */
}
Fields
down: Signal1<PointerEvent>
move_: Signal1<PointerEvent>
up: Signal1<PointerEvent>
Implementations
sourceimpl BasicPointer
impl BasicPointer
pub fn new(x: f32, y: f32, is_down: bool) -> Self
sourcepub fn submit_down(&mut self, view_x: f32, view_y: f32, source: EventSource)
pub fn submit_down(&mut self, view_x: f32, view_y: f32, source: EventSource)
Called by the platform to handle a down event.
sourcepub fn submit_move(&mut self, view_x: f32, view_y: f32, source: EventSource)
pub fn submit_move(&mut self, view_x: f32, view_y: f32, source: EventSource)
Called by the platform to handle a move event.
sourcepub fn submit_up(&mut self, view_x: f32, view_y: f32, source: EventSource)
pub fn submit_up(&mut self, view_x: f32, view_y: f32, source: EventSource)
Called by the platform to handle an up event.
Trait Implementations
sourceimpl PointerSystem for BasicPointer
impl PointerSystem for BasicPointer
sourcefn down(&self) -> &Signal1<PointerEvent>
fn down(&self) -> &Signal1<PointerEvent>
Emitted when the pointing device is pressed down (when the mouse button is held or a finger is pressed to the screen). Read more
sourcefn move_signal(&self) -> &Signal1<PointerEvent>
fn move_signal(&self) -> &Signal1<PointerEvent>
Emitted when the pointing device moves while over the stage.
sourcefn up_signal(&self) -> &Signal1<PointerEvent>
fn up_signal(&self) -> &Signal1<PointerEvent>
Emitted when the pointing device is released (when the mouse button is released or the finger is lifted from the screen). Read more
sourcefn is_supported(&self) -> bool
fn is_supported(&self) -> bool
True if the environment has a pointing device.
Auto Trait Implementations
impl !RefUnwindSafe for BasicPointer
impl !Send for BasicPointer
impl !Sync for BasicPointer
impl Unpin for BasicPointer
impl !UnwindSafe for BasicPointer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.