# ferroui_winui

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-winui/

**module** · [`ferroui-winui`](/docs/0.5.0/api/ferroui-winui/) · v0.5.0

```rust
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).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Windows/FerroUI.WinUI/lib.rs#L1)

## Contents

- [`WindowsAppSdkOptions`](/docs/0.5.0/api/ferroui-winui/struct-windowsappsdkoptions/) — struct

## Availability

Extracted for `aarch64-apple-darwin`, `x86_64-pc-windows-msvc`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
