axmol/cocos/scripting/lua-bindings/auto/api/Event.lua

44 lines
1.3 KiB
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module Event
-- @extend Ref
-- @parent_module cc
2014-03-10 14:04:58 +08:00
--------------------------------
-- Checks whether the event has been stopped.<br>
-- return True if 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)
--------------------------------
-- Gets the event type.<br>
-- return The event type.
2014-03-10 14:04:58 +08:00
-- @function [parent=#Event] getType
-- @param self
-- @return int#int ret (return value: int)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Gets current target of the event.<br>
-- return The target with which the event associates.<br>
-- note It's only 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)
--------------------------------
-- Stops propagation for current event.
2014-03-10 14:04:58 +08:00
-- @function [parent=#Event] stopPropagation
-- @param self
-- @return Event#Event self (return value: cc.Event)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Constructor
-- @function [parent=#Event] Event
-- @param self
-- @param #int type
-- @return Event#Event self (return value: cc.Event)
2014-03-10 14:04:58 +08:00
return nil