Expand description
The MEASURE contract a painter (built in or a host’s override) must keep
for a control (VAPP-92; mirrors src/geometry.ts): its box comes from the
theme’s tokens through the recipe of the part that IS the control, never
from the painter. control-geometry.json records every built-in theme ×
control × size; check_geometry is what the conformance suite runs an
override through.
Structs§
- Geometry
Case - One fixture case an override is run through.
- Geometry
Failure - Geometry
Issue - Measured
Box - What a painter reports after measuring the control it drew.
Constants§
- CONTROL_
PARTS - The part whose recipe sizes each control.
- DEFAULT_
TOLERANCE - The tolerance the TS defaults to.
- GEOMETRY_
KEYS
Traits§
- Painter
Override - A host’s replacement painter for one native kind: it may draw anything,
but
measuremust return the theme’s box.
Functions§
- check_
geometry - Every geometry key the theme fixes that the measured box misses or changes (a key the theme leaves open is the painter’s).
- control_
geometry - The numeric box of a control for a theme (mode-independent), in
GEOMETRY_KEYSorder, numeric values only. - control_
part - The sizing part of a control (
rootfor anything not listed). - verify_
painter_ geometry - Run an override through every case the fixture holds for its kind; only
the failing cases come back (named
k=v,…ordefault).