Difference between revisions of "Event.APPLICATION RESIZE"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2015.03.22<br/> === Description === This event is dispatched when app window has changed its size on Desktops")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
 
 
'''Available since:''' Gideros 2015.03.22<br/>
 
'''Available since:''' Gideros 2015.03.22<br/>
 +
'''Value:''' applicationResize<br/>
 +
'''Defined by:''' [[EventDispatcher]]<br/>
 +
 
=== Description ===
 
=== Description ===
This event is dispatched when app window has changed its size on Desktops
+
This event is dispatched when app window has changed its size on Desktops.
 +
 
 +
=== Examples ===
 +
<syntaxhighlight lang="lua">
 +
stage:addEventListener(Event.APPLICATION_RESIZE,function()
 +
local minX, minY, maxX, maxY = application:getLogicalBounds()
 +
print("--- RESIZE ---",(minX - maxX) * -1)
 +
end)
 +
</syntaxhighlight>
 +
 
 +
 
 +
{{Application}}
 +
<!--{{EventDispatcher}}-->

Latest revision as of 14:27, 13 July 2023

Available since: Gideros 2015.03.22
Value: applicationResize
Defined by: EventDispatcher

Description

This event is dispatched when app window has changed its size on Desktops.

Examples

stage:addEventListener(Event.APPLICATION_RESIZE,function()
	local minX, minY, maxX, maxY = application:getLogicalBounds()
	print("--- RESIZE ---",(minX - maxX) * -1)
end)