This repository was archived by the owner on Nov 22, 2026. It is now read-only.
Repository navigation
mojo-imkit v0.7.2
mojo-imkit-public v0.7.2
Released: 2026-11-08 · Commit: 7b7cf08 · Previous: v0.6.4
What it does
An immediate-mode GUI for Mojo apps, drawn by one GPU compose kernel over the app frame. System SDL3 presents the window and FreeType builds the glyph atlas.
Highlights
Layer.set_image(px, w, h): one call puts a large picture (up toUI_IMGpixels) in the image pool.Ui.fieldandInput.text: a single-line ASCII text box fed by SDL text events;Window.text_input(on).Window.push(EV_TEXT, text=...)delivers the text it was given, also when the string is built at run time.Ui.buttontakes acolor.
Changes
Added
Layer.set_image,layer.image_fits;Input.text(default empty),Window.text_input(on),EV_TEXT,Window.push(EV_TEXT, text=...);Ui.field,Ui.field_focused;scripts/mutants.sh.
Changed
Ui.buttontakes acolor(default: the accent).Inputhas an explicit constructor sotextcan default; every existingInput(...)call builds unchanged.
Fixed
Window.push(EV_TEXT)handed SDL a pointer into a string freed whenpushreturned; SDL reads it atpoll(). A literal hid the bug; a run-time string polled back garbage.Windownow keeps the bytes alive untilpoll()has read them.
Verified
| Check | Result |
|---|---|
scripts/ci.sh steps on this tree (precompile, build of every test and the quickstart, font_test, ui_cpu_test, quickstart), Mojo 1.2.0 |
all exit 0 |
scripts/local_gate.sh under gpu-wait on gfx1100, KDE Wayland (ui_test on the GPU, window_test on the display, audio_test) |
PASS local_gate: ui_test, window_test, audio_test |
scripts/mutants.sh: field ignores max; Input.merge drops text; pushed text freed before poll |
all killed, PASS mutants |
pkg-conda dry run on the version commit (H1-H3,H6) |
PASS: mojo-imkit-0.7.2-hb0f4dca_0.conda |
Known limits
Ui.field: append and Backspace at the end only; no cursor movement, selection, paste, key repeat or non-ASCII. Fixed width 360.Input.textcarries UTF-8 as SDL sends it;fielddrops every byte outside 32-126.- This release carries the work developed as v0.7.0 and v0.7.1 in the dev repo (never published; renamed dev-v0.7.0, dev-v0.7.1 there).
Upgrade / run
None for existing code: `Ui.button` and `Input(...)` calls build unchanged.
Commits
7b7cf08build: bump version to 0.7.21514006feat: typed text, text fields, set_image, button colour (dev v0.7.0 and v0.7.1 work)