Expand description
Frame capture for visual tests and agent tooling. Low-level one-shot renderer hook and thread-safe declarative capture queue.
Capture coordinates are physical pixels. Declarative requests are retained across wake failures and completed results remain queued until explicitly taken.
Structs§
- Capture
Handle - Thread-safe queue of window/element capture requests for
UiApp. - Capture
Request - Pending capture with target and render parameters.
- Capture
Result - Completed capture payload (frame + optional element bounds).
- Frame
Capture Hook - Thread-safe hook to request a one-shot capture on the next redraw.
- Frame
Capture Result - Result of a single-shot frame capture.
Enums§
- Capture
Error - Capture failure (missing window/element, crop, encode, render).
- Capture
Target - What to capture: full window or a single element by view key.
Functions§
- crop_
captured_ frame - Crops a full-window RGBA capture to
rect_px(physical pixels). - strip_
png_ if_ disabled - Clears embedded PNG data when
encode_pngis false.
Type Aliases§
- Capture
Request Id - Opaque id for a capture request.