tawasuyu

tawasuyu/llimphi

Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.

Rust 660Markdown 302TOML 157RON 312382 Definiciones

⎇ main widgets/menubar/README.md Markdown · 26 líneas · 936 B Historia crudo

chore: refresco desde el monorepo — 27 crates nuevos (anim, lottie, svg, mesh, image, layer, test, wire-view, widgets rag-sidebar/router/lazy-list/rive-button) y sync de los 95 existentes 93253cc22 · Sergio ·

1# llimphi-widget-menubar
2
3An app's main menu bar.
4
5Every Llimphi app declares an `app_bus::AppMenu` (File / Edit / View / Help …)
6and mounts it in-window with this widget. It is the twin of `launcher_llimphi`'s
7global bar, but it lives **inside** the app's window — for apps that run
8standalone rather than under the launcher shell.
9
10Stateless, Llimphi style: the host's `Model` carries which root menu is open
11(`Option<usize>`); the widget flattens the `AppMenu` and emits a `Msg` on each
12interaction.
13
14Two entry points:
15
16- `menubar_view` → the row of titles, for the top of `App::view`.
17- `menubar_overlay` → the open menu's dropdown, for `App::view_overlay` (returns
18  `None` when nothing is open).
19
20Each item's `command` is the id the app understands (convention `menu.<verb>`,
21see `app_bus::AppMenu::standard`); the widget bounces it back through
22`on_command`.
23
24---
25
26Part of **llimphi** — see [llimphi](../../README.md).

README.md

llimphi-widget-menubar

An app's main menu bar.

Every Llimphi app declares an app_bus::AppMenu (File / Edit / View / Help …) and mounts it in-window with this widget. It is the twin of launcher_llimphi's global bar, but it lives inside the app's window — for apps that run standalone rather than under the launcher shell.

Stateless, Llimphi style: the host's Model carries which root menu is open (Option<usize>); the widget flattens the AppMenu and emits a Msg on each interaction.

Two entry points:

Each item's command is the id the app understands (convention menu.<verb>, see app_bus::AppMenu::standard); the widget bounces it back through on_command.


Part of llimphi — see llimphi.