Initializes various parameters of the internal state machine for Tiny Widgets and calls GrOpen to open a socket to Nano-X. It returns a pointer to TN_WIDGET which is supposed to be the main widget (actually the root window) and should be used as parent to the main window widget that will be created. Takes command line parameters.
TN_WIDGET * tnAppInitialize(int argc, char *argv)
Creates a widget specified by the type arguement and places it at position specified by posx, posy, relative to the parent widget specified by the parent arguement. The various types of widgets that can be created are:
TN_WIDGET * tnCreateWidget(TN_WIDGET_TYPE type, TN_WIDGET *parent, int posx, int posy,...)
This call invokes the main event processing loop for the application. This call will never return. Event processing will not begin until this function is invoked.
This call causes the application to terminate and the connection to the server to be closed.