pub struct TransformGizmoSystem { /* private fields */ }Implementations§
Source§impl TransformGizmoSystem
impl TransformGizmoSystem
pub fn new() -> Self
pub fn set_editor_context_state( &mut self, editor_context_state: Arc<Mutex<EditorContextState>>, )
Sourcepub fn update_camera_scales(
&mut self,
world: &mut World,
visuals: &VisualWorld,
has_window_camera: bool,
) -> Vec<ComponentId>
pub fn update_camera_scales( &mut self, world: &mut World, visuals: &VisualWorld, has_window_camera: bool, ) -> Vec<ComponentId>
Update the ordinary settings transforms used by camera-specific gizmo anchors. Returns anchors whose effective world matrices must be propagated immediately.
Sourcepub fn install_scoped_handlers_for_gizmo(
&mut self,
rx: &mut RxWorld,
gizmo_root: ComponentId,
)
pub fn install_scoped_handlers_for_gizmo( &mut self, rx: &mut RxWorld, gizmo_root: ComponentId, )
Install per-gizmo scoped handlers rooted at the TransformGizmoComponent node.
Drag events are scoped to the hit renderable; because gizmo handle renderables live under the gizmo node, scoped handlers rooted at the gizmo will run for drag events on its handles.
Sourcepub fn register_transform_gizmo(
&mut self,
world: &mut World,
component: ComponentId,
emit: &mut dyn SignalEmitter,
)
pub fn register_transform_gizmo( &mut self, world: &mut World, component: ComponentId, emit: &mut dyn SignalEmitter, )
Spawn the 9-part gizmo visual subtree for a TransformGizmoComponent.
Contract: TransformGizmoComponent is expected to be attached under a TransformComponent.
pub fn tick_with_queue( &mut self, world: &mut World, _input: &InputState, emit: &mut dyn SignalEmitter, _rx: &mut RxWorld, )
Trait Implementations§
Source§impl Debug for TransformGizmoSystem
impl Debug for TransformGizmoSystem
Source§impl Default for TransformGizmoSystem
impl Default for TransformGizmoSystem
Source§fn default() -> TransformGizmoSystem
fn default() -> TransformGizmoSystem
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransformGizmoSystem
impl RefUnwindSafe for TransformGizmoSystem
impl Send for TransformGizmoSystem
impl Sync for TransformGizmoSystem
impl Unpin for TransformGizmoSystem
impl UnsafeUnpin for TransformGizmoSystem
impl UnwindSafe for TransformGizmoSystem
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
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.