Package libavg :: Module avg :: Class DivNode

Class DivNode




A div node is a node that groups other nodes logically and visually. Its upper left corner is used as point of origin for the coordinates of its child nodes. Its extents are used to clip the children. Its opacity is used as base opacity for the child nodes' opacities.

Instance Methods
 
appendChild(node)
Adds a new child to the container behind the last existing child.
 
getChild(pos)
Returns the child at position pos.
 
getNumChildren()
Returns the number of immediate children that this div contains.
 
indexOf(childnode)
Returns the index of the child given or -1 if childnode isn't a child of the container.
 
insertChild(node, pos)
Adds a new child to the container at position pos.
 
removeChild(pos)
Removes the child at index pos.

Inherited from Node: __init__, getParent, getRelPos, releaseEventCapture, setEventCapture, setEventHandler

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from Node: active, height, id, opacity, sensitive, width, x, y

Inherited from object: __class__

Method Details

getChild(pos)

 
Returns the child at position pos.
Returns:
node

getNumChildren()

 
Returns the number of immediate children that this div contains.
Returns:
numchildren