pub struct TabsControls {
pub new_tab_rect: Rect,
pub history_rect: Rect,
pub can_create_path_tab: bool,
}Expand description
Hit geometry and capability metadata for trailing tab actions.
When trailing actions are hidden, both rectangles are the zero rectangle.
can_create_path_tab is returned unchanged but does not alter painting.
§Examples
use ailloli_ui_core::Rect;
use ailloli_ui_widgets::controls::tabs::TabsControls;
let controls = TabsControls {
new_tab_rect: Rect::new(8.0, 4.0, 28.0, 28.0),
history_rect: Rect::new(42.0, 4.0, 28.0, 28.0),
can_create_path_tab: true,
};
assert!(controls.can_create_path_tab);Fields§
§new_tab_rect: RectNew-tab button rectangle in the same coordinate space as the input bar.
history_rect: RectHistory button rectangle in the same coordinate space as the input bar.
can_create_path_tab: boolCaller-supplied permission for path-tab creation; not a disabled style.
Trait Implementations§
Source§impl Clone for TabsControls
impl Clone for TabsControls
Source§fn clone(&self) -> TabsControls
fn clone(&self) -> TabsControls
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 TabsControls
impl Debug for TabsControls
impl Copy for TabsControls
Auto Trait Implementations§
impl Freeze for TabsControls
impl RefUnwindSafe for TabsControls
impl Send for TabsControls
impl Sync for TabsControls
impl Unpin for TabsControls
impl UnwindSafe for TabsControls
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.