Difference between revisions of "love.resize"

(Created page with "{{newin|0.9.0|090|type=callback}} Callback function triggered when window is resized. == Function == === Synopsis === <source lang="lua"> love.resize( w, h ) </source> === Ar...")
 
m (Tweaked description)
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=callback}}
 
{{newin|[[0.9.0]]|090|type=callback}}
Callback function triggered when window is resized.
+
Called when the window is resized.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 20: Line 20:
 
* [[parent::love]]
 
* [[parent::love]]
 
[[Category:Callbacks]]
 
[[Category:Callbacks]]
{{#set:Description=Callback function triggered when window is resized.}}
+
{{#set:Description=Called when the window is resized.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.resize}}
 
{{i18n|love.resize}}

Revision as of 23:56, 26 August 2013

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

Called when the window is resized.

Function

Synopsis

love.resize( w, h )

Arguments

number w
The new width.
number h
The new height.

Returns

Nothing.

Example

function love.resize(w, h)
  print(("Window resized to width: %d and height: %d."):format(w, h))
end

See Also

Other Languages