KUIML
Blue Cat's User Interface Programming Language
Kt::Event Class Reference

Used to represent events in the scripting engine. More...

Inherits Kt::Object.

Public Member Functions

EventopAddAssign (CallbackFunc@ cb)
 += operator to register a callback function or delegate that will be called when the event is fired.
 
EventopSubAssign (CallbackFunc@ cb)
 -= operator to unregister a callback function or delegate from the event.
 

Detailed Description

To register script callbacks or delegates directly on an event:

myEvent+=myFunction;

To unregister from an event:

myEvent-=myFunction;