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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.