Search
Preparing search index...
The search index is not available
小游戏框架
Options
All
Public
Public/Protected
All
Inherited
Menu
小游戏框架
Screen
Class Screen
export
Hierarchy
Screen
Index
Constructors
constructor
Properties
resolution
Change
Event
Accessors
height
resolution
Height
resolution
Width
width
Methods
set
Resolution
Constructors
constructor
new
Screen
(
_width
:
number
, _height
:
number
)
:
Screen
Parameters
_width:
number
_height:
number
Returns
Screen
Properties
Readonly
resolution
Change
Event
resolution
Change
Event
:
Emitter
<
void
,
void
>
= ...
屏幕分辨率变更事件监听器。
Accessors
height
get
height
(
)
:
number
屏幕高。
Returns
number
resolution
Height
get
resolutionHeight
(
)
:
number
分辨率高。
Returns
number
resolution
Width
get
resolutionWidth
(
)
:
number
分辨率宽。
Returns
number
width
get
width
(
)
:
number
屏幕宽。
Returns
number
Methods
set
Resolution
set
Resolution
(
width
:
number
, height
:
number
)
:
void
设置分辨率、
该接口一般不会由开发者手动调用。
Parameters
width:
number
height:
number
Returns
void
Exports
Screen
constructor
resolution
Change
Event
height
resolution
Height
resolution
Width
width
set
Resolution
Generated using
TypeDoc