Expand description
Shared MimePayload and Action abstractions for the lumen-os-*
crates (lumen-os-clipboard, lumen-os-dnd, lumen-os-menu).
Mirrors Qt’s QMimeData / QAction and GTK 4’s GdkContentProvider
/ GAction. Pure-data - no OS or ECS dependency lives here so every
lumen-os-* crate can pull it without dragging in the others.
Structs§
- Action
- A high-level user-invokable command. One
Actionties together the menu item, toolbar button, and keyboard shortcut that all do the same thing - the model Qt’sQActionand GTK 4’sGActionuse. - KeyChord
- A keyboard-shortcut chord. Stored as a
muda/global-hotkey-style accelerator string (e.g."Ctrl+S","Cmd+Shift+P"). - Mime
Payload - A MIME-typed multi-format payload.
Enums§
- Mime
Kind - A single MIME-typed payload entry kind.
Constants§
- SEPARATOR_
ID - Action id reserved for a menu separator. A backend that can draw one (a tray menu, a menu bar) turns an action carrying this id into its platform separator.
Functions§
- parse_
action_ spec - Read an action spec:
|-separatedid:labelentries, where-is a separator.