Skip to content

Rust + Windows Composition and WinUI experiments and samples

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE_winit
Notifications You must be signed in to change notification settings

contextfree/rust-winui-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-winui-experiments

Rust + Windows Composition and WinUI experiments and samples

Currently just contains a basic sample that uses Windows.UI.Composition to draw some squares in a Win32 window. Its code should show both the capabilities of our winrt-rust projection and what it's still missing (e.g., because we don't yet support WinRT inheritance, using Composition subclasses like SpriteVisual requires extra calls to query_interface and unsafe transmute)

git clone https://github.com/contextfree/winrt-rust.git -b combase-macro

You'll need to run this from rust-winui-experiments's parent directory, so it gets cloned into a sibling directory (e.g. /repos/winrt-rust and /repos/rust-winui-experiments)

Some of this code (the window.rs and window_events.rs files) is derived from the winit project

( https://github.com/rust-windowing/winit ),

created by the winit contributors including Pierre Krieger and Francesca Plebani. It has been extensively modified to remove most functionality not needed by the present project. winit is licensed under Apache License 2.0 which can be found in this project as "LICENSE_winit"

About

Rust + Windows Composition and WinUI experiments and samples

Resources

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE_winit

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages