Struct egui_gizmo::GizmoVisuals
source · 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: Color32
Color of the x axis
y_color: Color32
Color of the y axis
z_color: Color32
Color of the z axis
s_color: Color32
Color of the forward axis
inactive_alpha: f32
Alpha of the gizmo color when inactive
highlight_alpha: f32
Alpha 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: f32
Width (thickness) of the gizmo strokes
gizmo_size: f32
Gizmo 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GizmoVisuals
impl Debug for GizmoVisuals
source§impl Default for GizmoVisuals
impl Default for GizmoVisuals
impl Copy 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 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