Skip to main content

Module types

Module types 

Source
Expand description

Core types for XFA layout — Box Model, measurements, and layout primitives.

Implements XFA 3.3 §4 (Box Model) types.

Structs§

BoxModel
The XFA Box Model for a form element.
Caption
A caption for a form field.
Insets
Inset values (margins, padding) for the four sides.
Measurement
A measurement with a unit, parsed from XFA attributes.
Point
A 2D point in layout coordinates (points, 1pt = 1/72 inch).
Rect
An axis-aligned rectangle in layout space.
Size
A 2D size in points.

Enums§

CaptionPlacement
Caption placement relative to content.
LayoutStrategy
Layout strategy for a container.
MeasurementUnit
Units for measurements in XFA.
TextAlign
Horizontal text alignment (XFA <para hAlign>).
VerticalAlign
Vertical text alignment (XFA <para vAlign>).

Constants§

DEFAULT_TEXT_PADDING
Shared default horizontal text padding, applied per side when paragraph margins are not explicitly set.