TN_WIDGET * tnAppInitialize(int argc, char *argv[])
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 * tnCreateWidget(TN_WIDGET_TYPE type,
TN_WIDGET *parent, int posx, int posy,...)
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:
void tnMainLoop(void)
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.
void tnEndApp(void)
This call causes the application to terminate and the connection to the server to be closed.