# include "Ximage.h"

int main (int argc, char **argv) {

  Graphic graphic;
  Layout  layout;
  
  bzero (&graphic, sizeof(Graphic));
  bzero (&layout, sizeof(Layout));

  SetUpDisplay (&graphic, &argc, argv);
  SetUpWindow (&graphic, &argc, argv);

  DefineLayout (&layout, &graphic, argc, argv);
  EventLoop (&graphic, &layout);

  XFlush (graphic.display);
  XFreeFont (graphic.display, graphic.font); 
  CloseDisplay (&graphic);
  exit (0);
}

