pub struct TabIndicatorLayout {
pub selected: SharedString,
pub bounds: Bounds<Pixels>,
pub tab_bounds: Bounds<Pixels>,
pub content_width: Pixels,
pub color: Hsla,
pub direction: Direction,
}Expand description
Geometry and tint supplied to a decorative custom indicator.
Fields§
§selected: SharedStringID of the currently selected tab.
bounds: Bounds<Pixels>Resolved bounds of the indicator within the tab strip.
tab_bounds: Bounds<Pixels>Bounds of the selected tab cell within the tab strip.
content_width: PixelsMeasured width of the selected tab’s content.
color: HslaResolved indicator tint color.
direction: DirectionActive layout direction from the window theme.
Trait Implementations§
Source§impl Clone for TabIndicatorLayout
impl Clone for TabIndicatorLayout
Source§fn clone(&self) -> TabIndicatorLayout
fn clone(&self) -> TabIndicatorLayout
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 TabIndicatorLayout
impl Debug for TabIndicatorLayout
Source§impl PartialEq for TabIndicatorLayout
impl PartialEq for TabIndicatorLayout
impl StructuralPartialEq for TabIndicatorLayout
Auto Trait Implementations§
impl Forget for TabIndicatorLayout
impl Freeze for TabIndicatorLayout
impl Move for TabIndicatorLayout
impl RefUnwindSafe for TabIndicatorLayout
impl Send for TabIndicatorLayout
impl Sync for TabIndicatorLayout
impl Unpin for TabIndicatorLayout
impl UnsafeUnpin for TabIndicatorLayout
impl UnwindSafe for TabIndicatorLayout
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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