2 * $Id: doors.h,v 3.0 90/11/20 16:13:19 dme Exp Locker: dme $
4 * Copyright (c) 1990 Dave Edmondson.
5 * Copyright (c) 1990 Imperial College of Science, Technoology & Medicine
8 * Permission to use, copy, modify, and distribute this software and its
9 * documentation for any purpose and without fee is hereby granted, provided
10 * that the above copyright notice appear in all copies and that both that
11 * copyright notice and this permission notice appear in supporting
12 * documentation, and that the names of Dave Edmondson or Imperial College
13 * not be used in advertising or publicity pertaining to distribution of the
14 * software without specific, written prior permission. Dave Edmondson and
15 * Imperial College make no representations about the suitability of this
16 * software for any purpose. It is provided "as is" without express or
20 #ifndef DOORS_H_INCLUDED
21 #define DOORS_H_INCLUDED
25 /* the class of twm doors */
27 #define TWM_DOOR_CLASS "Twm Door"
29 #define VTWM_DOOR_CLASS "VTWM Door"
34 typedef struct TwmDoor {
35 struct TwmDoor *next; /* next in the linked list */
36 struct TwmDoor *prev; /* prev in the linked list */
38 char *name; /* name of this door */
39 int x, y; /* position */
40 int width, height; /* size */
42 int goto_x, goto_y; /* destination */
44 XClassHint *class; /* name and class of this door */
46 ColorPair colors; /* fore and back */
48 Window w; /* the x window for this */
49 TwmWindow *twin; /* the twmwindow for this */
52 extern TwmDoor *door_add();
53 extern void door_open();
54 extern void door_open_all();
55 extern void door_enter();
56 extern void door_new();
57 extern void door_delete();
60 extern void door_paste_name();
62 #endif /* DOORS_H_INCLUDED */