pub enum PanelLocation {
TopBar,
Spine,
Left,
Right,
Bottom,
StatusBar,
Center,
Floating(i32),
}Expand description
Where a panel is placed in the editor dock layout.
Slots are filled by panels registered with the EditorShell.
The shell is responsible for laying them out — the panel only needs to know
which slot it lives in.
Variants§
TopBar
Top fixed-height strip — non-resizable. Multiple TopBar panels stack
vertically in registration order. Heights come from
EditorPanel::preferred_size.
Spine
Left fixed-width strip — non-resizable. Used for vertical mode
switchers / “spines”. Width comes from EditorPanel::preferred_size.
Left
Resizable left sidebar (e.g. Scene Tree / Hierarchy). Default width
comes from EditorPanel::preferred_size when set.
Right
Resizable right sidebar (e.g. Inspector / Properties).
Bottom
Resizable bottom strip (e.g. Console, Asset Browser). Panels sharing this slot are displayed as tabs.
StatusBar
Bottom fixed-height strip — non-resizable. Sits below the resizable
Bottom slot. Used for status bars. Height comes from
EditorPanel::preferred_size.
Center
Central area (e.g. 3D Viewport).
Floating(i32)
Floating overlay rendered on top of the dock. Inner i32 is the
z-order — higher values draw on top. Used for command palettes,
modal dialogs, etc.
Trait Implementations§
Source§impl Clone for PanelLocation
impl Clone for PanelLocation
Source§fn clone(&self) -> PanelLocation
fn clone(&self) -> PanelLocation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PanelLocation
impl Debug for PanelLocation
Source§impl Hash for PanelLocation
impl Hash for PanelLocation
Source§impl PartialEq for PanelLocation
impl PartialEq for PanelLocation
Source§fn eq(&self, other: &PanelLocation) -> bool
fn eq(&self, other: &PanelLocation) -> bool
self and other values to be equal, and is used by ==.impl Copy for PanelLocation
impl Eq for PanelLocation
impl StructuralPartialEq for PanelLocation
Auto Trait Implementations§
impl Freeze for PanelLocation
impl RefUnwindSafe for PanelLocation
impl Send for PanelLocation
impl Sync for PanelLocation
impl Unpin for PanelLocation
impl UnsafeUnpin for PanelLocation
impl UnwindSafe for PanelLocation
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.