Home | Trees | Indices | Help |
|
---|
|
Base class for all elements in the avg tree.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
abspos |
|
||
node |
|
||
relpos |
|
||
|
|||
|
|||
|
|||
None |
|
||
Inherited from Inherited from |
Properties | |
active If this attribute is true, the node behaves as usual. |
|
id A unique identifier that can be used to reference the node. |
|
opacity A measure of the node's transparency. |
|
sensitive A node only reacts to events if sensitive is true. |
|
Inherited from |
Method Details |
hash(x)
|
Raises an exception This class cannot be instantiated from Python
|
Transforms a position in coordinates relative to the node to a position in window coordinates.
|
Returns the container (AVGNode or DivNode) the node is in. For the root node, returns None.
|
Transforms a position in window coordinates to a position in coordinates relative to the node.
|
Restores normal mouse operation after a call to setEventCapture().
|
Sets up event capturing so that cursor events are sent to this node regardless of the cursor position. cursorid is optional; if left out, the mouse cursor is captured. If not, events from a specific tracker cursor are captured. If the node doesn't handle the event, it propagates to its parent normally. This function is useful for the implementation of user interface elements such as scroll bars. Only one node can capture a cursor at any one time. Normal operation can be restored by calling releaseEventCapture().
|
Sets a callback function that is invoked whenever an event of the specified type from the specified source occurs. This function is similar to the event handler node attributes (e.g. oncursordown). It is more specific since it takes the event source as a parameter and allows the use of any python callable as callback function.
|
Removes a node from it's parent container. Equivalent to node.getParent().removeChild(node.getParent().indexOf(node)), except that if the node has no parent, unlink does nothing. Normally, unlink moves the node's textures back to the CPU and preserves event handlers. If kill=True, this step is skipped. Event handlers are reset, all textures are deleted and the href is reset to empty in this case, saving some time and making sure there are no references to the node left on the libavg side. kill should always be set to true if the node will not be used after the unlink.
|
Property Details |
activeIf this attribute is true, the node behaves as usual. If not, it is neither drawn nor does it react to events.
|
idA unique identifier that can be used to reference the node.
|
opacityA measure of the node's transparency. 0.0 is completely transparent, 1.0 is completely opaque. Opacity is relative to the parent node's opacity.
|
sensitiveA node only reacts to events if sensitive is true.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jan 8 16:09:00 2010 | http://epydoc.sourceforge.net |