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>
impl<'resources, 'font> Default for KiCadPagePlotOptions<'resources, 'font>
Source§fn default() -> KiCadPagePlotOptions<'resources, 'font>
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> 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