WindowEventHandlerclass encapsulates a window event handler function.
class WindowEventHandler : public ListElement<WindowEventHandler>
WindowEventHandler(HandlerCallback *callback, void *cookie = nullptr);
||The callback function to invoke when a window event occurs.|
||The cookie that is passed to the event handler as its last parameter.|
WindowEventHandlerclass encapsulates a procedure that is invoked when a window event occurs. Once an instance of the
WindowEventHandlerclass has been constructed, it can be installed by calling the
When a window event occurs, the callback functions corresponding to all installed window event handlers are invoked. The
HandlerCallbacktype is defined as follows.
typedef void HandlerCallback(const WindowEventData *eventData, void *cookie);
eventTypefield of the
WindowEventDatastructure specifies what type of window event occurred and can be one of the following constants.
||A window was added to the interface.|
||A window was removed from the interface.|
||A window's enable state or visibility state was changed.|
eventWindowfield of the
WindowEventDatastructure specifies the window for which the event occurred. The
cookieparameter is the value passed to the
A window event handler is uninstalled by destroying its associated class instance.
||Used internally to store all instances of |