The Container type exposes the following members.
Methods|
| Name | Description |
|---|
 | AddChild | |
 | AddChildAt | |
 | AddEventListener(String, EventCallback0) | (Inherited from EventDispatcher.) |
 | AddEventListener(String, EventCallback1) | (Inherited from EventDispatcher.) |
 | BroadcastEvent | (Inherited from EventDispatcher.) |
 | BubbleEvent | (Inherited from EventDispatcher.) |
 | ChangeChildrenOrder | |
 | Contains | |
 | DispatchEvent(String) | (Inherited from EventDispatcher.) |
 | DispatchEvent(EventContext) | (Inherited from EventDispatcher.) |
 | DispatchEvent(String, Object) | (Inherited from EventDispatcher.) |
 | DispatchEvent(String, Object, Object) | (Inherited from EventDispatcher.) |
 | Dispose | (Overrides DisplayObjectDispose.) |
 | EnsureSizeCorrect | (Inherited from DisplayObject.) |
 | EnterPaintingMode |
进入绘画模式,整个对象将画到一张RenderTexture上,然后这种贴图将代替原有的显示内容。
可以在onPaint回调里对这张纹理进行进一步操作,实现特殊效果。
可能有多个地方要求进入绘画模式,这里用requestorId加以区别,取值是1、2、4、8、16以此类推。1024内内部保留。用户自定义的id从1024开始。
(Inherited from DisplayObject.) |
 | GetBounds | (Overrides DisplayObjectGetBounds(DisplayObject).) |
 | GetChild | |
 | GetChildAt | |
 | GetChildIndex | |
 | GetHitTestLocalPoint | |
 | GetRenderCamera | |
 | GlobalToLocal |
将舞台坐标转换为本地坐标
(Inherited from DisplayObject.) |
 | HitTest | |
 | InvalidateBatchingState | (Inherited from DisplayObject.) |
 | InvalidateBatchingState(Boolean) | |
 | IsAncestorOf | |
 | LeavePaintingMode |
离开绘画模式
(Inherited from DisplayObject.) |
 | LocalToGlobal |
将本地坐标转换为舞台坐标
(Inherited from DisplayObject.) |
 | RemoveChild(DisplayObject) | |
 | RemoveChild(DisplayObject, Boolean) | |
 | RemoveChildAt(Int32) | |
 | RemoveChildAt(Int32, Boolean) | |
 | RemoveChildren | |
 | RemoveChildren(Int32, Int32, Boolean) | |
 | RemoveEventListener(String, EventCallback0) | (Inherited from EventDispatcher.) |
 | RemoveEventListener(String, EventCallback1) | (Inherited from EventDispatcher.) |
 | RemoveEventListeners | (Inherited from EventDispatcher.) |
 | RemoveEventListeners(String) | (Inherited from EventDispatcher.) |
 | RemoveFromParent | (Inherited from DisplayObject.) |
 | SetChildIndex | |
 | SetChildrenLayer |
s
|
 | SetPosition | (Inherited from DisplayObject.) |
 | SetScale | (Inherited from DisplayObject.) |
 | SetSize | (Inherited from DisplayObject.) |
 | SetXY | (Inherited from DisplayObject.) |
 | SwapChildren | |
 | SwapChildrenAt | |
 | TransformPoint | (Inherited from DisplayObject.) |
 | TransformRect | (Inherited from DisplayObject.) |
 | Update | (Overrides DisplayObjectUpdate(UpdateContext).) |
 | WorldToLocal |
转换世界坐标点到等效的本地xy平面的点。等效的意思是他们在屏幕方向看到的位置一样。
返回的点是在对象的本地坐标空间,且z=0
(Inherited from DisplayObject.) |
Top
See Also