-
Notifications
You must be signed in to change notification settings - Fork 0
a2d.Node
Armen edited this page Jun 2, 2012
·
1 revision
extends a2d.Collection, a2d.Events
Defined in node.js
|
a2d.Node() Base node.
|
| **[draw](#draw)** Draws this node and its children | |
| **[findNodeAt](#findNodeAt)** (position) Find node at given position |
| *a2d.Rectangle* | **[boundingBox](#boundingBox)** bounding box of this node, if applicable. |
| _boolean_ | **[hover](#hover)** True if mouse is currently over this node(and mouse tracking is enabled for this node) |
| _string_ | **[name](#name)** The name of this node. |
| *a2d.Vector* | **[scale](#scale)** Scale. |
| _boolean_ | **[visible](#visible)** Node will not be displayed when this is set to false. |
a2d.Node()
Base node. Anything that is displayed inherits from this.
draw
Draws this node and its children
--
findNodeAt (position)
Find node at given position
{a2d.Position} position
node if found, null if not
{a2d.Rectangle} boundingBox
bounding box of this node, if applicable. Nodes that display things and want to handle mouse events should take care of setting this.
--
{boolean} hover
True if mouse is currently over this node(and mouse tracking is enabled for this node)
--
{string} name
The name of this node.
"SceneNode"
--
{a2d.Vector} scale
Scale.
(1, 1)
--
{boolean} visible
Node will not be displayed when this is set to false.
true