pub struct TextBox {
pub left: f64,
pub top: f64,
pub right: f64,
pub bottom: f64,
pub direction: TextDirection,
}Expand description
A rectangle enclosing a run of text.
This is similar to Rect but includes an inherent TextDirection.
Fields§
§left: f64The left edge of the text box, relative to the parent widget.
top: f64The top edge of the text box, relative to the parent widget.
right: f64The right edge of the text box, relative to the parent widget.
bottom: f64The bottom edge of the text box, relative to the parent widget.
direction: TextDirectionThe direction in which text inside this box flows.
Implementations§
Trait Implementations§
impl Copy for TextBox
impl StructuralPartialEq for TextBox
Auto Trait Implementations§
impl Freeze for TextBox
impl RefUnwindSafe for TextBox
impl Send for TextBox
impl Sync for TextBox
impl Unpin for TextBox
impl UnsafeUnpin for TextBox
impl UnwindSafe for TextBox
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