Inheritance Container
                  View
            
        
        
        
            
                Module hilo/view/Container
            
        
        
            
                Requires
                hilo/core/Hilo, hilo/core/Class, hilo/view/View
            
        
        
            Source
            Container.js
        
        
        Container is the base class to all container classes. Each Container can add other view object as children.
        
    
| Property | Defined | |
|---|---|---|
| 
                         
                            
                            children:Array
                         
                        
                            
                            List of children elements of the container, readonly!
                         
                     | 
                    Container | |
| 
                         
                            
                            clipChildren:Boolean
                         
                        
                            
                            Whether clip children elements which are out of the container, default value is false.
                         
                     | 
                    Container | |
| 
                         
                            
                            pointerChildren:Boolean
                         
                        
                            
                            Whether children elements of the container can response to user interactive events, default value is true.
                         
                     | 
                    Container | 
| Method | Defined | |
|---|---|---|
| 
                     
                    Container(properties:Object)
                     
                    Constructor 
                 | 
                Container | |
| 
                        
                         
                            
                            Add child element at the top.
                         
                     | 
                    Container | |
| 
                         addChildAt(child:View, index:Number)
                         
                        
                            
                            Add child element at given index.
                         
                     | 
                    Container | |
| 
                        
                         
                            
                            Return whether this container contains the parameter described child element.
                         
                     | 
                    Container | |
| 
                         getChildAt(index:Number)
                         
                        
                            
                            Return child element at the given index.
                         
                     | 
                    Container | |
| 
                         getChildById(id:String)
                         
                        
                            
                            Return child element at the given id.
                         
                     | 
                    Container | |
| 
                         getChildIndex(child:View)
                         
                        
                            
                            Return index value of the given child element.
                         
                     | 
                    Container | |
| 
                         getNumChildren():Uint
                         
                        
                            
                            Return the amount of the children elements of the container.
                         
                     | 
                    Container | |
| 
                         getViewAtPoint(x:Number, y:Number, usePolyCollision:Boolean, global:Boolean, eventMode:Boolean)
                         
                        
                            
                            Return object at the point positioned by given values on x axis and y axis.
                         
                     | 
                    Container | |
| 
                         removeAllChildren():Container
                         
                        
                            
                            Remove all children elements.
                         
                     | 
                    Container | |
| 
                         removeChild(child:View):View
                         
                        
                            
                            Remove the given child element.
                         
                     | 
                    Container | |
| 
                         removeChildAt(index:Int):View
                         
                        
                            
                            Remove element at the index.
                         
                     | 
                    Container | |
| 
                         removeChildById(id:String):View
                         
                        
                            
                            Remove child element by its id.
                         
                     | 
                    Container | |
| 
                         setChildIndex(child:View, index:Number)
                         
                        
                            
                            Set the index of child element.
                         
                     | 
                    Container | |
| 
                         sortChildren(keyOrFunction:Object)
                         
                        
                            
                            Sort children elements by the given key or function.
                         
                     | 
                    Container | |
| 
                        
                         
                            
                            Swap index between two child elements.
                         
                     | 
                    Container | |
| 
                         swapChildrenAt(index1:Number, index2:Number)
                         
                        
                            
                            Swap two children elements at given indexes.
                         
                     | 
                    Container |