EventsΒΆ

Guerilla triggers some events while running, for instance after a new document is created, or before a document is closed.

See event.register and event.signal for the full documentation on events.

Register a callback to an event

event.register ("newdocument"function (e)
    print ("a new document is created!")
end)

Signal an event

event.signal ("myevent")

Note that the signal function is only useful if you register to your own custom events. Signaling Guerilla predefined events outside out of context is obviously not recommended.