NodeListener Class Reference
[Nodes]

Objects use this interface to respond to Node events. More...

#include <NodeListener.h>

List of all members.

Public Member Functions

virtual void destroyed (Node *node)
virtual void childAttached (Node *node, Node *child)
virtual void childRemoved (Node *node, Node *child)
virtual void parentChanged (Node *node, Node *parent)
virtual void beforeDraw (Node *node)
virtual void afterDraw (Node *node)
virtual void visibilityChanged (Node *node, bool vis)


Detailed Description

Objects use this interface to respond to Node events.

This interface provides methods for receiving events specific to Nodes. For example, NodeListeners are notified of when children are attached or removed from a Node, or when a Node is destroyed, and so on.


Member Function Documentation

virtual void NodeListener::destroyed ( Node node  )  [inline, virtual]

Called when a Node is destroyed.

Parameters:
node Node being destroyed

virtual void NodeListener::childAttached ( Node node,
Node child 
) [inline, virtual]

Called when a Node has had a child attached.

Parameters:
node Node to which the child is attached
child the child that has been added

virtual void NodeListener::childRemoved ( Node node,
Node child 
) [inline, virtual]

Called when a Node has had a child removed.

Parameters:
node Node from which the child has been removed
child the child that has been removed

virtual void NodeListener::parentChanged ( Node node,
Node parent 
) [inline, virtual]

Called when a Node's parent has changed.

Parameters:
node Node which has had its parent changed
parent the new parent

virtual void NodeListener::beforeDraw ( Node node  )  [inline, virtual]

Called when a Node is to be drawn.

Parameters:
node Node to be drawn

virtual void NodeListener::afterDraw ( Node node  )  [inline, virtual]

Called after a Node is drawn.

Parameters:
node Node that has been drawn

virtual void NodeListener::visibilityChanged ( Node node,
bool  vis 
) [inline, virtual]

Called when a Node's visibility changes.

Parameters:
node Node that has changed visibility
vis new visibility


The documentation for this class was generated from the following file:

Generated on Fri Feb 22 15:56:21 2008 for Scene2D by  doxygen 1.5.5