pub struct TabBarChromeConfig {
pub content: WidgetId,
pub orientation: TabBarOrientation,
pub show_separator: bool,
pub surface_role: Option<ColorProp>,
pub drop_indicator: Signal<Option<f32>>,
}Expand description
Inputs for the bar-level chrome — the surface the headers row, pinned strip, scroll arrows, and slots all sit on.
Fields§
§content: WidgetIdThe composed bar content (leading slot → pinned strip → scroll arrows → headers row → overflow dropdown → trailing slot). The style wraps this and returns the bar’s root.
orientation: TabBarOrientation§show_separator: boolWhether to draw the 1 px separator along the content-pane edge (bottom for horizontal bars, trailing for vertical bars).
surface_role: Option<ColorProp>Optional app-set backdrop fill spanning the whole bar. None
leaves the bar transparent.
drop_indicator: Signal<Option<f32>>Drag-reorder drop-indicator position — layout-axis offset in
bar-local coords. None when no reorder drag is in progress
over the bar.
Trait Implementations§
Source§impl Clone for TabBarChromeConfig
impl Clone for TabBarChromeConfig
Source§fn clone(&self) -> TabBarChromeConfig
fn clone(&self) -> TabBarChromeConfig
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for TabBarChromeConfig
impl !Send for TabBarChromeConfig
impl !Sync for TabBarChromeConfig
impl !UnwindSafe for TabBarChromeConfig
impl Freeze for TabBarChromeConfig
impl Unpin for TabBarChromeConfig
impl UnsafeUnpin for TabBarChromeConfig
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