2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Event
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Ref
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Checks whether the event has been stopped
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Event] isStopped
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Gets the event type
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Event] getType
|
|
|
|
-- @param self
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @return int#int ret (return value: int)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @brief Gets current target of the event<br>
|
|
|
|
-- return The target with which the event associates.<br>
|
|
|
|
-- note It onlys be available when the event listener is associated with node. <br>
|
|
|
|
-- It returns 0 when the listener is associated with fixed priority.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Event] getCurrentTarget
|
|
|
|
-- @param self
|
|
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Stops propagation for current event
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Event] stopPropagation
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Event#Event self (return value: cc.Event)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
return nil
|