pub enum StrokeTabRule {
MissingGlyph,
ColumnStops,
}Expand description
How a single-line stroke realization places a tab: part of a
StrokeTextProfile. A block’s lines
(realize_stroke_text_multiline_a0) always take KiCad’s stops.
Variants§
MissingGlyph
The realizer’s own rule: a tab is a codepoint the font lacks, drawn
and advanced as ? and counted in missing_glyphs.
ColumnStops
KiCad’s: a tab moves the cursor to the next stop, every four columns
of the text’s width from the start of its markup run, a space’s width
in (STROKE_FONT::GetTextAsGlyphs, common/font/stroke_font.cpp:225-240;
KiCad 10.0.8). It draws nothing.
Trait Implementations§
Source§impl Clone for StrokeTabRule
impl Clone for StrokeTabRule
Source§fn clone(&self) -> StrokeTabRule
fn clone(&self) -> StrokeTabRule
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 Copy for StrokeTabRule
Source§impl Debug for StrokeTabRule
impl Debug for StrokeTabRule
Source§impl Default for StrokeTabRule
impl Default for StrokeTabRule
Source§fn default() -> StrokeTabRule
fn default() -> StrokeTabRule
Returns the “default value” for a type. Read more
impl Eq for StrokeTabRule
Source§impl PartialEq for StrokeTabRule
impl PartialEq for StrokeTabRule
impl StructuralPartialEq for StrokeTabRule
Auto Trait Implementations§
impl Freeze for StrokeTabRule
impl RefUnwindSafe for StrokeTabRule
impl Send for StrokeTabRule
impl Sync for StrokeTabRule
impl Unpin for StrokeTabRule
impl UnsafeUnpin for StrokeTabRule
impl UnwindSafe for StrokeTabRule
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