Difference between revisions of "love.visible"

m (Fix and shorten example.)
m
Line 4: Line 4:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
love.visible( v )
+
love.visible( visible )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|boolean|v|Window visibility.}}
+
{{param|boolean|visible|True if the window is visible, false if it isn't.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 01:24, 30 January 2016

Available since LÖVE 0.9.0
This callback is not supported in earlier versions.

Callback function triggered when window is minimized/hidden or unminimized by the user.

Function

Synopsis

love.visible( visible )

Arguments

boolean visible
True if the window is visible, false if it isn't.

Returns

Nothing.

Example

function love.visible(v)
    print(v and "Window is visible!" or "Window is not visible!");
end

See Also


Other Languages