Robert Bragg

Results 207 comments of Robert Bragg

Oh, geeze; I was thinking of this issue when I asked ChatGPT this today :-) ``` Can you write a Rust attribute proc macro that could parse a JNI method...

yeah I've been meaning to do an update of all those examples to update egui + winit so can hopefully look at that soon

It's notably awkward to add `#![deny(missing_debug_implementations)]` without also updating `jni_sys` to implement Debug, e.g. for `JavaVMInitArgs`

For reference here, the `jni-sys` repo has now been moved to the `jni-rs` organization and we are now in a better position to make this change to the `jni-sys` crate....

> winit could get this as well(from display server, it's available on at least all desktop platforms), though it's true that graphics drivers also provide such information and some provide...

Winit shouldn't need to have separate events to distinguish when a redraw is technically required due to window-system specific details (such as Expose events on non-composited x11) or e.g. resizing...

> I'm pretty sure we're talking past each others. yeah, I guess maybe. I can try and be more specific with how I'm imagining the implementation would work in my...

> > tbh this isn't a concept I would expose to applications - I think RedrawRequested events can be implicitly throttled because most window systems have mechanisms (such as drawRect,...

We have a bit of a zig zag conversation going atm, but just to note that I commented here https://github.com/rust-windowing/winit/pull/2883#issuecomment-1595863774 that I'm not suggesting that the `user/system` distinction needs to...

One solution for this is to have events that effectively have an out parameter of some kind. The event handling in android-activity (used in the Android backend) is similar to...