Difference between revisions of "love.visible"
m (Fix and shorten example.) |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | love.visible( | + | love.visible( visible ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|boolean| | + | {{param|boolean|visible|True if the window is visible, false if it isn't.}} |
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
Line 20: | Line 20: | ||
[[Category:Callbacks]] | [[Category:Callbacks]] | ||
{{#set:Description=Callback function triggered when window is shown or hidden.}} | {{#set:Description=Callback function triggered when window is shown or hidden.}} | ||
− | {{#set:Subcategory= | + | {{#set:Subcategory=Window}} |
== Other Languages == | == Other Languages == | ||
{{i18n|love.visible}} | {{i18n|love.visible}} |
Latest revision as of 22:31, 7 March 2019
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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info