pub struct EditorSystem { /* private fields */ }Implementations§
Source§impl EditorSystem
impl EditorSystem
pub fn new() -> Self
Sourcepub fn install_scoped_handlers_for_editor(
&mut self,
rx: &mut RxWorld,
editor_root: ComponentId,
_panel_query_root: ComponentId,
editor_context_state: Arc<Mutex<EditorContextState>>,
)
pub fn install_scoped_handlers_for_editor( &mut self, rx: &mut RxWorld, editor_root: ComponentId, _panel_query_root: ComponentId, editor_context_state: Arc<Mutex<EditorContextState>>, )
Install gesture/picking handlers scoped to a specific editor root subtree.
This allows multiple EditorComponent subtrees, each with independent selection/gizmo state.
Sourcepub fn materialize_editor_raycastables(
&mut self,
world: &mut World,
emit: &mut dyn SignalEmitter,
editor_root: ComponentId,
)
pub fn materialize_editor_raycastables( &mut self, world: &mut World, emit: &mut dyn SignalEmitter, editor_root: ComponentId, )
Materialize editor-default pickability by wrapping each current immediate child of the
editor root in a single RaycastableComponent::enabled() ancestor, unless that subtree
root already explicitly opts in or out.
Trait Implementations§
Source§impl Debug for EditorSystem
impl Debug for EditorSystem
Source§impl Default for EditorSystem
impl Default for EditorSystem
Source§fn default() -> EditorSystem
fn default() -> EditorSystem
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EditorSystem
impl RefUnwindSafe for EditorSystem
impl Send for EditorSystem
impl Sync for EditorSystem
impl Unpin for EditorSystem
impl UnsafeUnpin for EditorSystem
impl UnwindSafe for EditorSystem
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.