Package libavg :: Module avg :: Class VectorNode

Class VectorNode


Instance Methods
 
setBitmap(bitmap)
Sets a bitmap to use as a texture.

Inherited from unreachable.instance: __new__

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

    Inherited from Node
 
__eq__(...)
 
__hash__(...)
hash(x)
 
__init__(...)
Raises an exception This class cannot be instantiated from Python
 
__ne__(...)
abspos
getAbsPos(relpos)
Transforms a position in coordinates relative to the node to a position in window coordinates.
node
getParent()
Returns the container (AVGNode or DivNode) the node is in.
relpos
getRelPos(abspos)
Transforms a position in window coordinates to a position in coordinates relative to the node.
 
releaseEventCapture(cursorid)
Restores normal mouse operation after a call to setEventCapture().
 
setEventCapture(cursorid)
Sets up event capturing so that cursor events are sent to this node regardless of the cursor position.
 
setEventHandler(type, source, pyfunc)
Sets a callback function that is invoked whenever an event of the specified type from the specified source occurs.
None
unlink(kill)
Removes a node from it's parent container.
Properties
  blendmode
The method of compositing the node with the nodes under it.
  color
The color of the strokes in standard html color notation: FF0000 is red, 00FF00 green, etc.
  strokewidth
The width of the strokes in the vector.
  texhref
An image file to use as a texture for the node.

Inherited from object: __class__

    Inherited from Node
  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.
Method Details

setBitmap(bitmap)

 

Sets a bitmap to use as a texture. Sets texhref to an empty string.

Parameters:
  • bitmap - A libavg bitmap object to use.

Property Details

blendmode

The method of compositing the node with the nodes under it. Valid values are 'blend', 'add', 'min' and 'max'.

Get Method:
unreachable(...)
Set Method:
unreachable(...)

color

The color of the strokes in standard html color notation: FF0000 is red, 00FF00 green, etc.

Get Method:
unreachable(...)
Set Method:
unreachable(...)

strokewidth

The width of the strokes in the vector. For lines, this is the line width. For rectangles, it is the width of the outline, etc.

Get Method:
unreachable(...)
Set Method:
unreachable(...)

texhref

An image file to use as a texture for the node.

Get Method:
unreachable(...)
Set Method:
unreachable(...)