Difference between revisions of "love.window.close"
m |
Nikeinikei (talk | contribs) (→Notes) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
{{notice|[[love.graphics]] functions and objects will cause a hard crash of LÖVE if used while the window is closed.}} | {{notice|[[love.graphics]] functions and objects will cause a hard crash of LÖVE if used while the window is closed.}} | ||
+ | {{notice|This function does not quit the program. Use [[love.event.quit]] to do that.}} | ||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 12: | Line 13: | ||
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
+ | == Notes == | ||
+ | This only closes the window and leaves LÖVE running in the background. If you want to stop the program, consider [[love.event.quit]]. | ||
+ | |||
== See Also == | == See Also == | ||
* [[parent::love.window]] | * [[parent::love.window]] | ||
* [[love.window.setMode]] | * [[love.window.setMode]] | ||
+ | * [[love.graphics.isActive]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Closes the window.}} | {{#set:Description=Closes the window.}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|love.window.close}} | {{i18n|love.window.close}} |
Latest revision as of 15:40, 17 October 2022
Available since LÖVE 0.10.0 |
This function is not supported in earlier versions. |
Closes the window. It can be reopened with love.window.setMode.
love.graphics functions and objects will cause a hard crash of LÖVE if used while the window is closed. |
This function does not quit the program. Use love.event.quit to do that. |
Function
Synopsis
love.window.close( )
Arguments
None.
Returns
Nothing.
Notes
This only closes the window and leaves LÖVE running in the background. If you want to stop the program, consider love.event.quit.
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