Package | sekati.collections |
Class | public class DisplayListQueue |
Inheritance | DisplayListQueue DisplayListCollection |
Implements | IQueue |
Property | Defined by | ||
---|---|---|---|
container : DisplayObjectContainer
Return the collection container data
| DisplayListCollection | ||
count : uint
How many items exist within the collection.
| DisplayListCollection | ||
head : Object [read-only]
The next object in queue, would be return and removed on a subsequent call to dequeue.
| DisplayListQueue | ||
isEmpty : Boolean
Whether or not this collection is empty.
| DisplayListCollection |
Method | Defined by | ||
---|---|---|---|
DisplayListQueue(container:DisplayObjectContainer = null)
DisplayListQueue Constructor creates a new
DisplayListQueue . | DisplayListQueue | ||
clear():void
Removes all items from the collection.
| DisplayListCollection | ||
dequeue():Object
Remove and returns the next object in the queue.
| DisplayListQueue | ||
enqueue(o:Object):void
Add an object to end of the queue.
| DisplayListQueue | ||
The iterator used to handle going through the collection.
| DisplayListCollection |
head | property |
head:Object
[read-only]The next object in queue, would be return and removed on a subsequent call to dequeue.
Implementation public function get head():Object
DisplayListQueue | () | constructor |
public function DisplayListQueue(container:DisplayObjectContainer = null)
DisplayListQueue Constructor creates a new DisplayListQueue
.
You may have it wrap an existing DisplayObjectContainer
or the constructor will create an empty Sprite
for you.
container:DisplayObjectContainer (default = null )
|
dequeue | () | method |
public function dequeue():Object
Remove and returns the next object in the queue.
ReturnsObject |
enqueue | () | method |
public function enqueue(o:Object):void
Add an object to end of the queue.
Parameterso:Object |