1. pyro.gui.Drawable
This class encapsulates anything that can be rendered. Drawables are lists of drawables.
In File: pyrobot/gui/drawable.py
Subclass of: UserList
1.1. Constructor(name = 'top level', options = {})
Name is a globaly unique name for this drawable.
Arguments:
-
name: [Optional, def. 'top level'] String
-
options: [Optional, def. {}] dictionary
1.2. Internal Functions
1.2.1. _draw(options, renderer)
This is the function that children should implement. It should draw itself.
Arguments:
-
options: A dictionary of options
-
renderer: a renderer object
1.3. External Functions
1.3.1. getOptions()
Returns: a dictionary (indexed by drawable name) of dictionaries (indexed by option name) of possible option values.
Returns:
-
A dictionary (indexed by drawable name) of dictionaries (indexed by option name) of possible option values.
1.3.2. getName()
Return the name of this Drawable
Returns:
-
The name of this Drawable
1.3.3. getDrawables()
Returns a list of self plus all children's drawables
Returns:
-
A list of self plus all children's drawables
1.3.4. draw(options, renderer)
Draw all children and then draw self
Arguments
-
options: a dictionary of options, passed on to _draw
-
renderer: a renderer object
