Skip to content

nx_oop_event

oop · scripts/oop/nx_oop_event.m

NX_OOP_EVENT Build a simple event-data struct for oop/notify stubs.

Named nx_oop_event (not event) so scripts/oop cannot shadow the matlab_compat/+event package used by addlistener / event.listener for graphics figure toolbar setup (blocks tip patch BIST / nexus#1280).

ed = nx_oop_event () ed = nx_oop_event (src, eventName)

Returns a struct with Source and EventName fields. This is a lightweight stand-in for event.EventData when only the pure-.m listener registry is in use (see scripts/oop/addlistener and scripts/oop/notify).