Difference between revisions of "love.visible"
m |
m (Fix and shorten example.) |
||
Line 13: | Line 13: | ||
<source lang="lua"> | <source lang="lua"> | ||
function love.visible(v) | function love.visible(v) | ||
− | + | print(v and "Window is visible!" or "Window is not visible!"); | |
− | print("Window is | ||
− | |||
− | |||
− | |||
end | end | ||
</source> | </source> |
Revision as of 03:27, 14 November 2014
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( v )
Arguments
boolean v
- Window visibility.
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