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 screen direction 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 more