include/ui_tree.h — the umbrella header — is deleted. runtime/tree_props.kry
carries the public ABI: NodeId, the opaque TreeNode, the AccessibilitySink
callback, the RowProps/FlowProps aliases, and Event (whose union now passes
through as a one-line #type) alongside EventKind and Invalidation as one-line
#type enums — #type declarations emit before the enum pass, so records that
reference them must be #types too. ROUTER_NO_ROUTE becomes a Kry constant, and
the tree lifecycle, node queries, accessibility queue, every widget entry
point, the router, and the layout nodes are "#extern #export" declarations.
k2c's instrumented-module emission hard-coded #include "ui_tree.h" (the fourth
such coupling); it now emits the props header. The canonical surface doc test
reads the generated header, and its doc reference follows.
Gates: generated-runtime-parity-test, fast-test (incl. canonical-surface),
k2c/k2cpp/k2go-syntax-test, go-runtime-test, examples-syntax-test,
kryon-boundary-check, public-api-names-check, and the refreshed public-API
snapshot pass.
Move the eighteen inspector calls, including PushInspectTransform's Camera2D
(which kryon_compat already supplies), into runtime/inspect_props.kry as
"#extern #export" declarations, so the tracked props header carries the public
ABI and include/ui_inspect.h is deleted. k2c and k2cpp now emit
"#include "ui_inspect_props.generated.h"" for instrumented modules instead of
the handwritten header, and the syntax tests assert the new include.
widget-instance-test fails identically before this change and stays outside
the standard gates.
Gates: generated-runtime-parity-test, fast-test, k2c/k2cpp/k2go-syntax-test,
go-runtime-test, examples-syntax-test, and the refreshed public-API snapshot
pass.
Move app shell, frame, locale, node, screen routes, theme state, and window
policy ownership into src/ui/*.kry, delete the replaced src/core owners, and
make generated public ABI the type source for capability and retained-node
records.
- runtime/capability_props.kry and runtime/node_props.kry generate the public
capability and node type headers; handwritten headers keep only the C-only
declarations (function-pointer typedefs, unions, host functions).
- k2c/k2cpp: terminate a same-line case body and map fixed-width casts
(i32/i64/u8/f32/...) to their C types.
- locale.c matches the generated LocaleParseEntries argument order;
locale_policy.kry keeps its return type on the signature line.
- ui_window.c renames the X11 dlopen shim symbols off the downstream app prefix.
- Refresh the canonical surface doc, public API snapshot, and test gates.
Verified: runtime parity (C+Go), k2c/k2cpp/k2go syntax, go runtime,
public-api-names, canonical-surface, kryon-boundary, public-api-snapshot,
laws, fast-test, smart-test.
Widget, layout, interaction, style, and UI-tree logic is now authored in
the Kry (.kry) UI language and compiled into the native C and Go runtimes,
replacing the hand-written C widget implementation. The remaining C is
platform and raster backends (X11 window, font rasterization, paint command
execution, surface/image caches, test helpers).
- Clipboard OSC52/paste callbacks are host-provided write functions instead
of raw function-pointer typedefs, unblocking Go runtime generation.
- AccessibilityNode and Accelerator types are generated from .kry.
- Generated-runtime parity test passes for both C and Go.
.kry -> C++ compiler sharing the Kir frontend with k2c. Emits .cpp/.hpp
per module calling the C Kryon runtime through extern "C" declarations,
plus kryon_project.h/.c (still plain C) and the --plan9 and --include-dir
options ported from k2c. Inferred declarations emit 'auto' instead of
__auto_type so g++ accepts the output. Wired into the Makefile, tools
package, conformance matrix, feature matrix, and a k2cpp syntax test.