Struct rat_widget::tabbed::attached::AttachedTabs
source · pub struct AttachedTabs { /* private fields */ }Expand description
Embeds tabs in the Block.
If no block has been set, this will draw a block at the side of the tabs.
On the left/right side this will just draw a join to the tab-text. On the top/bottom side the tabs will be embedded in the border.
Implementations§
source§impl AttachedTabs
impl AttachedTabs
pub fn new() -> Self
sourcepub fn placement(self, placement: TabPlacement) -> Self
pub fn placement(self, placement: TabPlacement) -> Self
Placement of the tabs.
sourcepub fn join(self, border_type: BorderType) -> Self
pub fn join(self, border_type: BorderType) -> Self
Draw joins for this border-type.
Trait Implementations§
source§impl Debug for AttachedTabs
impl Debug for AttachedTabs
Auto Trait Implementations§
impl Freeze for AttachedTabs
impl RefUnwindSafe for AttachedTabs
impl Send for AttachedTabs
impl Sync for AttachedTabs
impl Unpin for AttachedTabs
impl UnwindSafe for AttachedTabs
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> 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