| Package | qnx.display |
| Class | public final class DisplayMode |
| Inheritance | DisplayMode Object |
DisplayMode class defines the display mode of an attached display. The display mode defines configurable
display settings including the height and width of the display as well as the refresh rate and aspect ratio.
See also
| Property | Defined By | ||
|---|---|---|---|
| aspectRatio : String
The aspect ratio of the display, for example "4:3" or "16:9". | DisplayMode | ||
| height : int
The height of the display mode (in pixels). | DisplayMode | ||
| index : int
The index of this display mode. | DisplayMode | ||
| interlaced : Boolean
true if the mode is interlaced, false if progresssive. | DisplayMode | ||
| isPreferred : Boolean true if this is the preferred mode, otherwise false. | DisplayMode | ||
| refresh : int
The refresh rate of the mode. | DisplayMode | ||
| width : int
The width of the display mode (in pixels). | DisplayMode | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a DisplayMode instance. | DisplayMode | ||
| aspectRatio | property |
public var aspectRatio:StringThe aspect ratio of the display, for example "4:3" or "16:9".
| height | property |
public var height:intThe height of the display mode (in pixels).
| index | property |
public var index:int
The index of this display mode.
This is the index that must be passed to the setMode() function on order to change the mode.
See also
| interlaced | property |
public var interlaced:Boolean
true if the mode is interlaced, false if progresssive.
| isPreferred | property |
public var isPreferred:Boolean true if this is the preferred mode, otherwise false.
| refresh | property |
public var refresh:intThe refresh rate of the mode.
| width | property |
public var width:intThe width of the display mode (in pixels).
| DisplayMode | () | Constructor |
public function DisplayMode()
Creates a DisplayMode instance.