getWindowHeight.lua 545 B

123456789101112131415161718192021222324
  1. return {
  2. tag = 'system-window',
  3. summary = 'Get the height of the window.',
  4. description = 'Returns the height of the desktop window.',
  5. arguments = {},
  6. returns = {
  7. width = {
  8. type = 'number',
  9. description = 'The height of the desktop window.'
  10. }
  11. },
  12. variants = {
  13. {
  14. arguments = {},
  15. returns = { 'width' }
  16. }
  17. },
  18. notes = 'If the window is not open, this will return zero.',
  19. related = {
  20. 'lovr.system.getWindowWidth',
  21. 'lovr.system.getWindowDimensions',
  22. 'lovr.system.isWindowOpen'
  23. }
  24. }