class DefalutItemRender
package zygame.components.base
extends ItemRender › ZBox › Component › TouchDisplayObjectContainer › DisplayObjectContainer
@:directlyUsedConstructor
Methods
Inherited Variables
Defined by ItemRender
Defined by ZBox
Defined by Component
Defined by TouchDisplayObjectContainer
Defined by DisplayObjectContainer
Inherited Methods
Defined by ItemRender
Defined by ZBox
@:value({ centerY : 0, centerX : 0, bottomPx : null, topPx : null, rightPx : null, leftPx : null })align (obj:DisplayObject, ?leftPx:Dynamic, ?rightPx:Dynamic, ?topPx:Dynamic, ?bottomPx:Dynamic, centerX:Dynamic = 0, centerY:Dynamic = 0):Void
对齐功能
* @param obj - 对齐对象
* @param leftPx - 左对齐
* @param rightPx - 右对齐
* @param topPx - 顶部对齐
* @param bottomPx - 底部对齐
* @param centerX - 居中对齐
* @param centerY - 垂直对齐
Defined by Component
addComponent (child:Component, pname:String):Component
添加组件
Parameters:
child |
|
---|---|
pname |
|
Returns:
Component
Defined by TouchDisplayObjectContainer
@:value({ priority : 0, userCapture : false })setTouchEvent (listen:Bool, userCapture:Bool = false, priority:Int = 0):Void
设置触摸事件
* @param listen - 是否侦听,false则清理所有事件
Defined by DisplayObjectContainer
@:value({ h : null, v : null })@:keepalignPivot (?v:String, ?h:String):Void
锚点对齐,不能直接对齐调用,容器不直接支持该功能。
@:keepgetBounds (target:DisplayObject):Rectangle
getBounds优化计算
Parameters:
parent |
---|
Returns:
openfl.geom.Rectangle
@:value({ f : "", e : "", d : "", c : "", b : "" })@:keeplog (a:Dynamic, b:Dynamic = "", c:Dynamic = "", d:Dynamic = "", e:Dynamic = "", f:Dynamic = ""):Void
输出log