Package libavg :: Module avg :: Class RectNode

Class RectNode


Instance Methods

Inherited from unreachable.instance: __new__

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

    Inherited from FilledVectorNode
 
setFillBitmap(bitmap)
Sets a bitmap to use as a fill texture.
    Inherited from VectorNode
 
setBitmap(bitmap)
Sets a bitmap to use as a texture.
    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
  angle
The angle that the rectangle is rotated to in radians.
  height
  pos
  size
  texcoords
  width
  x
  y

Inherited from object: __class__

    Inherited from FilledVectorNode
  fillcolor
  fillopacity
  filltexcoord1
  filltexcoord2
  filltexhref
An image file to use as a texture for the area of the node.
    Inherited from VectorNode
  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 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.
Property Details

angle

The angle that the rectangle is rotated to in radians. 0 is unchanged, 3.14 is upside-down. The rectangle is rotated around it's center

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

height

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

pos

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

size

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

texcoords

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

width

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

x

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

y

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