pub struct GizmoVisuals {
pub x_color: Color32,
pub y_color: Color32,
pub z_color: Color32,
pub s_color: Color32,
pub inactive_alpha: f32,
pub highlight_alpha: f32,
pub highlight_color: Option<Color32>,
pub stroke_width: f32,
pub gizmo_size: f32,
}Expand description
Controls the visual style of the gizmo
Fields§
§x_color: Color32Color of the x axis
y_color: Color32Color of the y axis
z_color: Color32Color of the z axis
s_color: Color32Color of the forward axis
inactive_alpha: f32Alpha of the gizmo color when inactive
highlight_alpha: f32Alpha of the gizmo color when highlighted/active
highlight_color: Option<Color32>Color to use for highlighted and active axes. By default, the axis color is used with highlight_alpha
stroke_width: f32Width (thickness) of the gizmo strokes
gizmo_size: f32Gizmo size in pixels
Trait Implementations§
Source§impl Clone for GizmoVisuals
impl Clone for GizmoVisuals
Source§fn clone(&self) -> GizmoVisuals
fn clone(&self) -> GizmoVisuals
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GizmoVisuals
Source§impl Debug for GizmoVisuals
impl Debug for GizmoVisuals
Auto Trait Implementations§
impl Freeze for GizmoVisuals
impl RefUnwindSafe for GizmoVisuals
impl Send for GizmoVisuals
impl Sync for GizmoVisuals
impl Unpin for GizmoVisuals
impl UnsafeUnpin for GizmoVisuals
impl UnwindSafe for GizmoVisuals
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