Skip to main content

Module action

Module action 

Source
Expand description

Every command the editor can run, as data.

An action has two halves. The documentable half (its id, label, icon and one-line description) is static data, and lives here beside the presets/*.yaml bindings that name the same ids. The behavioural half (what running it does) closes over Svelte runes and lives in frontend/src/actions/. The two join by id.

Actions group one file per category (actions/edit.rs, actions/view.rs, …), each a const ACTIONS table plus one register(): the same many-items-per-file shape config/sections/ uses, and the shape GIMP’s per-domain GimpActionEntry tables use. build.rs discovers the files, so a new category is a new file and nothing else.

Structs§

ActionCategory
What each file in actions/ returns from its register(): a category’s id and every action in it. A category is a group rather than an item, so one file carries many actions and states the grouping once.
ActionDef
One action’s documentation.

Constants§

CATALOG_ID
Id of the catalog this registry projects into.

Functions§

catalog
The action catalog: every registered action, grouped by category.