{{newinoldin|[[0.9.0]]|090|[[0.10.0]]|100|type=function|text=Use [[love.graphics.getWidth]] or [[love.window.getMode]] instead}}
Gets the width of the window.
== Function ==
=== Synopsis ===
<source lang="lua">
width = love.window.getWidth( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|width|The width of the window.}}
== See Also ==
* [[parent::love.window]]
* [[love.window.getHeight]]
* [[love.window.getDimensions]]
* [[love.window.setMode]]
[[Category:Functions]]
{{#set:Description=Gets the width of the window.}}
== Other Languages ==
{{i18n|love.window.getWidth}}