ferroui_headless
module · ferroui-headless · v0.5.0
module ferroui_headless
The headless platform.
An application runs without a screen: its windows are sized and
activated like the windows of a desktop platform, input is simulated
through the extensions of a top-level (HeadlessWindowExtensions) and
frames are rendered when the render timer ticks, which a test can force
(FerroHeadlessPlatform::force_render_timer_tick).
With the headless drawing (the default of
FerroHeadlessPlatformOptions) nothing is drawn: geometries behave
like their bounds and bitmaps have a size and no content. With another
rendering backend the frames of a window are kept, and
HeadlessWindowExtensions::get_last_rendered_frame returns the last
one.
An application uses the platform with
FerroHeadlessPlatformExtensions::use_headless on its builder.
Contents
FerroHeadlessPlatform— structFerroHeadlessPlatformExtensions— traitFerroHeadlessPlatformOptions— structFerroTestApplicationAttribute— structFerroTestIsolationAttribute— structFerroTestIsolationLevel— enumFerroTestAssembly— structHeadlessUnitTestSession— structHeadlessUnitTestTask— structHeadlessWindowExtensions— traitIHeadlessTouchPointer— trait
Availability
Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.