nixos/lua-lsp/meta/3rd/Cocos4.0/library/cc/Event.lua

30 lines
826 B
Lua

---@meta
---@class cc.Event :cc.Ref
local Event={ }
cc.Event=Event
---* Checks whether the event has been stopped.<br>
---* return True if the event has been stopped.
---@return boolean
function Event:isStopped () end
---* Gets the event type.<br>
---* return The event type.
---@return int
function Event:getType () end
---* 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.
---@return cc.Node
function Event:getCurrentTarget () end
---* Stops propagation for current event.
---@return self
function Event:stopPropagation () end
---* Constructor
---@param type int
---@return self
function Event:Event (type) end