Expand description
A photo library’s widgets, for importing, culling and sorting images: the application owns its images, their marks and tags; the widgets show them and say what the user asked for.
grid: a virtualised thumbnail grid and the filmstrip (one row, sharing the grid’s selection), thumbnails supplied asynchronously, overlays, stacks, the culling keys, a rubber band;marks: ratings, colour labels and pick or reject flags, their widgets, and the culling keymap (Lightroom’s keys, auto-advance);compare: one to many images, a loupe or side by side, zoom and pan synced, a “best” marker, images dragged in and out;mode(with theapifeature): the library grid as a file browser’s view mode,LibraryGridMode;thumbs(with theapifeature): the file browser’s thumbnail provider as aThumbSource, and aBadgeas its chip;tags: tag chips and a tag input with completion;filter: a search field with filter chips, giving a structured filter;plugin: the steps (select, rate, label, flag, tag, stack, filter), the commands agents run, andLibraryPlugin.
Guide: docs/library.md.
Re-exports§
pub use grid::change;pub use grid::Badge;pub use grid::Change;pub use grid::LibraryItems;pub use grid::LibraryOutput;pub use grid::LibraryState;pub use grid::Signal;pub use grid::Stack;pub use grid::Thumb;pub use grid::ThumbGrid;pub use grid::ThumbSource;pub use grid::Zoom;pub use marks::ColorLabel;pub use marks::CullAction;pub use marks::CullKeymap;pub use marks::Flag;pub use marks::Labels;pub use marks::Marks;pub use mode::LibraryGridMode;pub use mode::LibrarySignals;pub use plugin::LibraryPlugin;
Modules§
- compare
- One surface for one to many images: one image is a loupe (the whole surface), several are a survey, side by side in a grid that grows with their count (four in a square, six in three columns), with their zoom and pan synced (an option), an active image and a “best” marker.
- filter
- A search field with filter chips, giving the application a
structured
Filter. - grid
- A virtualised thumbnail grid, and the filmstrip (the same view in one row), over images the application lists and thumbnails it supplies.
- marks
- An image’s marks: a rating (0 to 5 stars), colour labels and a pick or reject flag; the widgets editing them; the culling keys.
- mode
- The library grid as a file browser’s view mode: a folder shown the way the Library shows photos.
- plugin
- The library’s steps (ADR 0011), its commands (the agent surface), the
registry of the libraries drawn with an application, and
LibraryPlugindeclaring them. - tags
- Tag chips and a tag input completing from the application’s tags.
- thumbs
- The file browser’s thumbnail contract in the library’s views: one
ThumbnailProviderserves the browser, the picker, the grid, the filmstrip and the comparison.
Structs§
- Library
Tokens - The library’s content colours, from the installed theme: optional
component tokens (
library.*) falling back on system ones, so every theme draws them without declaring anything. The boxes the marks sit on (cells, pills, chips, toggles, panes) are the kit’s (egui_pop_core::kit::Kit:thumb-cell,pill,tag-chip…).
Enums§
- Grid
Resize - How a thumbnail grid’s zoom answers a resize: what the zoom (its
slider,
Ctrland+or-,Ctrland the wheel) means, and so what a wider grid shows. - Label
Style - How colour labels are drawn, wherever they show (the marks bar, the
grid’s badges): the application’s choice (
LabelStyle::set, a setting for colour-blind users, say), else the theme’s (library.label-style:swatchorshape), else swatches. - Tone
- A badge’s tone: egui-pop’s one tone (
egui_pop_core::kit::Tone). The default kit’spillgivesinfo,success,warning,dangerandrecord; a tone it does not give is drawn as its own (neutral) box. What a part says, the same names for every component.Neutralis the component’s own box (no tone); the others are read fromcomponent.tone.<name>, their defaults aliasing the system’s status tokens (accent.default,info,success,warning,danger,text.muted;recordaliasesdangertoo). Serialized by its token name ("danger").
Functions§
- fitted
- The largest rectangle of aspect
w:hinsideouter, centred.