Packageqnx.display
Classpublic final class DisplayMode
InheritanceDisplayMode Inheritance Object

The 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

Display
DisplayType


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
Creates a DisplayMode instance.
DisplayMode
Property Detail
aspectRatioproperty
public var aspectRatio:String

The aspect ratio of the display, for example "4:3" or "16:9".

heightproperty 
public var height:int

The height of the display mode (in pixels).

indexproperty 
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

interlacedproperty 
public var interlaced:Boolean

true if the mode is interlaced, false if progresssive.

isPreferredproperty 
public var isPreferred:Boolean

true if this is the preferred mode, otherwise false.

refreshproperty 
public var refresh:int

The refresh rate of the mode.

widthproperty 
public var width:int

The width of the display mode (in pixels).

Constructor Detail
DisplayMode()Constructor
public function DisplayMode()

Creates a DisplayMode instance.