struct

PointClickEngine::Core::Events::EventHandler(T)

Inherits Struct < Value < Object

Wrapper for event handlers with priority

Constructors

new(handler : Proc(T, Nil), priority : Int32 = HandlerPriority::Normal.value)
Source

Instance methods

<=>(other : EventHandler(T)) : Int32

Sort by priority (higher first), then by id (older first)

Source
call(event : T)
Source
handler
Source
priority
Source