-
Notifications
You must be signed in to change notification settings - Fork 0
/
doors.h
66 lines (52 loc) · 1.99 KB
/
doors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* $Id: doors.h,v 3.0 90/11/20 16:13:19 dme Exp Locker: dme $
*
* Copyright (c) 1990 Dave Edmondson.
* Copyright (c) 1990 Imperial College of Science, Technoology & Medicine
* All Rights Reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the names of Dave Edmondson or Imperial College
* not be used in advertising or publicity pertaining to distribution of the
* software without specific, written prior permission. Dave Edmondson and
* Imperial College make no representations about the suitability of this
* software for any purpose. It is provided "as is" without express or
* implied warranty.
*/
#ifndef DOORS_H_INCLUDED
#define DOORS_H_INCLUDED
#include "twm.h"
/* the class of twm doors */
#define VTWM_DOOR_CLASS "VTWM Door"
/*
* the door structure
*/
typedef struct TwmDoor
{
struct TwmDoor *next; /* next in the linked list */
struct TwmDoor *prev; /* prev in the linked list */
char *name; /* name of this door */
int x, y; /* position */
int width, height; /* size */
int goto_x, goto_y; /* destination */
char *goto_exec; /* or something to f.exec/f.function */
char *goto_backward_exec; /* or something else to f.exec/f.function */
XClassHint *class; /* name and class of this door */
ColorPair colors; /* fore and back */
MyWindow w; /* the x window for this */
TwmWindow *twin; /* the twmwindow for this */
} TwmDoor;
enum door_direction { DOOR_FORWARD, DOOR_BACKWARD };
#endif /* DOORS_H_INCLUDED */
/*
Local Variables:
mode:c
c-file-style:"GNU"
c-file-offsets:((substatement-open 0)(brace-list-open 0)(c-hanging-comment-ender-p . nil)(c-hanging-comment-beginner-p . nil)(comment-start . "// ")(comment-end . "")(comment-column . 48))
End:
*/
/* vim: sw=2
*/