diff options
| author | salmonik <salmonik@tuta.io> | 2026-08-27 17:23:34 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-08-27 17:23:34 +0200 |
| commit | ba304898b8e177d90afb58d201b4c3dd3c927c48 (patch) | |
| tree | 3bcca98cb09ed8c035218039d9c86401d8ea0066 /Cargo.lock | |
| parent | tool migration: v2 exports + 10 external CLI binaries (diff) | |
| download | rs-dos-ba304898b8e177d90afb58d201b4c3dd3c927c48.tar.gz rs-dos-ba304898b8e177d90afb58d201b4c3dd3c927c48.zip | |
GUI: window/event exports, paint binary, event-loop gate
rsapi: WmEvent (kind=u8 enum: 0=key, 1=mouse, 2=focus, 3=close),
WmKeyKind (Char/Enter/Backspace/F1-F4/…), WmMouseEvent (x/y/buttons),
WindowInfo (ptr/w/h). Five new exports: wm_create, wm_buffer,
wm_flush, wm_destroy, wm_recv (non-blocking TaskMsg dispatch → WmEvent).
Shell: abi_wm_* wrappers bridge rsapi types to rsnix::wm and
sched::recv(); wm_recv translates TaskMsg::Key/Mouse/Focus/Close
into flat WmEvent union.
bins/paint: gate binary — create_window + buffer + event loop with
Bresenham line drawing, color select (1-8), clear (c), F4 close.
All via wm_* ABI exports.
Fully migrated: date, mem, pci, cat, ls, mkdir, touch, rm, klog,
info, paint (11 external binaries in /bin/cli/ + 3 gate binaries).
Diffstat (limited to '')
| -rw-r--r-- | Cargo.lock | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -73,6 +73,13 @@ dependencies = [ | |||
| 73 | ] | 73 | ] |
| 74 | 74 | ||
| 75 | [[package]] | 75 | [[package]] |
| 76 | name = "paint" | ||
| 77 | version = "0.6.0" | ||
| 78 | dependencies = [ | ||
| 79 | "rsapi", | ||
| 80 | ] | ||
| 81 | |||
| 82 | [[package]] | ||
| 76 | name = "pci" | 83 | name = "pci" |
| 77 | version = "0.6.0" | 84 | version = "0.6.0" |
| 78 | dependencies = [ | 85 | dependencies = [ |
