pub struct SplineEditorUIState {
pub active_tool: SplineTool,
pub drag_start: Option<Vec3>,
pub drag_current: Option<Vec3>,
pub hover_t: f32,
pub hover_position: Vec3,
pub show_tangent_handles: bool,
pub tangent_handle_scale: f32,
pub tangent_mirror: bool,
pub show_weights: bool,
pub edit_mode: SplineEditMode,
pub snap_angle: f32,
pub snap_angle_enabled: bool,
}Fields§
§active_tool: SplineTool§drag_start: Option<Vec3>§drag_current: Option<Vec3>§hover_t: f32§hover_position: Vec3§show_tangent_handles: bool§tangent_handle_scale: f32§tangent_mirror: bool§show_weights: bool§edit_mode: SplineEditMode§snap_angle: f32§snap_angle_enabled: boolImplementations§
Source§impl SplineEditorUIState
impl SplineEditorUIState
pub fn new() -> Self
pub fn snap_tangent_to_angle(&self, tangent: Vec3) -> Vec3
pub fn mirror_tangent(&self, tangent: Vec3) -> Vec3
pub fn drag_delta(&self) -> Vec3
Trait Implementations§
Source§impl Clone for SplineEditorUIState
impl Clone for SplineEditorUIState
Auto Trait Implementations§
impl Freeze for SplineEditorUIState
impl RefUnwindSafe for SplineEditorUIState
impl Send for SplineEditorUIState
impl Sync for SplineEditorUIState
impl Unpin for SplineEditorUIState
impl UnsafeUnpin for SplineEditorUIState
impl UnwindSafe for SplineEditorUIState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.