pub struct TextBounds {
pub left: i32,
pub top: i32,
pub right: i32,
pub bottom: i32,
}Expand description
Controls the visible area of the text. Any text outside of the visible area will be clipped.
Fields§
§left: i32The position of the left edge of the visible area.
top: i32The position of the top edge of the visible area.
right: i32The position of the right edge of the visible area.
bottom: i32The position of the bottom edge of the visible area.
Trait Implementations§
Source§impl Clone for TextBounds
impl Clone for TextBounds
Source§fn clone(&self) -> TextBounds
fn clone(&self) -> TextBounds
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 TextBounds
impl Debug for TextBounds
Source§impl Default for TextBounds
The default visible area doesn’t clip any text.
impl Default for TextBounds
The default visible area doesn’t clip any text.
Source§impl PartialEq for TextBounds
impl PartialEq for TextBounds
impl Copy for TextBounds
impl Eq for TextBounds
impl StructuralPartialEq for TextBounds
Auto Trait Implementations§
impl Freeze for TextBounds
impl RefUnwindSafe for TextBounds
impl Send for TextBounds
impl Sync for TextBounds
impl Unpin for TextBounds
impl UnwindSafe for TextBounds
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.