Struct egui_gizmo::Gizmo
source · pub struct Gizmo { /* private fields */ }
Implementations
sourceimpl Gizmo
impl Gizmo
pub fn new(id_source: impl Hash) -> Self
sourcepub fn model_matrix(self, model_matrix: impl Into<[[f32; 4]; 4]>) -> Self
pub fn model_matrix(self, model_matrix: impl Into<[[f32; 4]; 4]>) -> Self
Matrix that specifies translation and rotation of the gizmo in world space
sourcepub fn view_matrix(self, view_matrix: impl Into<[[f32; 4]; 4]>) -> Self
pub fn view_matrix(self, view_matrix: impl Into<[[f32; 4]; 4]>) -> Self
Matrix that specifies translation and rotation of the viewport camera
sourcepub fn projection_matrix(
self,
projection_matrix: impl Into<[[f32; 4]; 4]>
) -> Self
pub fn projection_matrix(
self,
projection_matrix: impl Into<[[f32; 4]; 4]>
) -> Self
Matrix that specifies projection of the viewport
sourcepub fn orientation(self, orientation: GizmoOrientation) -> Self
pub fn orientation(self, orientation: GizmoOrientation) -> Self
Gizmo orientation to use
sourcepub fn snap_angle(self, snap_angle: f32) -> Self
pub fn snap_angle(self, snap_angle: f32) -> Self
Snap angle to use for rotation when snapping is enabled
sourcepub fn snap_distance(self, snap_distance: f32) -> Self
pub fn snap_distance(self, snap_distance: f32) -> Self
Snap distance to use for translation when snapping is enabled
sourcepub fn snap_scale(self, snap_scale: f32) -> Self
pub fn snap_scale(self, snap_scale: f32) -> Self
Snap distance to use for scaling when snapping is enabled
sourcepub fn visuals(self, visuals: GizmoVisuals) -> Self
pub fn visuals(self, visuals: GizmoVisuals) -> Self
Visual configuration of the gizmo, such as colors and size
Auto Trait Implementations
impl RefUnwindSafe for Gizmo
impl Send for Gizmo
impl Sync for Gizmo
impl Unpin for Gizmo
impl UnwindSafe for Gizmo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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