メインコンテンツへ飛ぶ

Display オブジェクト

  • accelerometerSupport string - available, unavailable, unknown のいずれか。
  • bounds Rectangle - DIP ポイント単位のディスプレイの領域。
  • colorDepth number - ピクセルあたりのビット数。
  • colorSpace string - represent a color space (three-dimensional object which contains all realizable color combinations) for the purpose of color conversions.
  • depthPerComponent number - 色コンポーネントあたりのビット数。
  • detected boolean - `true`` if the display is detected by the system.
  • displayFrequency number - 表示リフレッシュレート。
  • id number -ディスプレイに関連付けられている一意の識別子。 A value of of -1 means the display is invalid or the correct id is not yet known, and a value of -10 means the display is a virtual display assigned to a unified desktop.
  • internal boolean - 内部ディスプレイの場合は true で外部ディスプレイの場合は false.
  • label string - プラットフォームが決定する、ユーザー向けのラベル。
  • maximumCursorSize Size - Maximum cursor size in native pixels.
  • nativeOrigin Point - Returns the display's origin in pixel coordinates. Only available on windowing systems like X11 that position displays in pixel coordinates.
  • rotation rotation - 0、90、180、270のいずれかで、時計回りによる画面の回転角度を表します。
  • scaleFactor number - 出力デバイスのピクセルスケール係数。
  • touchSupport string - available, unavailable, unknown のいずれか。
  • monochrome boolean - ディスプレイが白黒ディスプレイかどうか。
  • size Size
  • workArea Rectangle - DIP ポイント単位のディスプレイの動作領域。
  • workAreaSize Size - The size of the work area.

Display オブジェクトは、システムに接続された物理的なディスプレイを表します。 ヘッドレスシステムではフェイクの Display が存在していたり、 Display がリモートの仮想ディスプレイに対応していたりする可能性があります。