pub struct TabsBarOptions {
pub show_trailing_actions: bool,
pub show_tab_close_affordance: bool,
pub show_scope_strip: bool,
}Expand description
Visibility switches for optional tab-bar affordances.
All three options default to true.
§Examples
use ailloli_ui_widgets::controls::TabsBarOptions;
let options = TabsBarOptions::default();
assert!(options.show_trailing_actions);
assert!(options.show_tab_close_affordance);
assert!(options.show_scope_strip);Fields§
§show_trailing_actions: boolPaint new-tab/history buttons and reserve their 62-pixel region.
show_tab_close_affordance: boolPaint an x label in each tab; hit geometry is returned regardless.
show_scope_strip: boolPaint the semantic scope strip and reserve its title inset.
Trait Implementations§
Source§impl Clone for TabsBarOptions
impl Clone for TabsBarOptions
Source§fn clone(&self) -> TabsBarOptions
fn clone(&self) -> TabsBarOptions
Returns a copy of the value. Read more
1.0.0 · 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 TabsBarOptions
impl Debug for TabsBarOptions
Source§impl Default for TabsBarOptions
impl Default for TabsBarOptions
impl Copy for TabsBarOptions
Auto Trait Implementations§
impl Freeze for TabsBarOptions
impl RefUnwindSafe for TabsBarOptions
impl Send for TabsBarOptions
impl Sync for TabsBarOptions
impl Unpin for TabsBarOptions
impl UnwindSafe for TabsBarOptions
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.