Module headless

Module headless 

Source
Expand description

Headless harness for UI testing and benchmarking.

This module provides utilities for running Floem views without creating an actual window. It allows simulating user interactions and verifying view behavior in tests and benchmarks.

§Example

use floem::headless::HeadlessHarness;
use floem::views::*;

let harness = HeadlessHarness::new(
    stack((
        button("Behind").z_index(1),
        button("In Front").z_index(10),
    ))
);

// Simulate a click at (50, 50)
let result = harness.pointer_down(50.0, 50.0);

Structs§

EventResult
Result of an event dispatch operation.
HeadlessHarness
A headless harness for UI testing and benchmarking.