hasWindow.lua 462 B

123456789101112131415161718
  1. return {
  2. tag = 'window',
  3. summary = 'Check if the window is created.',
  4. description = 'Returns whether the desktop window is currently created.',
  5. arguments = {},
  6. returns = {
  7. {
  8. name = 'present',
  9. type = 'boolean',
  10. description = 'Whether a window is created.'
  11. }
  12. },
  13. notes = 'Most of the `lovr.graphics` functionality will only work if a window is created.',
  14. related = {
  15. 'lovr.graphics.createWindow',
  16. 'lovr.conf'
  17. }
  18. }