pub struct TabGroupLayout {
pub rect: DockRect,
pub panels: Vec<String>,
pub active: usize,
}Expand description
One tab group placed on screen.
Fields§
§rect: DockRectArea assigned to the whole group, tab strip included.
panels: Vec<String>Panel ids in tab order.
active: usizeIndex of the visible panel.
Implementations§
Source§impl TabGroupLayout
impl TabGroupLayout
Sourcepub fn active_panel(&self) -> Option<&str>
pub fn active_panel(&self) -> Option<&str>
Id of the panel whose content should be drawn.
Trait Implementations§
Source§impl Clone for TabGroupLayout
impl Clone for TabGroupLayout
Source§fn clone(&self) -> TabGroupLayout
fn clone(&self) -> TabGroupLayout
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 TabGroupLayout
impl Debug for TabGroupLayout
Source§impl PartialEq for TabGroupLayout
impl PartialEq for TabGroupLayout
Source§fn eq(&self, other: &TabGroupLayout) -> bool
fn eq(&self, other: &TabGroupLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TabGroupLayout
Auto Trait Implementations§
impl Freeze for TabGroupLayout
impl RefUnwindSafe for TabGroupLayout
impl Send for TabGroupLayout
impl Sync for TabGroupLayout
impl Unpin for TabGroupLayout
impl UnsafeUnpin for TabGroupLayout
impl UnwindSafe for TabGroupLayout
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
Mutably borrows from an owned value. Read more