1 | /* |
---|
2 | * $Id: Window.h,v 1.3 2004-08-03 01:19:17 ghudson Exp $ |
---|
3 | * |
---|
4 | * Copyright 1990, 1991 by the Massachusetts Institute of Technology. |
---|
5 | * |
---|
6 | * For copying and distribution information, please see the file |
---|
7 | * <mit-copyright.h>. |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef _Xj_Window_h |
---|
12 | #define _Xj_Window_h |
---|
13 | |
---|
14 | #include "Jets.h" |
---|
15 | #include <X11/Xutil.h> |
---|
16 | |
---|
17 | extern JetClass windowJetClass; |
---|
18 | extern void MapWindow(); |
---|
19 | extern void UnmapWindow(); |
---|
20 | extern int WindowMapped(); /* s.b. boolean */ |
---|
21 | extern int WindowVisibility(); |
---|
22 | |
---|
23 | typedef struct {int littlefoo;} WindowClassPart; |
---|
24 | |
---|
25 | typedef struct _WindowClassRec { |
---|
26 | CoreClassPart core_class; |
---|
27 | WindowClassPart window_class; |
---|
28 | } WindowClassRec; |
---|
29 | |
---|
30 | extern WindowClassRec windowClassRec; |
---|
31 | |
---|
32 | typedef struct { |
---|
33 | int foreground, background, borderColor; |
---|
34 | int borderWidth; |
---|
35 | Boolean overrideRedirect, rootTransient, showCommand, global; |
---|
36 | char *title; |
---|
37 | char *geometry; |
---|
38 | char *defGeometry; |
---|
39 | int minWidth, minHeight; |
---|
40 | XSizeHints sizeHints; |
---|
41 | int cursorCode; |
---|
42 | Cursor cursor; |
---|
43 | XjPixmap *pixmap; |
---|
44 | XjCallback *deleteProc; |
---|
45 | XjCallback *clientMessageProc; |
---|
46 | XjCallback *mapNotifyProc; |
---|
47 | Boolean mapped, iconic, input; |
---|
48 | Boolean forceNWGravity; |
---|
49 | Boolean reverseVideo; |
---|
50 | int visibility; |
---|
51 | Jet iconWindow; |
---|
52 | } WindowPart; |
---|
53 | |
---|
54 | typedef struct _WindowRec { |
---|
55 | CorePart core; |
---|
56 | WindowPart window; |
---|
57 | } WindowRec; |
---|
58 | |
---|
59 | typedef struct _WindowRec *WindowJet; |
---|
60 | typedef struct _WindowClassRec *WindowJetClass; |
---|
61 | |
---|
62 | typedef struct _WindowInfo { |
---|
63 | WindowJet window; |
---|
64 | XEvent *event; |
---|
65 | } WindowInfo; |
---|
66 | |
---|
67 | #define XjCTitle "Title" |
---|
68 | #define XjNtitle "title" |
---|
69 | #define XjCGeometry "Geometry" |
---|
70 | #define XjNgeometry "geometry" |
---|
71 | #define XjNdefGeometry "defGeometry" |
---|
72 | #define XjCMinWidth "minWidth" |
---|
73 | #define XjNminWidth "minWidth" |
---|
74 | #define XjCMinHeight "minHeight" |
---|
75 | #define XjNminHeight "minHeight" |
---|
76 | #define XjCOverrideRedirect "OverrideRedirect" |
---|
77 | #define XjNoverrideRedirect "overrideRedirect" |
---|
78 | #define XjCShowCommand "ShowCommand" |
---|
79 | #define XjNshowCommand "showCommand" |
---|
80 | #define XjCGlobal "Global" |
---|
81 | #define XjNglobal "global" |
---|
82 | #define XjCRootTransient "RootTransient" |
---|
83 | #define XjNrootTransient "rootTransient" |
---|
84 | #define XjNcursorCode "cursorCode" |
---|
85 | #define XjCCursorCode "CursorCode" |
---|
86 | #define XjCMapped "Mapped" |
---|
87 | #define XjNmapped "mapped" |
---|
88 | #define XjCIconic "Iconic" |
---|
89 | #define XjNiconic "iconic" |
---|
90 | #define XjCInput "Input" |
---|
91 | #define XjNinput "input" |
---|
92 | #define XjCForceNWGravity "ForceNWGravity" |
---|
93 | #define XjNforceNWGravity "forceNWGravity" |
---|
94 | #define XjNbackgroundPixmap "backgroundPixmap" |
---|
95 | #define XjCBackgroundPixmap "BackgroundPixmap" |
---|
96 | #define XjNdeleteProc "deleteProc" |
---|
97 | #define XjCDeleteProc "DeleteProc" |
---|
98 | #define XjNiconWindow "iconWindow" |
---|
99 | #define XjCIconWindow "IconWindow" |
---|
100 | #define XjRWindow "Window" |
---|
101 | #define XjCMapNotifyProc "MapNotifyProc" |
---|
102 | #define XjNmapNotifyProc "mapNotifyProc" |
---|
103 | #define XjCBorderWidth "BorderWidth" |
---|
104 | #define XjNborderWidth "borderWidth" |
---|
105 | #define XjCBorderColor "BorderColor" |
---|
106 | #define XjNborderColor "borderColor" |
---|
107 | #define XjCClientMessageProc "ClientMessageProc" |
---|
108 | #define XjNclientMessageProc "clientMessageProc" |
---|
109 | |
---|
110 | #endif /* _Xj_Window_h */ |
---|