1
0
mirror of https://github.com/20kdc/OC-KittenOS.git synced 2024-12-27 03:18:06 +11:00
OC-KittenOS/repository/docs/us-nxapp
20kdc 6c0659de60 New functions and stuff for R2!
Now if only I actually finished us-perms rather than delaying.
2018-04-09 00:04:40 +01:00

40 lines
904 B
Plaintext

A Quick Note On NeoUX Application
Structure
A typical NeoUX application has one
window, which it uses .reset on in
order to change the window contents
to different things.
This is typically achieved with a
callback to regenerate the window,
used like this:
window = neoux.create(mainWin())
and to regenerate the window:
window.reset(mainWin())
This allows a simple way to write big
UI trees without going totally nuts.
A good example of this is app-flash,
but unlike most of the examples, it
does not change the regeneration
callback (it never has to - the
labelling window never needs to be
regenerated after it's switched to,
so the only regeneration is for the
main window.)
A full application of this technique
would regenerate the window whenever
anything occurs of interest.
-- This is released into
the public domain.
-- No warranty is provided,
implied or otherwise.