pub struct EditorContextState {Show 14 fields
pub active_editor: Option<ComponentId>,
pub selected_component: Option<ComponentId>,
pub active_grid_owner_transform: Option<ComponentId>,
pub selected_asset_payload: Option<ComponentId>,
pub focused_panel: Option<ComponentId>,
pub interaction_mode: EditorInteractionMode,
pub armature_visible: bool,
pub bounds_visible: bool,
pub last_scene_interacted_editor: Option<ComponentId>,
pub cursor_translation: Option<[f32; 3]>,
pub cursor_rotation: Option<[f32; 4]>,
pub cursor_frame: Option<SurfacePlacementFrame>,
pub pending_grid_placement_editor: Option<ComponentId>,
pub grid_preview_session: Option<PlacementPreviewSession>,
}Fields§
§active_editor: Option<ComponentId>§selected_component: Option<ComponentId>§active_grid_owner_transform: Option<ComponentId>§selected_asset_payload: Option<ComponentId>§focused_panel: Option<ComponentId>§interaction_mode: EditorInteractionMode§armature_visible: bool§bounds_visible: bool§last_scene_interacted_editor: Option<ComponentId>§cursor_translation: Option<[f32; 3]>§cursor_rotation: Option<[f32; 4]>§cursor_frame: Option<SurfacePlacementFrame>§pending_grid_placement_editor: Option<ComponentId>§grid_preview_session: Option<PlacementPreviewSession>Trait Implementations§
Source§impl Clone for EditorContextState
impl Clone for EditorContextState
Source§fn clone(&self) -> EditorContextState
fn clone(&self) -> EditorContextState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditorContextState
impl Debug for EditorContextState
Source§impl Default for EditorContextState
impl Default for EditorContextState
Source§impl PartialEq for EditorContextState
impl PartialEq for EditorContextState
impl StructuralPartialEq for EditorContextState
Auto Trait Implementations§
impl Freeze for EditorContextState
impl RefUnwindSafe for EditorContextState
impl Send for EditorContextState
impl Sync for EditorContextState
impl Unpin for EditorContextState
impl UnsafeUnpin for EditorContextState
impl UnwindSafe for EditorContextState
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> 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.