Struct egui_gizmo::Gizmo

source ·
pub struct Gizmo { /* private fields */ }

Implementations§

Matrix that specifies translation and rotation of the gizmo in world space

Matrix that specifies translation and rotation of the viewport camera

Matrix that specifies projection of the viewport

Bounds of the viewport in pixels

Gizmo mode to use

Gizmo orientation to use

Whether snapping is enabled

Snap angle to use for rotation when snapping is enabled

Snap distance to use for translation when snapping is enabled

Snap distance to use for scaling when snapping is enabled

Visual configuration of the gizmo, such as colors and size

Draw and interact with the gizmo. This consumes the gizmo.

Returns the result of the interaction, which includes a transformed model matrix. None is returned when the gizmo is not active.

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 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.