Class: Stage

Stage

Stage クラスはメイン描画領域を表します。
The Stage class represents the main drawing area.

new next2d.display.Stage ()

Extends

  • DisplayObjectContainer

Members

next2d.display.Stage.namespace staticconstant

指定されたクラスの空間名を返します。
Returns the space name of the specified class.

Default Value:
  • next2d.display.Stage

canvasHeight number readonly

現在のCanvasの高さをピクセル単位で指定します。
Specifies the height of the current Canvas in pixels.

canvasWidth number readonly

現在のCanvasの幅をピクセル単位で指定します。
Specifies the width of the current Canvas in pixels.

color number

背景色です。
background color.

currentStageHeight number readonly

現在のStageの高さをピクセル単位で指定します。
Specifies the height of the current Stage in pixels.

currentStageWidth number readonly

現在のStageの幅をピクセル単位で指定します。
Specifies the width of the current Stage in pixels.

frameRate number

ステージのフレームレートを取得または設定します。
Gets and sets the frame rate of the stage.

namespace constant

指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.

Default Value:
  • next2d.display.Stage

player Player readonly

Player オブジェクトを返します。
Returns a Player object.

stageHeight number readonly

初期設定したステージの高さをピクセル単位で指定します。
Specifies the height of the initially set stage in pixels.

stageWidth number readonly

初期設定したステージの幅をピクセル単位で指定します。
Specifies the width of the initially set stage in pixels.

Methods

next2d.display.Stage.toString ()string static

指定されたクラスのストリングを返します。
Returns the string representation of the specified class.

Default Value:
  • [class Stage]
Returns:
TypeDescription
string

invalidate ()void

表示リストをレンダリングする必要のある次の機会に、
表示オブジェクトに警告するようランタイムに通知します。
(例えば、再生ヘッドを新しいフレームに進める場合などです。)
Calling the invalidate() method signals runtimes
to alert display objects on the next opportunity
it has to render the display list.
(for example, when the playhead advances to a new frame)

Returns:
TypeDescription
void

toString ()string

指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.

Default Value:
  • [object Stage]
Returns:
TypeDescription
string