vlang / ui

A cross-platform UI library written in V

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get *screen size* platform independence.

changrui opened this issue · comments

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 vurtun/nuklear#283 (comment) (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?

OIC, not imple

You mean this?
https://github.com/vlang/v/blob/master/vlib/gg/gg.v#L640

oh, I see, not yet.