pub enum PaneKind {
Document(u64),
History,
AssemblyConstraints,
Bom,
WireHarness,
Pmi,
Scene,
Expressions,
}Expand description
One tile in the dock tree. A pure discriminant — every panel’s real state
lives on its own struct (a field of BrepApp), reached in pane_ui.
Variants§
Document(u64)
ONE OPEN MODEL’s 3D view, keyed by crate::document::Document::id.
These are the document tabs: they all live in a single Tabs container
— the DOCUMENT GROUP — whose tab bar IS the model switcher, so the pane
showing 3D views is tabbed by egui_tiles itself rather than carrying a
second hand-drawn strip inside it.
The id is process-unique and therefore meaningless in a RELOADED layout;
DockState::sync_document_panes renumbers whatever it finds onto the
live documents, which is what makes the persisted layout survive.
History
AssemblyConstraints
Bom
WireHarness
The wire-harness connection list (claimed by the Wire harness workbench).
Pmi
The PMI view tree (claimed by the PMI workbench).
Scene
Expressions
Implementations§
Source§impl PaneKind
impl PaneKind
Sourcepub const ALL: [PaneKind; 7] = Self::SIDE
pub const ALL: [PaneKind; 7] = Self::SIDE
The side panes an automation caller can name — Self::SIDE under a
public name, so describe_panes / show_pane enumerate the dock rather
than keeping a second list of it.
Sourcepub fn visible_under_workbench(self, wb: &str) -> bool
pub fn visible_under_workbench(self, wb: &str) -> bool
Self::visible_in under a public name, so show_pane can refuse a
pane the active workbench does not carry instead of no-op’ing.
Trait Implementations§
impl Copy for PaneKind
Source§impl<'de> Deserialize<'de> for PaneKind
impl<'de> Deserialize<'de> for PaneKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PaneKind
impl StructuralPartialEq for PaneKind
Auto Trait Implementations§
impl Freeze for PaneKind
impl RefUnwindSafe for PaneKind
impl Send for PaneKind
impl Sync for PaneKind
impl Unpin for PaneKind
impl UnsafeUnpin for PaneKind
impl UnwindSafe for PaneKind
Blanket Implementations§
impl<T> AsId for T
impl<T> AsIdSalt for T
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more