-
Notifications
You must be signed in to change notification settings - Fork 76
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
getDisplayBounds() for nimx #516
Comments
Nimx has a notion of |
And then I reread your comment and understand that you meant something else entirely :) Yes, |
I could make a PR if you want, to add it to or if you want to make changes, like changing the error handling to throw an exception rather than call quit or something Right now I'm on my linux laptop trying to bang out a linux X11 version and then I should have the three main desktop bases covered for this. |
The x11 one seems to be working now, so I edited the code above to add it |
I like to scale my windows based on the monitor resolution, which most gui libraries have a mechanism to allow.
But I haven't been able to find a way to get this info in nimx without manually stepping into SDL2 or winapi
I have both an SDL2 implementation as well as a winapi implementation I've written for nimx for my application to allow this, I haven't written a linux or macos version since I can't test them currently (and I'd never be able to test a mac version, I don't own a mac)
It'd be nice to have this functionality in nimx itself, and if you find my code useful and not broken code that just happens to work, feel free to use it.
If it's acceptable (which I doubt since you might not want it calling quit), I'd be willing to make a PR myself if you'd like, though I'm not sure where best to put it, maybe in the
nimx/private/windows/XX_window.nim
files?The text was updated successfully, but these errors were encountered: