#[non_exhaustive]pub struct Text<'a> {
pub text: &'a str,
pub style: TextStyleId,
pub at: [f64; 2],
pub at2: [f64; 2],
pub height: Option<f64>,
pub rotation: f64,
pub width: Option<f64>,
pub oblique: Option<f64>,
pub halign: HAlign,
pub valign: VAlign,
pub backward: bool,
pub upside_down: bool,
}Expand description
a single line of text (DXF’s TEXT). Made with new and changed field by field (it may grow)
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: &'a strone line (control characters are left out)
style: TextStyleId§at: [f64; 2]the alignment point: the baseline’s start for Left / Baseline (DXF 10), else the point the alignment names (DXF
11); Aligned and Fit run the baseline from at (DXF 10) to at2 (DXF 11)
at2: [f64; 2]§height: Option<f64>the cap height (None: the style’s), in the style’s unit
rotation: f64radians, counter-clockwise (Aligned and Fit: the direction from at to at2)
width: Option<f64>the width factor and the oblique angle (None: the style’s; DXF 41, 51)
oblique: Option<f64>§halign: HAlign§valign: VAlign§backward: boolDXF 71: mirrored in x (backward), mirrored in y (upside down)
upside_down: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Text<'a>
impl<'a> Freeze for Text<'a>
impl<'a> Move for Text<'a>
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> Send for Text<'a>
impl<'a> Sync for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnsafeUnpin for Text<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for Text<'a>where
&'a str: UnwindSafe,
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