wApp

The wApp object represents the application itself. It allow only one instance for a thread.

Procs

proc App(): wApp {...}{.discardable, raises: [], tags: [].}
Constructor.
proc wAppGetCurrentApp(): wApp {...}{.inline, raises: [], tags: [].}
Gets the current wApp instance.
proc mainLoop(self: wApp): int {...}{.validate, discardable, raises: [], tags: [].}
Execute the main GUI event loop. The loop will exit after all top-level windows is deleted.
proc setMessagePropagation(self: wApp; msg: UINT; flag = true) {...}{.validate, raises: [],
    tags: [].}
Regist a message associated event to propagate upward by default. Control events (wEvent_Menu, wEvent_Button, etc) will always propagate by default. To overdie shouldPropagate() method is a more gentle way.
proc isMessagePropagation(self: wApp; msg: UINT): bool {...}{.raises: [], tags: [].}
Checks whether the msg is propagated by default.