diff options
| author | Alexander <alex@cogarr.net> | 2020-06-29 15:29:03 -0400 |
|---|---|---|
| committer | Alexander <alex@cogarr.net> | 2020-06-29 15:29:03 -0400 |
| commit | 80789508b9655d25629223b9dcc84b4cfb77ce45 (patch) | |
| tree | 37e140e532af61c1ca4699c8b6254cf2cb07ed02 /src/client/lua_api/load_gui.cpp | |
| parent | 44a1421c393632978d59c0698a93ae22243b97e9 (diff) | |
| download | brokengine-80789508b9655d25629223b9dcc84b4cfb77ce45.tar.gz brokengine-80789508b9655d25629223b9dcc84b4cfb77ce45.tar.bz2 brokengine-80789508b9655d25629223b9dcc84b4cfb77ce45.zip | |
Updates for mdoc
Also more tests
Diffstat (limited to 'src/client/lua_api/load_gui.cpp')
| -rw-r--r-- | src/client/lua_api/load_gui.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/client/lua_api/load_gui.cpp b/src/client/lua_api/load_gui.cpp index 64b9711..18fe78f 100644 --- a/src/client/lua_api/load_gui.cpp +++ b/src/client/lua_api/load_gui.cpp @@ -1,6 +1,5 @@ -/*** +/* Utilities for drawing GUI things on the screen -@module gui */ #include <stdio.h> @@ -47,11 +46,19 @@ int screenheight(lua_State* L); int getroot(lua_State *L); /*** +Get the width of the screen. +Get the width of the screen in pixels. This should have been set with the options +in @{deviceinit.lua}, but may change of the course of the application's life (ex, +if the user resizes the screen) @function gui.scrw() @treturn number The width of the screen */ /*** +Get the height of the screen. +Get the height of the screen in pixels. This should have been set with the options +in @{deviceinit.lua}, but may change of the course of the application's life (ex, +if the user resizes the screen) @function gui.scrh() @treturn number The height of the screen */ |
