Struct rat_widget::tabbed::attached::AttachedTabs
source · pub struct AttachedTabs { /* private fields */ }Expand description
Embedded 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 link 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 border_type(self, border_type: BorderType) -> Self
pub fn border_type(self, border_type: BorderType) -> Self
Border type used as background for the tabs.
This is only used if the Tabbed itself has no Block set.
sourcepub fn link(self, border_type: BorderType) -> Self
pub fn link(self, border_type: BorderType) -> Self
Link a left/right placed tab to the given BorderType.
sourcepub fn join(self, border: BorderType) -> Self
pub fn join(self, border: BorderType) -> Self
Draws a join between the tabbed and the given border type. This is only used if the Tabbed itself has no Block set.
sourcepub fn join_0(self, border: BorderType) -> Self
pub fn join_0(self, border: BorderType) -> Self
Draws a join between the tabbed and the given border type. This is used for the top/left side of the tab. This is only used if the Tabbed itself has no Block set.
sourcepub fn join_1(self, border: BorderType) -> Self
pub fn join_1(self, border: BorderType) -> Self
Draws a join between the tabbed and the given border type. This is used for the bottom/right side of the tab. This is only used if the Tabbed itself has no Block set.
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
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>
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>
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