Package spyre :: Module spyre :: Class BareBonesInterface
[frames | no frames]

Type BareBonesInterface

object --+    
         |    
 Interface --+
             |
            BareBonesInterface

Known Subclasses:
BasicInterface

A bare-bones interface supports quitting, and resizing.
Method Summary
  __init__(self, engine)
Initialize new instance.
  entryChange(self, entered)
The mouse moved into or out of the window.
  event(self, ev)
Handle all interface events (from Pygame events)
  mouseDrag(self, button, loc)
The mouse was dragged to the specified location while the given mouse button was held down.
  mouseMove(self, loc)
The mouse moved with no buttons pressed.
  quit(self, empty)
  reset(self, empty)
Resets all cameras.
  sizeDown(self, empty)
Decrease window size.
  sizeUp(self, empty)
Increase window size.
  visibilityChange(self, visible)
The window had a visibility chnage.
    Inherited from Interface
  keyPressed(self, key)
A key was pressed.
  mouseDown(self, button, loc)
The specified mouse button was clicked while the mouse was at the given location.
  mouseUp(self, button, loc)
The specified mouse button was released while the mouse was at the given location.
  setup(self)
Setup interface after components all exist.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
    Inherited from Interface
tuple defaultCamera: preferred camera class and default __init__ params

Method Details

__init__(self, engine)
(Constructor)

Initialize new instance.
Parameters:
engine - the engine
Overrides:
spyre.spyre.Interface.__init__ (inherited documentation)

entryChange(self, entered)

The mouse moved into or out of the window.
Overrides:
spyre.spyre.Interface.entryChange

event(self, ev)

Handle all interface events (from Pygame events)
Parameters:
ev - pygame event

mouseDrag(self, button, loc)

The mouse was dragged to the specified location while the given mouse button was held down.
Overrides:
spyre.spyre.Interface.mouseDrag

mouseMove(self, loc)

The mouse moved with no buttons pressed.
Overrides:
spyre.spyre.Interface.mouseMove

reset(self, empty=None)

Resets all cameras.

sizeDown(self, empty)

Decrease window size.

sizeUp(self, empty)

Increase window size.

visibilityChange(self, visible)

The window had a visibility chnage.
Overrides:
spyre.spyre.Interface.visibilityChange

Generated by Epydoc 2.1 on Sat Jan 07 17:58:15 2006 http://epydoc.sf.net