public class HStage extends HSprite
| 限定符和类型 | 字段和说明 |
|---|---|
int |
backGroundColor
舞台背景颜色
|
double |
frameRate
设置的帧频
|
double |
mouseX |
double |
mouseY |
mouseChildrenmouseEnabled| 构造器和说明 |
|---|
HStage()
构造函数,只能由引擎调用。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
_touchDown()
触摸事件,只能由引擎调用。
|
void |
_touchMove()
触摸事件,只能由引擎调用。
|
void |
_touchUp()
触摸事件,只能由引擎调用。
|
int |
getFPS()
获取实际帧频
|
double |
getStageHeight()
舞台高
|
double |
getStageWidth()
舞台宽
|
void |
render(Canvas canvas,
Paint paint)
SurfaceView中循环调用
|
addChild, addChildAt, contains, getChildAt, getChildByName, getChildIndex, getNumChildren, removeChild, removeChildAt, setChildIndex, swapChildren, swapChildrenAtgetBounds, getGlobalMatrix, getHeight, getMatrix, getParent, getRect, getRect, getSize, getStage, getWidth, globalToLocal, hitTestObject, hitTestPoint, localToGlobal, setHeight, setMatrix, setWidthaddEventListener, dispatchEvent, hasEventListener, removeEventListenerpublic double frameRate
public int backGroundColor
public double mouseX
public double mouseY
public double getStageWidth()
public double getStageHeight()
public int getFPS()
public void render(Canvas canvas,
Paint paint)
public void _touchUp()
public void _touchDown()
public void _touchMove()