Skip to main content

Crate lumen_os_mime

Crate lumen_os_mime 

Source
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 Action ties together the menu item, toolbar button, and keyboard shortcut that all do the same thing - the model Qt’s QAction and GTK 4’s GAction use.
KeyChord
A keyboard-shortcut chord. Stored as a muda / global-hotkey-style accelerator string (e.g. "Ctrl+S", "Cmd+Shift+P").
MimePayload
A MIME-typed multi-format payload.

Enums§

MimeKind
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: |-separated id:label entries, where - is a separator.