resize.lua 561 B

12345678910111213141516171819202122232425
  1. return {
  2. tag = 'callbacks',
  3. summary = 'Called when the window is resized.',
  4. description = 'This callback is called when the desktop window is resized.',
  5. arguments = {
  6. {
  7. name = 'width',
  8. type = 'number',
  9. description = 'The new width of the window.'
  10. },
  11. {
  12. name = 'height',
  13. type = 'number',
  14. description = 'The new height of the window.'
  15. }
  16. },
  17. returns = {},
  18. related = {
  19. 'Pass:getDimensions',
  20. 'Pass:getWidth',
  21. 'Pass:getHeight',
  22. 'lovr.headset.getDisplayDimensions',
  23. 'lovr.conf'
  24. }
  25. }