pub struct GestureSystem {
pub drag_update_policy: DragUpdatePolicy,
/* private fields */
}Fields§
§drag_update_policy: DragUpdatePolicyImplementations§
Source§impl GestureSystem
impl GestureSystem
pub fn begin_frame(&mut self)
Sourcepub fn install_handlers(&mut self, rx: &mut RxWorld)
pub fn install_handlers(&mut self, rx: &mut RxWorld)
Install drain-point handlers into RxWorld.
Sourcepub fn state(&self) -> &GestureState
pub fn state(&self) -> &GestureState
Returns the gesture state for the first active pointer, for callers that only care about a single pointer (e.g. editor gizmos, cursor 3D).
pub fn set_drag_update_policy(&mut self, policy: DragUpdatePolicy)
Sourcepub fn tick_with_rx(
&mut self,
visuals: &VisualWorld,
input: &InputState,
activations: &PointerActivations,
pointer_system: &PointerSystem,
rx: &mut RxWorld,
)
pub fn tick_with_rx( &mut self, visuals: &VisualWorld, input: &InputState, activations: &PointerActivations, pointer_system: &PointerSystem, rx: &mut RxWorld, )
Consume RayIntersected signals and PointerActivations to emit DragStart/DragMove/DragEnd/Click.
input is still passed for cursor_pos (screen-space fields on desktop pointer events).
activations drives press/down/release for each pointer regardless of input source.
Trait Implementations§
Source§impl Debug for GestureSystem
impl Debug for GestureSystem
Auto Trait Implementations§
impl Freeze for GestureSystem
impl RefUnwindSafe for GestureSystem
impl Send for GestureSystem
impl Sync for GestureSystem
impl Unpin for GestureSystem
impl UnsafeUnpin for GestureSystem
impl UnwindSafe for GestureSystem
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.