DisplayInfo QML Type
The DisplayInfo element provides information about the display of the device. More...
Signals
- onBacklightStateChanged(int screen, BacklightState state)
Methods
- BacklightState backlightState(int screen)
- int brightness(int screen)
- int colorDepth(int screen)
- int contrast(int screen)
- int dpiX(int screen)
- int dpiY(int screen)
- int physicalHeight(int screen)
- int physicalWidth(int screen)
Detailed Description
Signal Documentation
This handler is called whenever the state of screen has been changed to state.
Note: The corresponding handler is onOnBacklightStateChanged
.
Method Documentation
Returns the backlight state of the given screen. Possible values are:
- DisplayInfo.BacklightUnknown - The state of the backlight is unknown.
- DisplayInfo.BacklightOff - Backlight is turned off.
- DisplayInfo.BacklightDimmed - Backlight has been dimmed.
- DisplayInfo.BacklightOn - Backlight is on.
Returns the display brightness of the given screen, in 0 - 100 scale. In case of error or the information is not available, -1 is returned.
Returns the color depth of the given screen, in bits per pixel. -1 is returned if not available or on error.
Returns the contrast of the given screen, in 0 - 100 scale. -1 is returned if not available or on error.
Returns the horizontal resolution of the given screen in terms of the number of dots per inch. -1 is returned if not available or on error.
Returns the vertical resolution of the given screen in terms of the number of dots per inch. -1 is returned if not available or on error.
Returns the physical height of the screen in millimeters. -1 is returned if not available or on error.
Returns the physical width of screen in millimeters. -1 is returned if not available or on error.