Skip to main content

Module types

Module types 

Source
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.
CoordPoint
2D point with X and Y coordinates.
CoordPoint3D
3D point with X, Y, and Z coordinates.
CoordRect
Rectangle defined by two corner points.
Layer
PCB layer identifier.
ParameterCollection
Collection of key-value parameters.
ParameterValue
Value of a parameter with typed conversion methods.
UnknownFields
Container for unknown/unrecognized fields during parsing.

Enums§

MaskExpansion
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.