windows-rs
windows-rs copied to clipboard
Rust for Windows
### Which crate is this about? windows ### Crate version 0.32.0 ### Summary ```rust #[implement(Windows::Win32::Graphics::Imaging::IWICBitmapFrameDecode)] pub struct Foo {} impl IWICBitmapSource_Impl for Foo { fn GetSize(&mut self, puiwidth: *mut u32,...
Currently, generated interface implementation (including callback consumption) does not catch unwinding panics. By default, when a panic occurs in user code, the thread starts unwinding all the way down to...
### Motivation It’s close to impossible to use `windows-bindgen` without documentation. ### Drawbacks None ### Rationale and alternatives The `Gen` class has mysterious fields with cryptic names which say nothing...
My Rust lifetime foo is weak so be gentle. [A recent change](https://github.com/microsoft/windows-rs/blob/master/crates/gen/src/delegate.rs#L161) was made to delegate generation; delegates now appear to be generated with a return that is bound to...
Dedicating an issue to this topic. Originally part of #81 (huge thread).
Some APIs like [`VSSetConstantBuffers`](https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Graphics/Direct3D11/struct.ID3D11DeviceContext.html#method.VSSetConstantBuffers) take an `*const Option`. Given a `&ID3D11Buffer` I'd like to be able to construct a `&Option` to pass to a function like this.
See the answer at the end of https://stackoverflow.com/questions/70786125/should-i-try-to-access-self-in-a-pointerpressed-event-handler-for-a-coreapp-in-t
the following code does not compile since Array is not IIterable. Yet this is how this function should be called in the window documentation. ``` let mouse_injection = InjectedInputMouseInfo::new().unwrap(); mouse_injection.SetDeltaY(y...
There are a few places where the windows crate panics instead of allowing failures to propagate, notably around the construction of strings and delegates. All such calls should return a...