25 typedef ULong_t Handle_t;
26 typedef Handle_t Display_t;
27 typedef Handle_t Visual_t;
28 typedef Handle_t Window_t;
29 typedef Handle_t Pixmap_t;
30 typedef Handle_t Drawable_t;
31 typedef Handle_t Region_t;
32 typedef Handle_t Colormap_t;
33 typedef Handle_t Cursor_t;
34 typedef Handle_t FontH_t;
35 typedef Handle_t KeySym_t;
36 typedef Handle_t Atom_t;
37 typedef Handle_t GContext_t;
38 typedef Handle_t FontStruct_t;
39 typedef ULong_t Pixel_t;
40 typedef UInt_t Mask_t;
41 typedef ULong_t Time_t;
44 kNotUseful = 0, kWhenMapped = 1, kAlways = 2,
45 kIsUnmapped = 0, kIsUnviewable = 1, kIsViewable = 2,
46 kInputOutput = 1, kInputOnly = 2,
47 kLineSolid = 0, kLineOnOffDash = 1, kLineDoubleDash = 2,
48 kCapNotLast = 0, kCapButt = 1, kCapRound = 2, kCapProjecting = 3,
49 kJoinMiter = 0, kJoinRound = 1, kJoinBevel = 2,
50 kFillSolid = 0, kFillTiled = 1, kFillStippled = 2, kFillOpaqueStippled = 3,
51 kEvenOddRule = 0, kWindingRule = 1,
52 kClipByChildren = 0, kIncludeInferiors = 1,
53 kArcChord = 0, kArcPieSlice = 1
59 kGKeyPress, kKeyRelease, kButtonPress, kButtonRelease,
60 kMotionNotify, kEnterNotify, kLeaveNotify, kFocusIn, kFocusOut,
61 kExpose, kConfigureNotify, kMapNotify, kUnmapNotify, kDestroyNotify,
62 kClientMessage, kSelectionClear, kSelectionRequest, kSelectionNotify,
63 kColormapNotify, kButtonDoubleClick, kOtherEvent
66 enum EGraphicsFunction {
85 enum { kDefaultScrollBarWidth = 16 };
87 const Handle_t kNone = 0;
88 const Handle_t kCopyFromParent = 0;
89 const Handle_t kParentRelative = 1;
92 struct SetWindowAttributes_t {
93 Pixmap_t fBackgroundPixmap;
94 ULong_t fBackgroundPixel;
95 Pixmap_t fBorderPixmap;
101 ULong_t fBackingPlanes;
102 ULong_t fBackingPixel;
105 Long_t fDoNotPropagateMask;
106 Bool_t fOverrideRedirect;
107 Colormap_t fColormap;
113 struct WindowAttributes_t {
115 Int_t fWidth, fHeight;
124 ULong_t fBackingPlanes;
125 ULong_t fBackingPixel;
127 Colormap_t fColormap;
128 Bool_t fMapInstalled;
130 Long_t fAllEventMasks;
131 Long_t fYourEventMask;
132 Long_t fDoNotPropagateMask;
133 Bool_t fOverrideRedirect;
138 const Mask_t kWABackPixmap = BIT(0);
139 const Mask_t kWABackPixel = BIT(1);
140 const Mask_t kWABorderPixmap = BIT(2);
141 const Mask_t kWABorderPixel = BIT(3);
142 const Mask_t kWABorderWidth = BIT(4);
143 const Mask_t kWABitGravity = BIT(5);
144 const Mask_t kWAWinGravity = BIT(6);
145 const Mask_t kWABackingStore = BIT(7);
146 const Mask_t kWABackingPlanes = BIT(8);
147 const Mask_t kWABackingPixel = BIT(9);
148 const Mask_t kWAOverrideRedirect = BIT(10);
149 const Mask_t kWASaveUnder = BIT(11);
150 const Mask_t kWAEventMask = BIT(12);
151 const Mask_t kWADontPropagate = BIT(13);
152 const Mask_t kWAColormap = BIT(14);
153 const Mask_t kWACursor = BIT(15);
157 const Mask_t kNoEventMask = 0;
158 const Mask_t kKeyPressMask = BIT(0);
159 const Mask_t kKeyReleaseMask = BIT(1);
160 const Mask_t kButtonPressMask = BIT(2);
161 const Mask_t kButtonReleaseMask = BIT(3);
162 const Mask_t kPointerMotionMask = BIT(4);
163 const Mask_t kButtonMotionMask = BIT(5);
164 const Mask_t kExposureMask = BIT(6);
165 const Mask_t kStructureNotifyMask = BIT(7);
166 const Mask_t kEnterWindowMask = BIT(8);
167 const Mask_t kLeaveWindowMask = BIT(9);
168 const Mask_t kFocusChangeMask = BIT(10);
169 const Mask_t kOwnerGrabButtonMask = BIT(11);
170 const Mask_t kColormapChangeMask = BIT(12);
178 Int_t fXRoot, fYRoot;
181 UInt_t fWidth, fHeight;
194 const Mask_t kKeyShiftMask = BIT(0);
195 const Mask_t kKeyLockMask = BIT(1);
196 const Mask_t kKeyControlMask = BIT(2);
197 const Mask_t kKeyMod1Mask = BIT(3);
198 const Mask_t kKeyMod2Mask = BIT(4);
199 const Mask_t kKeyMod3Mask = BIT(5);
200 const Mask_t kKeyMod4Mask = BIT(6);
201 const Mask_t kKeyMod5Mask = BIT(7);
202 const Mask_t kButton1Mask = BIT(8);
203 const Mask_t kButton2Mask = BIT(9);
204 const Mask_t kButton3Mask = BIT(10);
205 const Mask_t kButton4Mask = BIT(11);
206 const Mask_t kButton5Mask = BIT(12);
207 const Mask_t kButton6Mask = BIT(13);
208 const Mask_t kButton7Mask = BIT(14);
209 const Mask_t kAnyModifier = BIT(15);
213 enum EMouseButton { kAnyButton, kButton1, kButton2, kButton3,
214 kButton4, kButton5, kButton6, kButton7 };
218 enum EXMagic { kNotifyNormal = 0, kNotifyGrab = 1, kNotifyUngrab = 2,
219 kNotifyPointer = 5, kColormapUninstalled = 0,
220 kColormapInstalled = 1 };
224 EGraphicsFunction fFunction;
242 Int_t fSubwindowMode;
243 Bool_t fGraphicsExposures;
258 fLineStyle (kLineSolid),
259 fCapStyle (kCapButt),
260 fJoinStyle (kJoinMiter),
261 fFillStyle (kFillSolid),
262 fFillRule (kEvenOddRule),
263 fArcMode (kArcPieSlice),
269 fSubwindowMode (kClipByChildren),
270 fGraphicsExposures (kTRUE),
278 for (
int i = 2; i < 8; i++) fDashes[i] = 0;
285 const Mask_t kGCFunction = BIT(0);
286 const Mask_t kGCPlaneMask = BIT(1);
287 const Mask_t kGCForeground = BIT(2);
288 const Mask_t kGCBackground = BIT(3);
289 const Mask_t kGCLineWidth = BIT(4);
290 const Mask_t kGCLineStyle = BIT(5);
291 const Mask_t kGCCapStyle = BIT(6);
292 const Mask_t kGCJoinStyle = BIT(7);
293 const Mask_t kGCFillStyle = BIT(8);
294 const Mask_t kGCFillRule = BIT(9);
295 const Mask_t kGCTile = BIT(10);
296 const Mask_t kGCStipple = BIT(11);
297 const Mask_t kGCTileStipXOrigin = BIT(12);
298 const Mask_t kGCTileStipYOrigin = BIT(13);
299 const Mask_t kGCFont = BIT(14);
300 const Mask_t kGCSubwindowMode = BIT(15);
301 const Mask_t kGCGraphicsExposures = BIT(16);
302 const Mask_t kGCClipXOrigin = BIT(17);
303 const Mask_t kGCClipYOrigin = BIT(18);
304 const Mask_t kGCClipMask = BIT(19);
305 const Mask_t kGCDashOffset = BIT(20);
306 const Mask_t kGCDashList = BIT(21);
307 const Mask_t kGCArcMode = BIT(22);
309 struct ColorStruct_t {
318 const Mask_t kDoRed = BIT(0);
319 const Mask_t kDoGreen = BIT(1);
320 const Mask_t kDoBlue = BIT(2);
322 struct PictureAttributes_t {
323 Colormap_t fColormap;
336 const Mask_t kPAColormap = BIT(0);
337 const Mask_t kPADepth = BIT(1);
338 const Mask_t kPASize = BIT(2);
339 const Mask_t kPAHotspot = BIT(3);
340 const Mask_t kPAReturnPixels = BIT(4);
341 const Mask_t kPACloseness = BIT(5);
345 kNormalState = BIT(0),
346 kIconicState = BIT(1)
351 Short_t fX1, fY1, fX2, fY2;
362 UShort_t fWidth, fHeight;
366 const Atom_t kPrimarySelection = 1;
367 const Atom_t kCutBuffer = 9;
368 const Int_t kMaxPixel = 32000;