pub struct StrokeTextRequest<'a> {
pub text: &'a str,
pub position_x_mm: f64,
pub position_y_mm: f64,
pub size_x_mm: f64,
pub size_y_mm: f64,
pub angle_degrees: f64,
pub horizontal_alignment: TextHorizontalAlignment,
pub vertical_alignment: TextVerticalAlignment,
pub mirrored: bool,
pub italic: bool,
pub bold: bool,
pub stroke_width_mm: Option<f64>,
}Expand description
One stroke-font text realization request in source millimetres.
Positive source angles use a y-down placement convention (KiCad’s). Newlines are not laid out as a text block by this single-line API; an embedded newline follows missing-glyph fallback.
Fields§
§text: &'a str§position_x_mm: f64§position_y_mm: f64§size_x_mm: f64§size_y_mm: f64§angle_degrees: f64§horizontal_alignment: TextHorizontalAlignment§vertical_alignment: TextVerticalAlignment§mirrored: bool§italic: bool§bold: bool§stroke_width_mm: Option<f64>Authored thickness in millimetres. None applies the automatic
normal/bold stroke thickness rule (KiCad’s).
Trait Implementations§
Source§impl<'a> Clone for StrokeTextRequest<'a>
impl<'a> Clone for StrokeTextRequest<'a>
Source§fn clone(&self) -> StrokeTextRequest<'a>
fn clone(&self) -> StrokeTextRequest<'a>
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 moreimpl<'a> Copy for StrokeTextRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for StrokeTextRequest<'a>
impl<'a> RefUnwindSafe for StrokeTextRequest<'a>
impl<'a> Send for StrokeTextRequest<'a>
impl<'a> Sync for StrokeTextRequest<'a>
impl<'a> Unpin for StrokeTextRequest<'a>
impl<'a> UnsafeUnpin for StrokeTextRequest<'a>
impl<'a> UnwindSafe for StrokeTextRequest<'a>
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