Difference between revisions of "Event.APPLICATION RESIZE"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
'''Available since:''' Gideros 2015.03.22<br/> | '''Available since:''' Gideros 2015.03.22<br/> | ||
'''Value:''' applicationResize<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)
- Application:canOpenUrl
- Application:checkPermission
- Application:configureFrustum
- Application:enableDrawInfo
- Application:enableOnDemandDraw
- Application:exit
- Application:get
- Application:getApiVersion
- Application:getAppId
- Application:getBackgroundColor
- Application:getClipboard
- Application:getContentHeight
- Application:getContentWidth
- Application:getDeviceHeight
- Application:getDeviceInfo
- Application:getDeviceName
- Application:getDeviceOrientation
- Application:getDeviceSafeArea
- Application:getDeviceWidth
- Application:getFps
- Application:getKeyboardModifiers
- Application:getLanguage
- Application:getLocale
- Application:getLogicalBounds
- Application:getLogicalHeight
- Application:getLogicalScaleX
- Application:getLogicalScaleY
- Application:getLogicalTranslateX
- Application:getLogicalTranslateY
- Application:getLogicalWidth
- Application:getNativePath
- Application:getOrientation
- Application:getProjectProperties
- Application:getScaleMode
- Application:getScreenDensity
- Application:getTextureMemoryUsage
- Application:isPlayerMode
- Application:openUrl
- Application:requestPermissions
- Application:set
- Application:setBackgroundColor
- Application:setClipboard
- Application:setEventMerging
- Application:setFps
- Application:setFullScreen
- Application:setKeepAwake
- Application:setKeyboardVisibility
- Application:setLogicalDimensions
- Application:setOrientation
- Application:setScaleMode
- Application:setTextInput
- Application:setWindowSize
- Application:vibrate