ui
ui copied to clipboard
How to get *screen size* platform independence.
I want to know the max screen width
and max screen height
under Android
, IOS
, Linux
, Windows
, MacOS
, etc, anyone can help me?
Thanks a lot.
Actually you never want to know just max screen width and height (assuming millimeters
). You additionally need to know either DPI (or alternatively number of pixels horizontally and number of pixels vertically). For explanation etc. see https://github.com/vurtun/nuklear/issues/283#issuecomment-271161978 (I'd strongly recommend reading the whole thread).
And they should be implemented in gg
.
But I want to draw a fullscreen
window for my app, I get gg.screen_size()
function but no file of X11/Xlib.h
, though I also install libXi-dev
and mesa-common-dev
package, why?
You mean this? https://github.com/vlang/v/blob/master/vlib/gg/gg.v#L640
OIC, not imple
You mean this? https://github.com/vlang/v/blob/master/vlib/gg/gg.v#L640
oh, I see, not yet.