# Making a Window

    #include <stdio.h>
    #include "graphapp.h"

    int main(int argc, char *argv[])
    {
      App *app;
      Window *w;

      app = new_app(argc,argv);
      w = new_window(app,
                    rect(50,50,150,200),
                    "A Window",
                    STANDARD_WINDOW);
      /* create your controls here */
      show_window(w);
      main_loop(app);
      /* close files and tidy up here */
      return 0;
    }

Notes:

- Use `new_window` to create windows.
- Use `rect(x,y,width,height)` to specify a rectangle.
- Use `show_window` to display the window.
- Use `main_loop` to handle events.