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

KiCadPagePlotOptions

Struct KiCadPagePlotOptions 

Source
pub struct KiCadPagePlotOptions<'resources, 'font> {
    pub worksheet_source: Option<Vec<u8>>,
    pub text_resources: Option<&'resources PlotterTextCacheResources<'font>>,
    pub dnp_presentation: KiCadDnpPresentation,
    pub color_overrides: BTreeMap<String, String>,
    pub font_face: Option<String>,
}

Fields§

§worksheet_source: Option<Vec<u8>>§text_resources: Option<&'resources PlotterTextCacheResources<'font>>§dnp_presentation: KiCadDnpPresentation§color_overrides: BTreeMap<String, String>

Source-colour overrides for the plotted page, as the Python schematic_svg_role_color_overrides builds them from theme role colours. Each operation colour (stroke, fill or text) whose spelling, with whitespace removed and in ASCII upper case, matches a key the same way is replaced by that key’s value. A #RRGGBB or #RRGGBBAA value is written in the Plotter IR’s own #RRGGBBAA upper-case form (#RRGGBB is opaque). Empty keeps KiCad’s default theme.

§font_face: Option<String>

A font face that replaces the face of every plotted Text operation, as a theme’s default font restyles the Python Plotter IR. Placement is unchanged. None keeps each text’s own face.

Trait Implementations§

Source§

impl<'resources, 'font> Default for KiCadPagePlotOptions<'resources, 'font>

Source§

fn default() -> KiCadPagePlotOptions<'resources, 'font>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'resources, 'font> Freeze for KiCadPagePlotOptions<'resources, 'font>

§

impl<'resources, 'font> RefUnwindSafe for KiCadPagePlotOptions<'resources, 'font>

§

impl<'resources, 'font> Send for KiCadPagePlotOptions<'resources, 'font>

§

impl<'resources, 'font> Sync for KiCadPagePlotOptions<'resources, 'font>

§

impl<'resources, 'font> Unpin for KiCadPagePlotOptions<'resources, 'font>

§

impl<'resources, 'font> UnsafeUnpin for KiCadPagePlotOptions<'resources, 'font>

§

impl<'resources, 'font> UnwindSafe for KiCadPagePlotOptions<'resources, 'font>

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> 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, 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.