Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get physical size of a monitor/window in millimeters #3858

Open
GeorgeAzma opened this issue Aug 13, 2024 · 1 comment
Open

Get physical size of a monitor/window in millimeters #3858

GeorgeAzma opened this issue Aug 13, 2024 · 1 comment
Labels
S - enhancement Wouldn't this be the coolest?

Comments

@GeorgeAzma
Copy link

Description

similar to glfwGetMonitorPhysicalSize().
I was making a ruler app which needs to know physical size of a monitor (27in).
I couldn't find something like that in winit, wondering if this is possible and would you consider adding it.

Relevant platforms

No response

@GeorgeAzma GeorgeAzma added the S - enhancement Wouldn't this be the coolest? label Aug 13, 2024
@kchibisov
Copy link
Member

Should be fine as long it's an optional data. Would use Optional<PhysicalSize<u32>> and define it in mm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S - enhancement Wouldn't this be the coolest?
Development

No branches or pull requests

2 participants