ferroui_winui
module · ferroui-winui · v0.5.0
module ferroui_winui
ferroui-winui
The framework's content inside a WinUI 3 (Windows App SDK) application:
FerroSwapChainPanel, a SwapChainPanel the content renders into
through a composition swap chain of the Windows backend, with pointer,
keyboard and text input, cursors, drag and drop and automation.
The design, the bindings, the threads and how it is tested are in
docs/porting/winui.md. The crate compiles on every host; what calls the
system is compiled for Windows only (cfg(windows)), and the logic that
maps values (keys, cursors, control types, pointer events, text) is
compiled, and tested, everywhere.
An application initialises the Windows App SDK (WindowsAppSdk), sets
the framework up with the Windows backend and its ANGLE rendering mode
(the swap chain of the panel is created on ANGLE's Direct3D 11 device),
runs the XAML application (XamlApplication::start) and, from its
launch, puts a panel into a window of WinUI with the content it shows.
Once Application.Start has returned and the bootstrap is shut down, it
ends the process with end_process, as the runtime of the reference
ends it (docs/porting/winui.md, section 7.7).
Contents
WindowsAppSdkOptions— struct
Availability
Extracted for aarch64-apple-darwin, x86_64-pc-windows-msvc. Cargo features are listed in the crate index.