继承 Container
View
模块 hilo/view/Container
依赖
hilo/core/Hilo, hilo/core/Class, hilo/view/View
源码
Container.js
Container是所有容器类的基类。每个Container都可以添加其他可视对象为子级。
属性 | 定义于 | |
---|---|---|
children:Array
容器的子元素列表。只读。
|
Container | |
clipChildren:Boolean
指示是否裁剪超出容器范围的子元素。默认为false。
|
Container | |
pointerChildren:Boolean
指示容器的子元素是否能响应用户交互事件。默认为true。
|
Container |
方法 | 定义于 | |
---|---|---|
Container(properties:Object)
构造函数
|
Container | |
|
Container | |
addChildAt(child:View, index:Number)
|
Container | |
|
Container | |
getChildAt(index:Number)
|
Container | |
getChildById(id:String)
|
Container | |
getChildIndex(child:View)
|
Container | |
getNumChildren():Uint
|
Container | |
getViewAtPoint(x:Number, y:Number, usePolyCollision:Boolean, global:Boolean, eventMode:Boolean)
|
Container | |
removeAllChildren():Container
|
Container | |
removeChild(child:View):View
|
Container | |
removeChildAt(index:Int):View
|
Container | |
removeChildById(id:String):View
|
Container | |
setChildIndex(child:View, index:Number)
|
Container | |
sortChildren(keyOrFunction:Object)
|
Container | |
|
Container | |
swapChildrenAt(index1:Number, index2:Number)
|
Container |