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: 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