While within the loop, all communications between the
application business logic and the GUI controls are handled via callbacks that are triggered when
real - time events occur. These events can be anything from a button click to a change of selected item
within a list control, but can also include a defined criteria match within the operating system ??™ s current
state, such as an alarm when a particular clock time has been met. nGui handles the events loop
internally, so no custom business logic may exist within the loop. Instead, one must delineate functions
that will be assigned to the various controls in existence within the application through predefined
hooks. When the events associated with the hooks are triggered, the functions are then executed.
Chapter 17: Desktop Applications with Neko
483
In nGui , the primary loop, as well as any required initialization and cleanup routines, are detailed in the
Manager class. Normally, when using nGui , the methods of the Manager class will be the first and last
functions you call within the initial application method.
Pages:
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897