pub struct DockSpec { /* private fields */ }Expand description
Responsive geometry policy for one dockable panel.
Implementations§
Source§impl DockSpec
impl DockSpec
Sourcepub const fn right(breakpoint: u16, panel_width: u16) -> Self
pub const fn right(breakpoint: u16, panel_width: u16) -> Self
Put a panel on the right, docking at breakpoint columns and using at
most panel_width columns.
Sourcepub const fn left(breakpoint: u16, panel_width: u16) -> Self
pub const fn left(breakpoint: u16, panel_width: u16) -> Self
Put a panel on the left, docking at breakpoint columns and using at
most panel_width columns.
Sourcepub const fn breakpoint(self) -> u16
pub const fn breakpoint(self) -> u16
Width at which a visible panel becomes docked instead of a drawer.
Sourcepub const fn panel_width(self) -> u16
pub const fn panel_width(self) -> u16
Preferred panel width. Resolution clamps it to at least one column and at most the available frame width.
Trait Implementations§
impl Copy for DockSpec
impl Eq for DockSpec
impl StructuralPartialEq for DockSpec
Auto Trait Implementations§
impl Freeze for DockSpec
impl RefUnwindSafe for DockSpec
impl Send for DockSpec
impl Sync for DockSpec
impl Unpin for DockSpec
impl UnsafeUnpin for DockSpec
impl UnwindSafe for DockSpec
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<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
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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