Module capture

Source
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§

CaptureHandle
Thread-safe queue of window/element capture requests for UiApp.
CaptureRequest
Pending capture with target and render parameters.
CaptureResult
Completed capture payload (frame + optional element bounds).
FrameCaptureHook
Thread-safe hook to request a one-shot capture on the next redraw.
FrameCaptureResult
Result of a single-shot frame capture.

Enums§

CaptureError
Capture failure (missing window/element, crop, encode, render).
CaptureTarget
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_png is false.

Type Aliases§

CaptureRequestId
Opaque id for a capture request.