DVUI

testing

Fields

#
allocator:std.mem.Allocator
std.mem.Allocator
backend:*Backend
*Backend
window:*Window
*Window
image_dir:?[]const u8
?[]const u8
snapshot_dir:[]const u8
[]const u8
snapshot_index:u8
u8

Types

#

Functions

#
moveTo

Moves the mouse to the center of the widget

click

Presses and releases the button at the current mouse position

settle

Runs frames until dvui.refresh was not called.

step

Runs exactly one frame, returning the wait_time from dvui.Window.end.

capturePng

Captures one frame and return the png data for that frame.

snapshot

Runs exactly one frame, creating a hash of the state of that frame and compares to an earilier saved hash,

saveImage

Internal use only!

Constants

#
is_dvui_doc_gen_runner

Used internally for documentation generation

Variables

#
widget_hasher

Used to hash widget data during a frame for snapshot testing

Error Sets

#