getDimensions.lua 528 B

1234567891011121314151617181920212223
  1. return {
  2. tag = 'window',
  3. summary = 'Get the dimensions of the window.',
  4. description = 'Returns the dimensions of the desktop window.',
  5. arguments = {},
  6. returns = {
  7. {
  8. name = 'width',
  9. type = 'number',
  10. description = 'The width of the window, in pixels.'
  11. },
  12. {
  13. name = 'height',
  14. type = 'number',
  15. description = 'The height of the window, in pixels.'
  16. }
  17. },
  18. related = {
  19. 'lovr.graphics.getWidth',
  20. 'lovr.graphics.getHeight',
  21. 'lovr.graphics.getPixelDensity'
  22. }
  23. }