Difference between revisions of "Event.APPLICATION RESIZE"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 12: Line 12:
 
print("--- RESIZE ---",(minX - maxX) * -1)
 
print("--- RESIZE ---",(minX - maxX) * -1)
 
end)
 
end)
</source>
+
</syntaxhighlight>
  
  
 
{{Application}}
 
{{Application}}
 
<!--{{EventDispatcher}}-->
 
<!--{{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)