- KryonMemReport/KryonMemDebugEnabled (KRYON_MEM_DEBUG) print RSS and the
glibc arena breakdown; UIFontMemoryReport prints per-font raster stats.
- Source fonts rasterize once at the DPI-scaled base size plus one lazily
built large tier, replacing the 8-slot per-size cache. New codepoints
batch into at most one rebuild per frame per font, and atlas build churn
is returned via malloc_trim on glibc.
- KRYON_TRAY_GTK_DL: GTK_STATUS_ICON tray resolves GTK via dlopen (gtk_dl
shim) so tray-less processes never map the GTK chain.
OpenUIWindow/CloseUIWindow manage a window beside raylib's core window;
BeginUIWindow/EndUIWindow bracket widget drawing (offscreen texture,
UI frame, pixel blit to the OS window), IsUIWindowClicked polls its
mouse events. Flags: borderless, always-on-top, skip-taskbar, top-right
anchor with margin-based placement against the display work area.
Linux/FreeBSD drive the window through dlopen'd libX11 on a private
Display connection: a second SDL window in this process reproducibly
breaks Mesa llvmpipe (the next frame's scissor batch flush faults after
any glReadPixels), and the private connection also keeps the extra
window's events and blits out of SDL's queue. Borderless windows are
override-redirect, which covers no-decorations/taskbar/stacking for
HUD-style use. Windows/macOS keep the plain SDL surface path;
web/Android are no-ops.
KRYON_UI_WINDOW_DUMP=<path> writes the window's pixels (1 Hz) for
verification. Verified live in inbe: Workrave-style break timer HUD as
a real top-right window with live countdowns.
One raylib-style API in notification.h (SendNotification,
SendNotificationEx with tag/id/priority, CancelNotification,
CancelAllNotifications, permission probing, SetNotificationAppName),
three real backends in src/notification/notification.c:
- Android: pure JNI through the native activity -- channels on API 26+,
legacy Builder priorities on 21-25, areNotificationsEnabled /
POST_NOTIFICATIONS runtime request on 24+/33+. No Java-side code
required, so any kryon app gets notifications unchanged.
- Web: the browser Notification API via EM_JS, with an id registry so
cancel works.
- Desktop Linux: org.freedesktop.Notifications over GDBus
(KRYON_NOTIFICATION_GDBUS + gio-2.0; mk/vendor.mk exports the probe
flags). urgency + desktop-entry hints from the priority and app name.
- Everything else: honest stub (supported=0).
Verified: desktop path end-to-end against a live xfce Notifyd
(supported=1 send=1), stub branch syntax-clean, full kryon test suite
green.
EmbeddedAsset/GetEmbeddedAsset/GetEmbeddedAssetExtension are public API
(used by kryon's own ui_text.c and by apps), but embedded_assets.h was not
pulled in by the kryon.h umbrella, so apps that #include "kryon.h" and used
them got implicit-declaration errors. Surfaced when building inbe against
root kryon.
Include kry_term.h, kry_backend.h, and krb.h from the kryon umbrella so
apps reach them through the public header. Document the .krb load/bind/draw
flow and KrbMount in docs/API.md, mention kc --emit-krb in the README, and
add an examples Makefile target that builds the 02_buttons cartridge host.
CHANGELOG entries for the kry_term and krb slices.
Runtime:
- include/kry_animation.h + src/scene/kry_animation.c: animation = ordered
tracks of (time,value) keyframes; linear/step interpolation; hold-before/
hold-after clamping; KryAnimationApply samples at time t and writes position/
rotation/scale components onto target nodes via KryNodeGet
- src/scene/node_animation_player.c: AnimationPlayer node (registered on the
KRY_NODE_TIMER slot) advances the current animation each process tick and
applies it; on non-loop finish emits an 'animation_finished' signal via the
Phase 2 signal bus. Loop + play/pause state in AnimationPlayerProps
- src/scene/node_animated_sprite2d.c: AnimatedSprite2D cycles frames of a grid
sprite sheet at a given fps, drawing the current sub-rect via the shared
picture texture cache
- include/node2d_props.h: AnimationPlayerProps (holds up to 4 animations) +
AnimatedSprite2DProps + allocators
Example + test:
- examples/23_animation.kry: a Sprite2D whose y position is keyframe-animated
- tests/animation_test.c: linear/step interpolation, hold clamps, and
KryAnimationApply writing position.x/rotation; wired into 'make test'
Property model (scene_property.h/.c):
- KrySceneRegisterProperties / KryScenePropertySpecs per-kind spec tables
- KrySceneNodeGetProperty/SetProperty read/write runtime KryNode fields
(transform fields + kind-specific props) through the existing
KryonPropertySpec/Value model so the editor Inspector can edit every
field generically instead of special-casing bounds
- Builtin tables for Node2D (position/rotation/scale), Camera2D (+zoom/
active), Sprite2D (+asset_path/size/tint); registered in
KrySceneRegisterBuiltins
Signal bus (kry_signal.h/.c):
- KrySignalConnect / KrySignalEmit: declarative node-to-node events
- Per-kind signal handler hook dispatched on emit
- KrySignalDisconnectNode auto-invoked from KryNodeRemove so removed nodes
don't leave dangling connections
- Connection pool keyed by scene pointer (KryScene stays a fixed struct)
The Kry statement language had a tangle of overlapping verbs (draw,
native, set, widget, text, rect, line, background, swatch) that all did
minor variants of the same thing: emit a call or assignment statement.
This removes the redundant ones and replaces the widget keywords with an
ordinary library of functions, so 'widget' is a convention (a function
that draws) rather than compiler syntax.
Removed statement verbs (now fatal errors with a migration hint):
- draw / widget -> call the expression directly; bare call statements
already wrap with PushUIInspectSource/PopUIInspectSource, so
click-to-source keeps working with no keyword.
- native -> call the expression directly.
- set -> write the assignment/call directly.
- text/rect/line/background/swatch -> call the matching Widget* library
function (WidgetText, WidgetRect, WidgetLine, WidgetBackground).
Kept keywords earn their place: button, on/event, icon_button,
set_theme, advance, clamp_min/max, c_rect, texture, c, unused, and all
control flow.
New widget library (include/ui_widgets.h, src/ui/ui_widgets.c):
WidgetText, WidgetRect, WidgetLine, WidgetBackground, WidgetButton —
ordinary C functions wrapping the existing DrawUI* primitives, with the
same defaults the removed keywords used. Included via kryon.h.
Rewrote all 17 example .kry files to the verb-free syntax (positional
args; named args deferred to a later phase since kc has no parameter
table). Updated kc_syntax_test.sh: the 'valid' screen and cross-file
tests no longer use removed verbs, and new tests assert that each
removed verb errors with a migration message.
Regenerated icon assets pick up the freebsd/macos platform PNGs added
earlier.
make clean && make all test passes (kc syntax, raylib compat, runtime).