Expand description
Core types for Altium file parsing.
This module contains fundamental types used throughout the library:
- Coordinate types (Coord, CoordPoint, CoordRect)
- Unit types for measurement conversions
- Layer definitions for PCB layers
- Color type for Altium colors
- Parameter collection for key-value storage
- Unknown fields for non-destructive editing
Structs§
- Color
- Color type stored as Win32 COLORREF (BGR format).
- Coord
- Internal coordinate value, stored as a fixed-point integer.
- Coord
Point - 2D point with X and Y coordinates.
- Coord
Point3D - 3D point with X, Y, and Z coordinates.
- Coord
Rect - Rectangle defined by two corner points.
- Layer
- PCB layer identifier.
- Parameter
Collection - Collection of key-value parameters.
- Parameter
Value - Value of a parameter with typed conversion methods.
- Unknown
Fields - Container for unknown/unrecognized fields during parsing.
Enums§
- Mask
Expansion - Mask expansion mode (replaces manual bool + value Coord pairs).
- Unit
- Measurement units supported by Altium.
Functions§
- coord_
to_ dxp_ frac - Split a raw coordinate value into DXP integer and fractional parts.
- dxp_
frac_ to_ coord - Combine DXP integer and fractional parts into a raw coordinate value.