parasyte/pixels

Feature request: Getting window position from pixel position

Offen

#366 geöffnet am 20.06.2023

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Rust (147 Forks)auto 404
enhancementgood first issue

Repository-Metriken

Stars
 (2.121 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

I'm sure this usecase is very esoteric, but I'm using egui with pixels and I wanted to put egui objects on the same screen location as objects I'm drawing on the pixel buffer, but to do that I need some way of going from pixel positions to window positions, and surprisingly there doesn't seem to be a way right now, even though there is a way to go from window position to pixel position via window_pos_to_pixel. Even without a crazy usecase like that, there are probably other scenarios where this would be something you want.

Contributor Guide