The event controller can dispatch an event and add event listeners to listen to events with the method specified below.
# imagination.event.controller
class Controller(object):
def dispatch(self, kind): pass
# dispatch an event of the specified kind.
def bind(self, kind, handler): pass
# bind a given handler to an event of the specified kind.
def enable(self, kind=None): pass
# enable listeners of an event of the specified kind or all events.
def disable(self, kind=None): pass
# disable listeners of an event of the specified kind or all events.
def unbind(self, kind, handler=None): pass
# unbind a given handler of an event of the specified kind or all events.
The event controller can dispatch an event and add event listeners to listen to events with the method specified below.