Difference between revisions of "Event.APPLICATION RESIZE"

From GiderosMobile
(added oleg's example)
m
Line 8: Line 8:
 
=== Examples ===
 
=== Examples ===
 
<source lang="lua">
 
<source lang="lua">
stage:addEventListener(Event.APPLICATION_RESIZE, function()
+
stage:addEventListener(Event.APPLICATION_RESIZE,function()
print("--- RESIZE ---")
+
local minX, minY, maxX, maxY = application:getLogicalBounds()
 +
print("--- RESIZE ---",(minX - maxX) * -1)
 
end)
 
end)
 
</source>
 
</source>
 +
  
 
{{Application}}
 
{{Application}}
 
{{EventDispatcher}}
 
{{EventDispatcher}}

Revision as of 21:56, 2 January 2020

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)