Struct transform_gizmo::gizmo::GizmoInteraction
source · pub struct GizmoInteraction {
pub cursor_pos: (f32, f32),
pub drag_started: bool,
pub dragging: bool,
}
Expand description
Information needed for interacting with the gizmo.
Fields§
§cursor_pos: (f32, f32)
Current cursor position in window coordinates.
drag_started: bool
Whether dragging was started this frame. Usually this is set to true if the primary mouse button was just pressed.
dragging: bool
Whether the user is currently dragging. Usually this is set to true whenever the primary mouse button is being pressed.
Trait Implementations§
source§impl Clone for GizmoInteraction
impl Clone for GizmoInteraction
source§fn clone(&self) -> GizmoInteraction
fn clone(&self) -> GizmoInteraction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GizmoInteraction
impl Debug for GizmoInteraction
source§impl Default for GizmoInteraction
impl Default for GizmoInteraction
source§fn default() -> GizmoInteraction
fn default() -> GizmoInteraction
Returns the “default value” for a type. Read more
impl Copy for GizmoInteraction
Auto Trait Implementations§
impl Freeze for GizmoInteraction
impl RefUnwindSafe for GizmoInteraction
impl Send for GizmoInteraction
impl Sync for GizmoInteraction
impl Unpin for GizmoInteraction
impl UnwindSafe for GizmoInteraction
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