# GCK - General UI functions - Application Window

`GckApplicationWindow *gck_application_window_new(name)`

| Type | Variable | Description
Input: | `char` | `name` | Name of application window. This will be the title of the toplevel window.
Output: | `GckApplicationWindow *` |  | A pointer to a initialized GckApplicationWindow structure.
This function will create and initialize a GckApplicationWindow structure. This involves creating a top level window, selecting and setting up a visual and the companion colormap. It also creates a new style and sets its defaults to GIMP standard. Usually called when the UI of your application is to be set up.

`void gck_application_window_destroy(appwin)`

| Type | Variable | Description
Input: | GckApplicationWindow * | appwin | Pointer to the GckApplicationWindow structure to be destroyed.
Output: | `void` |  | This function doesn't return any value.
Frees all memory associated with the GckApplicationWindow structure and destroys the top level window. This function is typically called when your application terminates.

Last changed 16-Dec-1996 by Tom Bech (tomb@ii.uib.no)