pub enum TextOverflow {
IsOverflowing(f32),
InBounds(f32),
}
Expand description
Whether the text overflows the parent rectangle, and if yes, by how many pixels, necessary for determining if / how to show a scrollbar + aligning / centering text.
Variants§
IsOverflowing(f32)
Text is overflowing, by how much (in pixels)?
InBounds(f32)
Text is in bounds, how much space is available until the edge of the rectangle (in pixels)?
Trait Implementations§
Source§impl Clone for TextOverflow
impl Clone for TextOverflow
Source§fn clone(&self) -> TextOverflow
fn clone(&self) -> TextOverflow
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 TextOverflow
impl Debug for TextOverflow
Source§impl PartialEq for TextOverflow
impl PartialEq for TextOverflow
Source§impl PartialOrd for TextOverflow
impl PartialOrd for TextOverflow
impl Copy for TextOverflow
impl StructuralPartialEq for TextOverflow
Auto Trait Implementations§
impl Freeze for TextOverflow
impl RefUnwindSafe for TextOverflow
impl Send for TextOverflow
impl Sync for TextOverflow
impl Unpin for TextOverflow
impl UnwindSafe for TextOverflow
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)