pub struct DrawingText {
pub at: [f64; 2],
pub height: f64,
pub angle: f64,
pub text: String,
pub layer: String,
}Expand description
A line of text on a drawing.
Fields§
§at: [f64; 2]The start of its baseline.
height: f64The height of its capitals.
angle: f64Its baseline’s direction, radians counter-clockwise from x.
text: String§layer: StringThe layer it is written on; empty for the drawing’s default layer.
Trait Implementations§
Source§impl Clone for DrawingText
impl Clone for DrawingText
Source§impl Debug for DrawingText
impl Debug for DrawingText
Source§impl<'de> Deserialize<'de> for DrawingText
impl<'de> Deserialize<'de> for DrawingText
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 DrawingText
impl PartialEq for DrawingText
Source§impl Serialize for DrawingText
impl Serialize for DrawingText
impl StructuralPartialEq for DrawingText
Auto Trait Implementations§
impl Forget for DrawingText
impl Freeze for DrawingText
impl RefUnwindSafe for DrawingText
impl Send for DrawingText
impl Sync for DrawingText
impl Unpin for DrawingText
impl UnsafeUnpin for DrawingText
impl UnwindSafe for DrawingText
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