Module drop_zone
Expand description
DropZone: where files can be dropped (an import target, an image to
flash, a book to add).
At rest the zone is a dashed edge derived from its ground around a centred icon, title and an optional line saying what it accepts. Only while a drag hovers it does it take colour: your colour on the edge and the text-selection tint inside, the same as every drop indicator. An optional action (“Choose files”) offers the same route without dragging.
DropZoneFace paints the same geometry for immediate-mode callers.
Structs§
- Drop
Zone - A retained drop zone. See the module docs.
- Drop
Zone Face - Immediate-mode drop zone.
- Drop
Zone Props - Where files go: drag them here, or press the button to choose them (an import, a picture to swap, a file to open). At rest it is a dashed edge around a glyph and a title; while a drag hovers it takes your colour.