pub struct OverlayFeel {
pub window_drop_coverage: f32,
pub center_drop_coverage: f32,
pub fade_hold_time: f32,
pub max_preference_time: f32,
pub interact_expansion: f32,
pub zone_edge_coverage: f32,
pub zone_edges_below_tab_bar: bool,
pub zone_tab_bar_stack_band: f32,
pub drag_activation_distance: Vec2,
pub restore_band: f32,
}Expand description
Specifies the feel of the tab drop overlay, i.e. anything non-visual about the overlay.
Fields§
§window_drop_coverage: f32range is 0.0..=1.0.
center_drop_coverage: f32range is 0.0..=1.0.
fade_hold_time: f32The amount of time windows should stay faded despite not needing to, prevents quick mouse movements from causing flashing.
max_preference_time: f32Amount of time the overlay waits before dropping a preference it may have for a node.
interact_expansion: f32Units which the buttons interact area will be expanded by.
zone_edge_coverage: f32With OverlayType::Zones, how much of a leaf’s width (left and right) or height (top
and bottom) the band along each edge covers, in 0.0..=0.5: over a band, a dropped tab
splits the leaf on that side; over the rest, it joins the leaf’s tabs. The height is the
body’s, below the tab bar, with zone_edges_below_tab_bar.
See DropZone::in_leaf.
zone_edges_below_tab_bar: boolWith OverlayType::Zones, whether the edge bands
(zone_edge_coverage) are laid on the leaf’s body, below its
tab bar and the zone_tab_bar_stack_band, or on the whole
leaf, tab bar included. On the whole leaf, the top band of a compact leaf lies mostly under
its tab bar, leaving a thin strip of it right below the bar.
By Default it’s true; false, with a zone_tab_bar_stack_band of 0.0, gives the
geometry of egui_stack 0.25.12 and before.
zone_tab_bar_stack_band: f32With OverlayType::Zones, the height in points of a band right under a leaf’s tab bar
where a dropped tab joins the leaf’s tabs, as over the tab bar itself, whatever the edge
bands say: a tab aimed at the tab bar and released a little low does not split the leaf.
By Default it’s 8.0, a third of a default tab bar’s height.
drag_activation_distance: Vec2How far, in points, the pointer must move from where it was pressed on a tab (or on the
empty part of a tab bar) along x and along y before the tab (or the tab group) starts
being dragged; further along either axis, it drags.
egui takes a press for a click until the pointer moves further than its click distance
(egui::InputOptions::max_click_dist), so a distance at or below it starts the drag as
soon as the press is no longer a click. A larger distance leaves a range where the press
neither clicks nor drags, which can guard against moving a tab by accident.
By Default it’s 6.0 along both axes, egui’s default click distance.
restore_band: f32The breadth in points of a collapsed zone’s restore band, shown while a tab is dragged
(Fold::Collapse, DockSpace::bind):
a tab released on it brings the zone back. Bands on the same boundary stack, each this
wide.
By Default it’s 8.0.
Trait Implementations§
Source§impl Clone for OverlayFeel
impl Clone for OverlayFeel
Source§impl Debug for OverlayFeel
impl Debug for OverlayFeel
Auto Trait Implementations§
impl Forget for OverlayFeel
impl Freeze for OverlayFeel
impl Move for OverlayFeel
impl RefUnwindSafe for OverlayFeel
impl Send for OverlayFeel
impl Sync for OverlayFeel
impl Unpin for OverlayFeel
impl UnsafeUnpin for OverlayFeel
impl UnwindSafe for OverlayFeel
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
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> 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