## 2.2 Structure of an EZwgl Application

An EZwgl program should contain the following components.

- Include the one and only header file `EZ.h`.

- Initialize the library by calling `EZ_Initialize`.

- Create and configure widgets by using `EZ_CreateWidget`.

- Register widget callbacks and/or event handlers by using `EZ_AddWidgetCallback` and `EZ_AddEventHandler`.

- Map your widgets by invoking `EZ_DisplayWidget` on your toplevel widgets.

- Processing events by using `EZ_EventMainLoop` or `EZ_ServiceEvents` or `EZ_WaitAndServiceNextEvent`.

HTML Documentation Maintainance:`Arturo Espinosa <arturo@nuclecu.unam.mx>`