chiark / gitweb /
Import vtwm_5.4.7.orig.tar.gz
[vtwm.git] / doors.h
1 /*
2  * $Id: doors.h,v 3.0 90/11/20 16:13:19 dme Exp Locker: dme $
3  *
4  * Copyright (c) 1990 Dave Edmondson.
5  * Copyright (c) 1990 Imperial College of Science, Technoology & Medicine
6  * All Rights Reserved.
7  *
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
17  * implied warranty.
18  */
19
20 #ifndef DOORS_H_INCLUDED
21 #define DOORS_H_INCLUDED
22
23 #include "twm.h"
24
25 /* the class of twm doors */
26 /* djhjr - 4/27/96
27 #define TWM_DOOR_CLASS "Twm Door"
28 */
29 #define VTWM_DOOR_CLASS "VTWM Door"
30
31 /*
32  * the door structure
33  */
34 typedef struct TwmDoor {
35         struct TwmDoor *next; /* next in the linked list */
36         struct TwmDoor *prev; /* prev in the linked list */
37
38         char *name;           /* name of this door */
39         int x, y;             /* position */
40         int width, height;    /* size */
41         
42         int goto_x, goto_y;   /* destination */
43
44         XClassHint *class;     /* name and class of this door */
45
46         ColorPair colors;     /* fore and back */
47
48         Window w;             /* the x window for this */
49         TwmWindow *twin;      /* the twmwindow for this */
50 } TwmDoor;
51
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();
58
59 /* djhjr - 4/20/98 */
60 extern void door_paste_name();
61
62 #endif /* DOORS_H_INCLUDED */