pub struct GizmoConfig {Show 13 fields
pub view_matrix: RowMatrix4<f64>,
pub projection_matrix: RowMatrix4<f64>,
pub viewport: Rect,
pub modes: EnumSet<GizmoMode>,
pub mode_override: Option<GizmoMode>,
pub orientation: GizmoOrientation,
pub pivot_point: TransformPivotPoint,
pub snapping: bool,
pub snap_angle: f32,
pub snap_distance: f32,
pub snap_scale: f32,
pub visuals: GizmoVisuals,
pub pixels_per_point: f32,
}Expand description
Configuration of a gizmo.
Defines how the gizmo is drawn to the screen and how it can be interacted with.
Fields§
§view_matrix: RowMatrix4<f64>View matrix for the gizmo, aligning it with the camera’s viewpoint.
projection_matrix: RowMatrix4<f64>Projection matrix for the gizmo, determining how it is projected onto the screen.
viewport: RectScreen area where the gizmo is displayed.
modes: EnumSet<GizmoMode>The gizmo’s operation modes.
mode_override: Option<GizmoMode>If set, this mode is forced active and other modes are disabled
orientation: GizmoOrientationDetermines the gizmo’s orientation relative to global or local axes.
pivot_point: TransformPivotPointPivot point for transformations
snapping: boolToggles snapping to predefined increments during transformations for precision.
snap_angle: f32Angle increment for snapping rotations, in radians.
snap_distance: f32Distance increment for snapping translations.
snap_scale: f32Scale increment for snapping scalings.
visuals: GizmoVisualsVisual settings for the gizmo, affecting appearance and visibility.
pixels_per_point: f32Ratio of window’s physical size to logical size.
Trait Implementations§
Source§impl Clone for GizmoConfig
impl Clone for GizmoConfig
Source§fn clone(&self) -> GizmoConfig
fn clone(&self) -> GizmoConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more