Commit Graph
113 Commits
Author SHA1 Message Date
waozi e292d5cafa Preserve outlined icons and live Text layering 2026-09-06 20:04:59 -03:00
waozi e539942432 Refine Material guides and warning artwork 2026-09-06 20:04:59 -03:00
waozi 9888d85cc9 Add canonical MingCute warning icon 2026-09-06 19:47:22 -03:00
waozi b6a41789bd Enforce canonical TextProps usage 2026-09-06 18:26:36 -03:00
waozi c2717be489 Merge branch 'inbe-ui-widgets'
# Conflicts:
#	docs/site/conformance-matrix.json
#	src/ui/ui_tk.c
#	src/ui/ui_tree.c
#	tests/generated_runtime_parity_test.sh
2026-09-06 16:22:24 -03:00
waozi e28170b826 Rename optional sync module to Daochi 2026-09-06 16:13:35 -03:00
waozi 528ad8aee3 Merge master and finalize canonical UI layout fixes 2026-09-06 12:25:17 -03:00
waozi 0970d8f783 Unify native text and composed popup widgets 2026-09-06 11:36:36 -03:00
waozi b9fe25cbbf Scale semantic font tokens with UI density 2026-09-06 09:28:26 -03:00
waozi 365cdd7c22 Complete native widget catalog and runtime interaction parity 2026-09-05 19:08:02 -03:00
waozi db93873f49 Isolate Windows header names in SDL renderer builds 2026-09-05 11:16:20 -03:00
waozi 79b57569c9 Emit portable scalar operations from shared KIR and remove cgo 2026-09-05 10:33:14 -03:00
waozi f871a2ee3f Build shared expression checking and lexical cleanup foundation 2026-09-05 09:50:06 -03:00
waozi 5e9c5034a1 ci: repair sanitizer coverage 2026-09-05 08:16:33 -03:00
waozi dcdac079cb ui: add immediate-mode widget slice with plots and sliders
Extend the retained+immediate widget surface with PlotLines, PlotHistogram,
DragFloat/DragInt, SliderFloat/SliderInt, VSlider variants, SliderAngle,
InputFloat/InputInt/InputDouble, TreeView and the widget catalog example,
wired through k2go, the Go runtime and web runtime parity coverage. Fix the
k2go lowering of &arr[i] address-of-array-element expressions so pointer
props like SliderAngle.Value stay addresses in generated Go. List the new
parity sources in the KRB alpha-diff matrix.
2026-09-05 02:00:07 -03:00
waozi 5ee4f01879 release: prepare v0.1.46 2026-09-04 20:41:00 -03:00
waozi 8dfffb4b7d ui: modernize input and icon assets 2026-09-04 20:30:23 -03:00
waozi 22cd4f40bf kry_instance: own SIGTERM/SIGINT + robust lock stealing
SDL latches SIGTERM into an event that a busy frame loop may never
observe, leaving an unkillable process holding the single-instance
lock (every later launch then gets rejected with no window). The lock
owner now installs its own SIGTERM/SIGINT handler that drops the lock
(close+unlink are async-signal-safe) and exits immediately.

Also: widen the steal budget to 3.5 s, escalate once to SIGKILL
guarded by a /proc/<pid>/comm same-application check so a recycled
pid never takes the hit, and add KryonReleaseInstanceLock() for apps
whose shutdown path is slow — krait calls it right after its main
loop ends, before cleanup.
2026-09-03 18:47:10 -03:00
waozi 8448db3452 Verify k2cpp in the packaged tools bundle 2026-09-03 13:50:36 -03:00
waozi b24fde792f Add k2cpp backend with full k2c parity
.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.
2026-09-03 13:39:37 -03:00
waozi 38eb5ab3a6 Rename k2g to k2go and k2ir to k2kir
The short k2g/k2ir names became confusing as the toolchain grew.
k2go and k2kir name their targets explicitly; k2c, k2js, and k2b
keep their existing names. Hard rename, no compatibility aliases.
2026-09-03 13:34:40 -03:00
waozi c5e84b8016 Fallback to fonttools module for subsets 2026-08-31 19:56:27 -03:00
waozi daa819858b Update showcase and Pages deployment 2026-08-31 16:48:31 -03:00
waozi 00c50a8d8b Improve Debian platform icon 2026-08-31 12:13:33 -03:00
waozi 0993e60bee Improve Kry language tooling 2026-08-31 10:44:13 -03:00
waozi 824f34f2a1 Cache bust showcase banner assets 2026-08-30 04:33:34 -03:00
waozi e9ec7ff715 Fix showcase project directory loading 2026-08-30 03:59:34 -03:00
waozi 9636bdddd7 Refactor compiler text helpers 2026-08-30 03:22:57 -03:00
waozi 2de90be774 Fall back to warp-based relative mouse mode when raw mode fails
raylib's SDL DisableCursor ignored the return of
SDL_SetRelativeMouseMode: when the driver refuses raw relative mode the
cursor is only hidden and still clamps at the screen edges, so captured
look control dies there. Detect the failure, retry through SDL's
warp-based relative emulation, and log which mode engaged so field logs
identify the path taken. EnableCursor resets the warp hint.
2026-08-30 03:05:01 -03:00
waozi 1e977180e3 Expand Kryon matrix parity coverage 2026-08-30 03:05:01 -03:00
waozi 9aedd743d0 Make cursor-locked SDL mouse behave like GLFW disabled-cursor mode
The SDL backend overwrote the mouse position with each motion event
xrel/yrel and zeroed previousPosition while the cursor is locked, so
GetMousePosition returned the last event relative motion instead of an
accumulating virtual position. Apps that difference GetMousePosition
themselves (the common raylib FPS look-control pattern written against
GLFW) got noise instead of camera motion. Accumulate relative motion
into an unclamped virtual position instead: GetMousePosition keeps
moving past window edges and the per-frame previousPosition snapshot
makes GetMouseDelta the sum of the frame motion events, matching GLFW.
2026-08-29 18:06:01 -03:00
waozi d2647baf47 Add the 3D tier to the kryon surface
Kryon declared raylib's 3D symbols but had no way to run custom 3D
pipelines: the mesh/shader entry points live in rlgl, which the boundary
rules keep out of the surface, and there was no 3D math at all.

The compat generator now also tracks a curated rlgl tier (vertex
array/buffer upload, attributes, element draws, shader and texture binds,
uniforms, matrix state, cull/depth toggles, plus the RL_* constants they
take) extracted from the vendored rlgl.h: declarations join the surface
header, the raylib backend renames and forwards them, and the null
backend stubs them, exactly like the rest of the surface. rlgl itself
stays a raylib-backend implementation detail.

A new include/kry_math3d.generated.h tracks raymath verbatim in
static-inline header-only mode and is included by kryon.h after the
compat surface, so every backend gets identical Vector3/Matrix/Quaternion
math with nothing to link or stub.

Custom shaders on this tier must target GLSL 100 / OpenGL ES 2 because
the desktop raylib backend runs GLES2; documented in BACKENDS.md along
with the per-backend tier status. The raylib compatibility test covers
math3d for real and links the whole camera/mesh/shader/rlgl path; it
passes on the raylib backend and headless on the null backend.
2026-08-29 17:22:01 -03:00
waozi 2f5fd2f075 Add JavaScript lowering pipeline 2026-08-29 13:56:11 -03:00
waozi 3439f5aa9a Harden Kryon boundaries and preflight checks 2026-08-29 11:36:38 -03:00
waozi c9e5601f77 Improve Canvas2D backend parity 2026-08-28 19:02:42 -03:00
waozi 966af47a0a Fix conformance matrix build directory 2026-08-27 23:18:34 -03:00
waozi e462d24b30 Rename terminal showcase to ktrem 2026-08-26 04:00:38 -03:00
waozi aebb5d3a75 Add live website examples gallery 2026-08-26 00:17:02 -03:00
waozi 95c409a426 Add generated progress parity coverage 2026-08-25 16:08:27 -03:00
waozi fb9b83ea3c Add generated list box parity coverage 2026-08-25 15:56:24 -03:00
waozi c819754565 Add generated table parity coverage 2026-08-25 15:45:28 -03:00
waozi 752294700b Add generated controls parity coverage 2026-08-25 15:22:07 -03:00
waozi 06dc6a24c7 Add visual comparison matrix 2026-08-25 14:56:55 -03:00
waozi c4d5262ca8 Add web Canvas source capture matrix gate 2026-08-25 14:44:27 -03:00
waozi d1be565333 Track generated C renderer matrix gaps 2026-08-25 12:24:09 -03:00
waozi b844ac0caa Capture raylib generated C windows 2026-08-25 11:39:41 -03:00
waozi 12724da33d Add raylib generated C matrix gate 2026-08-25 11:35:56 -03:00
waozi 0f2766f986 Expose renderer source matrix on website 2026-08-25 11:31:54 -03:00
waozi 63139449c6 Use Rect as canonical shape widget
Update matrix examples, generated website data, and feature docs to use Rect rather than RectangleShape.

Keep RectangleShape as a compatibility alias and map Rect to it only for libdraw builds to avoid the plan9port Rect symbol collision.
2026-08-25 11:17:05 -03:00
waozi 627dbcc76f Normalize matrix sources to current UI APIs
Convert Inbe and matrix fixtures to current prop structs, RectangleShape, and UIScrollArea/BeginUIScrollContainer APIs.

Teach KRB lowering the current scroll-container pattern, fix array dropdown option text, and align scroll rendering with the current container behavior.

Update conformance matrix docs/data and recovered libdraw generated-C coverage.
2026-08-25 11:06:00 -03:00