Screen

API ReferenceRendererScreen

Source


Screen.touch

Static property of
Screen
Type
Boolean
Default
false
Read Only
Text {
    text: Screen.touch ? 'Touch' : 'Mouse'
    font.pixelSize: 30
}

Source


Screen.width

Static property of
Screen
Type
Float
Default
1024
Read Only

Source


Screen.height

Static property of
Screen
Type
Float
Default
800
Read Only

Source


Screen.orientation

Static property of
Screen
Type
String
Default
'Portrait'
Read Only

May contains: Portrait, Landscape, InvertedPortrait, InvertedLandscape.


Screen.onOrientationChange()

Static property of
Screen
Parameters
  • oldValue — String
Type
Signal

Source

results matching ""

    No results matching ""