pub struct OverflowInfo {
pub overflow_items: Vec<ShapedItem>,
pub unclipped_bounds: Rect,
}Expand description
Stores information about content that exceeded the available layout space.
Fields§
§overflow_items: Vec<ShapedItem>The items that did not fit within the constraints.
Currently always empty: the positioners place every item (visual overflow
is clipped at paint time) rather than dropping content, so nothing is ever
recorded here. The window.rs incremental-patch guard reads
overflow_items.is_empty() to stay future-proof against a positioning path
that does drop items. TODO(superplan): populate this if such a path lands.
unclipped_bounds: RectThe total bounds of all positioned content, including any that overflows
the constraints. Populated by both positioners (greedy + Knuth-Plass) from
UnifiedLayout::bounds; useful for OverflowBehavior::Visible/Scroll.
Implementations§
Source§impl OverflowInfo
impl OverflowInfo
pub const fn has_overflow(&self) -> bool
Trait Implementations§
Source§impl Clone for OverflowInfo
impl Clone for OverflowInfo
Source§fn clone(&self) -> OverflowInfo
fn clone(&self) -> OverflowInfo
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 OverflowInfo
impl Debug for OverflowInfo
Source§impl Default for OverflowInfo
impl Default for OverflowInfo
Source§fn default() -> OverflowInfo
fn default() -> OverflowInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OverflowInfo
impl RefUnwindSafe for OverflowInfo
impl Send for OverflowInfo
impl Sync for OverflowInfo
impl Unpin for OverflowInfo
impl UnsafeUnpin for OverflowInfo
impl UnwindSafe for OverflowInfo
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,
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