pub struct ArcballControls {
pub enabled: bool,
/* private fields */
}Fields§
§enabled: boolImplementations§
Source§impl ArcballControls
impl ArcballControls
pub fn new() -> Self
pub fn active_gesture(&self) -> Gesture
Sourcepub fn pointer_down(&mut self, x: f64, y: f64, button: i32) -> bool
pub fn pointer_down(&mut self, x: f64, y: f64, button: i32) -> bool
Begin a gesture. Returns true when the pointer is captured for camera interaction.
Sourcepub fn pointer_move(&mut self, camera: &mut ViewCamera, x: f64, y: f64) -> bool
pub fn pointer_move(&mut self, camera: &mut ViewCamera, x: f64, y: f64) -> bool
Advance the active gesture; mutates the camera. Returns true when the camera changed (the dirty signal).
Sourcepub fn pointer_up(&mut self) -> bool
pub fn pointer_up(&mut self) -> bool
End the gesture. Returns true if one was active.
Trait Implementations§
Source§impl Debug for ArcballControls
impl Debug for ArcballControls
Source§impl Default for ArcballControls
impl Default for ArcballControls
Source§fn default() -> ArcballControls
fn default() -> ArcballControls
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArcballControls
impl RefUnwindSafe for ArcballControls
impl Send for ArcballControls
impl Sync for ArcballControls
impl Unpin for ArcballControls
impl UnsafeUnpin for ArcballControls
impl UnwindSafe for ArcballControls
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more