File hp/event/Event.lua

Functions

M:init (eventType) The constructor.
M:setListener (callback, source) Sets the event listener by EventDispatcher.
M:stop () Stop the propagation of the event.

Tables

Event The base class Event.


Functions

M:init (eventType)
The constructor.

Parameters

  • eventType: (option)The type of event.
M:setListener (callback, source)
Sets the event listener by EventDispatcher.
Please do not accessible from the outside.

Parameters

  • callback:
  • source:
M:stop ()
Stop the propagation of the event.

Tables

Event
The base class Event.
Holds the data of the Event.

Valid XHTML 1.0!