Difference between revisions of "love.graphics.setIcon"

(Created page with '{{newin|0.7.0}} Set window icon. == Function == === Synopsis === <source lang="lua"> love.graphics.setIcon( drawable ) </source> === Arguments === {{param|Drawable|drawable|…')
 
m (replaced an newinoldin.)
 
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{newin|[[0.7.0]]}}
+
{{newinoldin|[[0.7.0]]|070|[[0.9.0]]|090|type=function|text=Moved to the [[love.window]] module as [[love.window.setIcon]]}}
 
+
Set window icon. This feature is not completely supported on Windows (apparently [https://github.com/love2d/love/issues/148 an SDL bug], not a LÖVE bug).
Set window icon.
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
love.graphics.setIcon( drawable )
+
love.graphics.setIcon( image )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|Drawable|drawable|A drawable object.}}
+
{{param|Image|image|The window icon.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
=== Note ===
 
The icon should be a 32x32px png image.
 
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Set window icon.}}
 
{{#set:Description=Set window icon.}}
 +
{{#set:Sub-Category=Window}}
 +
== Other Languages ==
 +
{{i18n|love.graphics.setIcon}}

Latest revision as of 09:53, 30 June 2023

Available since LÖVE 0.7.0 and removed in LÖVE 0.9.0
Moved to the love.window module as love.window.setIcon.

Set window icon. This feature is not completely supported on Windows (apparently an SDL bug, not a LÖVE bug).

Function

Synopsis

love.graphics.setIcon( image )

Arguments

Image image
The window icon.

Returns

Nothing.

See Also


Other Languages