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