source: trunk/athena/lib/Xj/Window.h @ 20599

Revision 20599, 2.9 KB checked in by ghudson, 20 years ago (diff)
Add a resource to turn off the input windowmanager hint, so that Jets programs can refuse keyboard focus.
Line 
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
17extern JetClass windowJetClass;
18extern void MapWindow();
19extern void UnmapWindow();
20extern int WindowMapped(); /* s.b. boolean */
21extern int WindowVisibility();
22
23typedef struct {int littlefoo;} WindowClassPart;
24
25typedef struct _WindowClassRec {
26  CoreClassPart         core_class;
27  WindowClassPart       window_class;
28} WindowClassRec;
29
30extern WindowClassRec windowClassRec;
31
32typedef 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
54typedef struct _WindowRec {
55  CorePart      core;
56  WindowPart    window;
57} WindowRec;
58
59typedef struct _WindowRec *WindowJet;
60typedef struct _WindowClassRec *WindowJetClass;
61
62typedef 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 */
Note: See TracBrowser for help on using the repository browser.