Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

StrokeTextRequest

Struct StrokeTextRequest 

Source
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>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for StrokeTextRequest<'a>

Source§

impl<'a> Debug for StrokeTextRequest<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.