qnx.display.DisplayMode

DisplayMode

Properties | Methods


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.

Class information:
BlackBerry 10 Version:   10.0.0

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

aspectRatio


public var aspectRatio:String

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

height


public var height:int

The height of the display mode (in pixels).

index


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

Display.setMode()

interlaced


public var interlaced:Boolean

true if the mode is interlaced, false if progresssive.

isPreferred


public var isPreferred:Boolean

true if this is the preferred mode, otherwise false.

refresh


public var refresh:int

The refresh rate of the mode.

width


public var width:int

The width of the display mode (in pixels).

Constructor Detail

DisplayMode()


public function DisplayMode()

Creates a DisplayMode instance.





comments powered by Disqus