Expand description
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).
Modules§
- interop
- The interfaces of the Windows Runtime the integration calls and
implements: WinUI 3 (
Microsoft.UI.Xaml), its input, dispatching and content namespaces (Microsoft.UI.*), and what it uses of the system (Windows.UI.Text.Core,Windows.ApplicationModel.DataTransfer,Windows.Storage,Windows.Foundation).
Structs§
- Windows
AppSdk Options - What the bootstrap asks for: the version of the framework package and how a failure is reported.
Functions§
- parse_
major_ minor - Parses
major.minor(as1.6) into the form ofWindowsAppSdkOptions::major_minor_version.