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.
unclipped_bounds: RectThe total bounds of all content, including overflowing items.
This is useful for OverflowBehavior::Visible or Scroll.
Implementations§
Source§impl OverflowInfo
impl OverflowInfo
pub 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 · 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 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