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

Module pcb_authoring

Module pcb_authoring 

Source
Expand description

Typed fresh-source authoring for KiCad PCB and footprint files.

Structs§

AuthoredBackdrill
AuthoredBarcode
One (barcode ...) on a board or in a footprint. A footprint barcode’s at is local to the footprint, as a footprint text’s is.
AuthoredBoardText
AuthoredColor
AuthoredDimension
One board (dimension ...), written as KiCad 10.0.8 saves it (pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.cpp:886-998).
AuthoredDimensionFormat
A dimension’s format: how its value is written.
AuthoredDimensionStyle
A dimension’s style, the fields every kind writes.
AuthoredDimensionText
A dimension’s gr_text. Its layer, lock and UUID are the dimension’s: KiCad writes the dimension’s own as the text’s (pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.cpp:994-995 and 2265-2329 at 10.0.8). Color and hyperlink are never written (:2318-2322).
AuthoredDrill
AuthoredEmbeddedFile
AuthoredFootprint
AuthoredFootprintOccurrence
One placed board occurrence of a footprint definition.
AuthoredFootprintProperty
A graphical footprint property with an explicit local presentation.
AuthoredFootprintScalarProperty
AuthoredFootprintText
AuthoredFrontBackPolicy
AuthoredGraphic
AuthoredGroup
A board-owned editor group. Members are UUIDs of board-root items or groups, not footprint children. This does not author design-block library links.
AuthoredKeepout
Complete effective restrictions, emitted explicitly rather than inheriting source-version-dependent omission defaults.
AuthoredLayer
AuthoredModel
AuthoredNet
AuthoredNetRef
AuthoredPad
AuthoredPadPrimitive
AuthoredPadstack
AuthoredPcb
AuthoredPlacementConstraint
AuthoredPoint
AuthoredProperty
One board-root source property, independent of footprint graphical fields.
AuthoredRoutingArc
AuthoredRuleArea
One board-frame source zone used for restrictions and/or placement. No net, fill cache, or thermal/pour policy can be attached to this type.
AuthoredSegment
AuthoredSetup
AuthoredStackup
AuthoredStackupLayer
AuthoredStackupSubLayer
One addsublayer parameter group of a dielectric stackup layer.
AuthoredStandaloneFootprint
A fresh standalone .kicad_mod envelope around one local footprint definition.
AuthoredTextBox
AuthoredTextEffects
AuthoredVia
AuthoredViaStack
AuthoredViaStackLayer
KiCad via stacks support circular diameters only; no per-layer nets/shapes.
AuthoredZone
AuthoredZoneFill
AuthoredZoneFilledPolygon
AuthoredZoneHatchedFill
A hatch-pattern fill ((mode hatch)), written as pcbnew writes it.
AuthoredZonePolygon
PcbAuthoredText
A written source and the warnings about it.
PcbAuthoringLimits
Independent ceilings for fresh typed source construction.
PcbAuthoringWarning
One warning about a written source; the object was written.

Enums§

AuthoredBarcodeEccLevel
QR and Micro QR error-correction level, by its source ecc_level token.
AuthoredBarcodeKind
A KiCad 10 barcode symbology, by its source type token.
AuthoredChamferCorner
AuthoredCustomPadClearance
AuthoredDimensionArrowDirection
KiCad’s arrow_direction, written for aligned and orthogonal dimensions.
AuthoredDimensionKind
A KiCad 10 board dimension kind, with the fields only that kind has.
AuthoredDimensionOrientation
An orthogonal dimension’s orientation (KiCad’s PCB_DIM_ORTHOGONAL::DIR).
AuthoredDimensionTextFrame
A leader’s text_frame (KiCad’s DIM_TEXT_BORDER).
AuthoredDimensionTextPosition
Where a dimension’s text sits (KiCad’s DIM_TEXT_POSITION).
AuthoredDimensionUnits
The units of a dimension’s value (KiCad’s DIM_UNITS_MODE).
AuthoredDimensionUnitsFormat
How a dimension’s value shows its unit (KiCad’s DIM_UNITS_FORMAT).
AuthoredGraphicGeometry
AuthoredPadAnchor
AuthoredPadKind
AuthoredPadPolygonPoint
AuthoredPadPrimitiveFill
KiCad retains solid/unfilled custom primitive policy on closed shapes. Hatch modes and stroke styles are not retained by its custom-pad writer.
AuthoredPadPrimitiveGeometry
AuthoredPadShape
AuthoredPadstackLayer
AuthoredPadstackLayerSelector
AuthoredPadstackMode
AuthoredPadstackZoneConnection
AuthoredPlacementSource
AuthoredPolygonPoint
AuthoredResourceData
AuthoredRestriction
AuthoredTextBoxGeometry
AuthoredTextHorizontalJustification
AuthoredTextVerticalJustification
AuthoredViaKind
AuthoredZoneConnection
AuthoredZoneHatch
AuthoredZoneHatchBorder
KiCad’s hatch_border_algorithm: the hatch fill’s border is as wide as the hatch lines or as the zone’s minimum thickness.
AuthoredZonePadConnection
PcbAuthoringWarningCode
What the writer reports about a source it wrote.

Constants§

KICAD_SOURCE_VERSION_2024_12_29
First explicitly supported PCB and footprint source format revision.

Functions§

recover_board_text_knockout_cache
Recover pre-knockout glyph/counter contours from final Source cache regions. Reapplication must reproduce exact complete integer regions, ordered owned holes and multiplicity. Filled-region traversal order alone may differ. This does not regenerate fonts, change receipts, or prove board membership.