pub struct Panels { /* private fields */ }Expand description
The declared panels, each owned.
Implementations§
Source§impl Panels
impl Panels
pub fn new() -> Self
pub fn declare( &mut self, owner: &OwnerId, spec: PanelSpec, ) -> Result<(), String>
pub fn get(&self, id: &str) -> Option<&PanelSpec>
Sourcepub fn owner(&self, id: &PanelId) -> Option<&OwnerId>
pub fn owner(&self, id: &PanelId) -> Option<&OwnerId>
Who declared a panel: the application’s own plugin, or a plugin of a library (egui-pop’s jobs centre).
Sourcepub fn owned(&self) -> Vec<(&PanelSpec, &OwnerId)>
pub fn owned(&self) -> Vec<(&PanelSpec, &OwnerId)>
Every panel with its owner, in declaration order.
pub fn remove_owner(&mut self, owner: &OwnerId) -> Vec<PanelId>
Sourcepub fn shell_commands(&self) -> Vec<(CommandId, String)>
pub fn shell_commands(&self) -> Vec<(CommandId, String)>
The commands the shell adds for each panel: focus and toggle, with their titles.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Panels
impl RefUnwindSafe for Panels
impl Send for Panels
impl Sync for Panels
impl Unpin for Panels
impl UnsafeUnpin for Panels
impl UnwindSafe for Panels
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