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

Module pcb

Module pcb 

Source
Expand description

Native, source-backed views and focused edits for KiCad PCB documents.

The board model indexes exact source spans and decodes domain records on demand. It intentionally does not construct the generic compatibility tree.

Structs§

PcbAnnularRingStats
Scalar pad/via envelope statistic in millimetres; not a copper-union clearance proof.
PcbBarcode
PcbBoardMetadata
PcbBoardText
One source gr_text owner, including empty and hidden text. Coordinates remain KiCad millimetres and angles remain authored degrees.
PcbBoardTextBox
One source gr_text_box owner: a text box on the board, typed like a footprint text box. Coordinates remain KiCad millimetres (right/down) and the angle is the authored text angle in degrees.
PcbBoardVariant
PcbComponentClassRef
PcbCounts
Collection counts used to compare the lazy view with the Python model.
PcbDimension
PcbDimensionFormat
PcbDimensionStyle
PcbDocument
An owned KiCad board document.
PcbDrillLayerSpan
PcbDrillProperties
PcbEdit
PcbEmbeddedFile
Metadata for one source-backed embedded resource.
PcbFootprint
PcbFootprintGraphic
One non-text graphic owned by an embedded board footprint.
PcbFootprintPrimaryBatch
One footprint’s strict effective scalars and independently fallible drawings. This is an operation result over existing Source records, not a saved carrier.
PcbFootprintProperty
One source-authored property owned by an embedded board footprint.
PcbFootprintText
One source-authored footprint-local text item.
PcbFootprintTextBox
One source-authored footprint-local text box.
PcbFootprintTransform
PcbFootprintZone
One zone or rule area owned by an embedded board footprint. Its outline is in board coordinates, as KiCad stores it.
PcbFrontBackOptionalBool
PcbGeneratedItem
PcbGraphic
A producer-neutral typed view of one board graphic carrier.
PcbGroup
PcbHole
PcbImage
PcbLayer
PcbLimits
Ignored ceilings, defaulting to usize::MAX: KiCad reads and plots boards and footprints without them (#612). Request hosts still pass caller values.
PcbModelReference
One typed footprint 3D-model reference in board source order.
PcbNet
PcbNetRef
A board-object net reference, which KiCad may encode by ordinal or name.
PcbPad
One typed footprint pad in board source order.
PcbPadCustomOptions
Custom-pad clearance and anchor policy.
PcbPadCustomPrimitive
One source-local custom-pad primitive, with policy declaration evidence.
PcbPadDrill
PcbPadNameGroup
PcbPadstack
PcbPadstackLayer
PcbPoint
PcbPostMachiningProperties
PcbProfilePrimitive
PcbProperty
One exact top-level PCB property and its editable value range.
PcbResolvedPadCopperLayer
Effective source-local shape and layer-local policy for one copper selector. Distances remain millimetres and angles remain KiCad degrees. A drill offset moves the copper shape, not the hole. No policy is inherited from a footprint or a design rule here; absence remains absence.
PcbRoutingArc
PcbSegment
PcbSelection
A compact, allocation-free set of requested PCB families.
PcbSetup
PcbStackup
PcbStackupLayer
PcbStackupSubLayer
PcbTable
PcbTableCell
PcbTeardropParameters
PcbVia
PcbViaStack
PcbViaStackLayer
KiCad via-stack rows support only a circular diameter, not pad shapes/policies.
PcbView
A board view backed by one source buffer and exact selected form spans.
PcbZone
PcbZoneFilledPolygon
PcbZoneKeepout
PcbZoneLayerConnections
PcbZoneLayerProperty
PcbZonePlacement
PcbZonePolygon

Enums§

PcbEmbeddedDataPresence
Authored state of an embedded resource’s (data ...) form.
PcbEmbeddedFileOwner
Source owner for an embedded resource declaration.
PcbFamily
One independently requestable native PCB model family.
PcbFootprintMemberOwner
Source owner for a footprint-local typed member reused by board and standalone readers.
PcbGraphicKind
PcbHoleOwner
PcbHoleShape
PcbPadPrimitiveGeometry
Source-local geometry. Proxy shapes are not copper primitives.
PcbPolygonPoint
Ordered source polygon elements; embedded arcs are not tessellated or omitted.
PcbProfileOwner
PcbZonePlacementSource

Functions§

footprint_primary_property_name
Exact source standard role; legacy ki_description is scalar-only before 20230620.
is_standalone_footprint_custom_property
Source-format role classification; exact user spelling is never normalized.
resolve_pad_copper_layer
Resolve a copper shape without deciding whether copper is present there.

Type Aliases§

PcbFootprintPrimaryFieldResults
Independent graphical results in Reference, Value, Description order. Only the existing unpositioned build-capability errors are eligible for drawing recovery; source errors and resource limits must remain fatal.
PcbPadPolygonPoint
Compatibility name for the shared source polygon element type.