pub struct TextLineLayout {
pub text: String,
pub width: f64,
pub height: f64,
pub justify: TextJustify,
}Expand description
Measured layout of a single line within a multiline text label.
Fields§
§text: StringUnescaped text content of the line.
width: f64Width of the line in points.
height: f64Height of the line in points (font_size * LINESPACING).
justify: TextJustifyHorizontal justification of this line (\n, \l, \r).
Trait Implementations§
Source§impl Clone for TextLineLayout
impl Clone for TextLineLayout
Source§fn clone(&self) -> TextLineLayout
fn clone(&self) -> TextLineLayout
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 TextLineLayout
impl Debug for TextLineLayout
Source§impl<'de> Deserialize<'de> for TextLineLayout
impl<'de> Deserialize<'de> for TextLineLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextLineLayout
impl PartialEq for TextLineLayout
Source§impl Serialize for TextLineLayout
impl Serialize for TextLineLayout
impl StructuralPartialEq for TextLineLayout
Auto Trait Implementations§
impl Freeze for TextLineLayout
impl RefUnwindSafe for TextLineLayout
impl Send for TextLineLayout
impl Sync for TextLineLayout
impl Unpin for TextLineLayout
impl UnsafeUnpin for TextLineLayout
impl UnwindSafe for TextLineLayout
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