mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
add love.exposed and love.occluded event callbacks.
Add love.window.isOccluded. Resolves #2004.
This commit is contained in:
@@ -198,6 +198,13 @@ love.test.window.isMinimized = function(test)
|
||||
end
|
||||
|
||||
|
||||
-- love.window.isOccluded
|
||||
love.test.window.isOccluded = function(test)
|
||||
love.window.focus()
|
||||
test:assertFalse(love.window.isOccluded(), 'check window not occluded')
|
||||
end
|
||||
|
||||
|
||||
-- love.window.isOpen
|
||||
love.test.window.isOpen = function(test)
|
||||
-- check open initially
|
||||
@@ -210,7 +217,6 @@ end
|
||||
love.test.window.isVisible = function(test)
|
||||
-- check visible initially
|
||||
test:assertTrue(love.window.isVisible(), 'check window visible')
|
||||
-- we check closing in test.window.close
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user