Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
GuiTypes.h
Go to the documentation of this file.
1/* @(#)root/base:$Id$ */
2
3/*************************************************************************
4 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_GuiTypes
12#define ROOT_GuiTypes
13
14//////////////////////////////////////////////////////////////////////////
15// //
16// GuiTypes //
17// //
18// Types used by the GUI classes. //
19// //
20//////////////////////////////////////////////////////////////////////////
21
22#include "Rtypes.h"
23#include <climits>
24
25// Basic GUI types
26typedef ULongptr_t Handle_t; ///< Generic resource handle
27typedef Handle_t Display_t; ///< Display handle
28typedef Handle_t Visual_t; ///< Visual handle
29typedef Handle_t Window_t; ///< Window handle
30typedef Handle_t WinContext_t; ///< Window drawing context
31typedef Handle_t Pixmap_t; ///< Pixmap handle
32typedef Handle_t Drawable_t; ///< Drawable handle
33typedef Handle_t Region_t; ///< Region handle
34typedef Handle_t Colormap_t; ///< Colormap handle
35typedef Handle_t Cursor_t; ///< Cursor handle
36typedef Handle_t FontH_t; ///< Font handle (as opposed to Font_t which is an index)
37typedef Handle_t KeySym_t; ///< Key symbol handle
38typedef Handle_t Atom_t; ///< WM token
39typedef Handle_t GContext_t; ///< Graphics context handle
40typedef Handle_t FontStruct_t; ///< Pointer to font structure
41typedef ULong_t Pixel_t; ///< Pixel value
42typedef UInt_t Mask_t; ///< Structure mask type
43typedef ULong_t Time_t; ///< Event time
44
57
58// GUI event types. Later merge with EEventType in Button.h and rename to
59// EEventTypes. Also rename in that case kGKeyPress to kKeyPress.
67
69 kGXclear = 0, ///< 0
70 kGXand, ///< src AND dst
71 kGXandReverse, ///< src AND NOT dst
72 kGXcopy, ///< src
73 kGXandInverted, ///< NOT src AND dst
74 kGXnoop, ///< dst
75 kGXxor, ///< src XOR dst
76 kGXor, ///< src OR dst
77 kGXnor, ///< NOT src AND NOT dst
78 kGXequiv, ///< NOT src XOR dst
79 kGXinvert, ///< NOT dst
80 kGXorReverse, ///< src OR NOT dst
81 kGXcopyInverted, ///< NOT src
82 kGXorInverted, ///< NOT src OR dst
83 kGXnand, ///< NOT src OR NOT dst
84 kGXset ///< 1
85};
86
88
89const Handle_t kNone = 0;
92
93/// Attributes that can be used when creating or changing a window
95 Pixmap_t fBackgroundPixmap; ///< background or kNone or kParentRelative
96 ULong_t fBackgroundPixel; ///< background pixel
97 Pixmap_t fBorderPixmap; ///< border of the window
98 ULong_t fBorderPixel; ///< border pixel value
99 UInt_t fBorderWidth; ///< border width in pixels
100 Int_t fBitGravity; ///< one of bit gravity values
101 Int_t fWinGravity; ///< one of the window gravity values
102 Int_t fBackingStore; ///< kNotUseful, kWhenMapped, kAlways
103 ULong_t fBackingPlanes; ///< planes to be preserved if possible
104 ULong_t fBackingPixel; ///< value to use in restoring planes
105 Bool_t fSaveUnder; ///< should bits under be saved (popups)?
106 Long_t fEventMask; ///< set of events that should be saved
107 Long_t fDoNotPropagateMask; ///< set of events that should not propagate
108 Bool_t fOverrideRedirect; ///< boolean value for override-redirect
109 Colormap_t fColormap; ///< color map to be associated with window
110 Cursor_t fCursor; ///< cursor to be displayed (or kNone)
111 Mask_t fMask; ///< bit mask specifying which fields are valid
112};
113
114/// Window attributes that can be inquired
116 Int_t fX, fY; ///< location of window
117 Int_t fWidth, fHeight; ///< width and height of window
118 Int_t fBorderWidth; ///< border width of window
119 Int_t fDepth; ///< depth of window
120 void *fVisual; ///< the associated visual structure
121 Window_t fRoot; ///< root of screen containing window
122 Int_t fClass; ///< kInputOutput, kInputOnly
123 Int_t fBitGravity; ///< one of bit gravity values
124 Int_t fWinGravity; ///< one of the window gravity values
125 Int_t fBackingStore; ///< kNotUseful, kWhenMapped, kAlways
126 ULong_t fBackingPlanes; ///< planes to be preserved if possible
127 ULong_t fBackingPixel; ///< value to be used when restoring planes
128 Bool_t fSaveUnder; ///< boolean, should bits under be saved?
129 Colormap_t fColormap; ///< color map to be associated with window
130 Bool_t fMapInstalled; ///< boolean, is color map currently installed
131 Int_t fMapState; ///< kIsUnmapped, kIsUnviewable, kIsViewable
132 Long_t fAllEventMasks; ///< set of events all people have interest in
133 Long_t fYourEventMask; ///< my event mask
134 Long_t fDoNotPropagateMask; ///< set of events that should not propagate
135 Bool_t fOverrideRedirect; ///< boolean value for override-redirect
136 void *fScreen; ///< back pointer to correct screen
137};
138
139// Bits telling which SetWindowAttributes_t fields are valid
155const Mask_t kWACursor = BIT(15);
156
157// Input event masks, used to set SetWindowAttributes_t::fEventMask
158// and to be passed to TVirtualX::SelectInput()
173
174/// Event structure
175struct Event_t {
176 EGEventType fType; ///< of event (see EGEventType)
177 Window_t fWindow; ///< window reported event is relative to
178 Time_t fTime; ///< time event event occurred in ms
179 Int_t fX, fY; ///< pointer x, y coordinates in event window
180 Int_t fXRoot, fYRoot; ///< coordinates relative to root
181 UInt_t fCode; ///< key or button code
182 UInt_t fState; ///< key or button mask
183 UInt_t fWidth, fHeight; ///< width and height of exposed area
184 Int_t fCount; ///< if non-zero, at least this many more exposes
185 Bool_t fSendEvent; ///< true if event came from SendEvent
186 Handle_t fHandle; ///< general resource handle (used for atoms or windows)
187 Int_t fFormat; ///< Next fields only used by kClientMessageEvent
188 Longptr_t fUser[5]; ///< 5 longs can be used by client message events
189 ///< NOTE: only [0], [1] and [2] may be used.
190 ///< [1] and [2] may contain >32 bit quantities
191 ///< (i.e. pointers on 64 bit machines)
192};
193
194// Key masks, used as modifiers to GrabButton and GrabKey and
195// in Event_t::fState in various key-, mouse-, and button-related events
199const Mask_t kKeyMod1Mask = BIT(3); ///< typically the Alt key
200const Mask_t kKeyMod2Mask = BIT(4); ///< typically mod on numeric keys
212
213/// Button names. Used as arguments to GrabButton and as Event_t::fCode
214/// for button events. Maps to the X11 values.
217
218/// Some magic X notify modes used in TGTextEntry widget.
219/// Values must match the ones in /usr/include/X11/X.h. Check when porting.
223
224/// Graphics context structure
226 EGraphicsFunction fFunction; ///< logical operation
227 ULong_t fPlaneMask; ///< plane mask
228 ULong_t fForeground; ///< foreground pixel
229 ULong_t fBackground; ///< background pixel
230 Int_t fLineWidth; ///< line width
231 Int_t fLineStyle; ///< kLineSolid, kLineOnOffDash, kLineDoubleDash
232 Int_t fCapStyle; ///< kCapNotLast, kCapButt,
233 ///< kCapRound, kCapProjecting
234 Int_t fJoinStyle; ///< kJoinMiter, kJoinRound, kJoinBevel
235 Int_t fFillStyle; ///< kFillSolid, kFillTiled,
236 ///< kFillStippled, kFillOpaeueStippled
237 Int_t fFillRule; ///< kEvenOddRule, kWindingRule
238 Int_t fArcMode; ///< kArcChord, kArcPieSlice
239 Pixmap_t fTile; ///< tile pixmap for tiling operations
240 Pixmap_t fStipple; ///< stipple 1 plane pixmap for stippling
241 Int_t fTsXOrigin; ///< offset for tile or stipple operations
243 FontH_t fFont; ///< default text font for text operations
244 Int_t fSubwindowMode; ///< kClipByChildren, kIncludeInferiors
245 Bool_t fGraphicsExposures; ///< boolean, should exposures be generated
246 Int_t fClipXOrigin; ///< origin for clipping
248 Pixmap_t fClipMask; ///< bitmap clipping; other calls for rects
249 Int_t fDashOffset; ///< patterned/dashed line information
250 Char_t fDashes[8]; ///< dash pattern list (dash length per byte)
251 Int_t fDashLen; ///< number of dashes in fDashes
252 Mask_t fMask; ///< bit mask specifying which fields are valid
253
254 GCValues_t() : // default constructor
256 fPlaneMask (0),
257 fForeground (0),
258 fBackground (1),
259 fLineWidth (0),
266 fTile (0),
267 fStipple (0),
268 fTsXOrigin (0),
269 fTsYOrigin (0),
270 fFont (0),
273 fClipXOrigin (0),
274 fClipYOrigin (0),
275 fClipMask (0),
276 fDashOffset (0),
277 fDashLen (2),
278 fMask (0)
279 {
280 for (int i = 2; i < 8; i++) fDashes[i] = 0;
281 fDashes[0] = 5; // dashed
282 fDashes[1] = 5;
283 }
284};
285
286// Bits telling which GCValues_t fields are valid
297const Mask_t kGCTile = BIT(10);
301const Mask_t kGCFont = BIT(14);
310
312 ULong_t fPixel; ///< color pixel value (index in color table)
313 UShort_t fRed; ///< red component (0..65535)
314 UShort_t fGreen; ///< green component (0..65535)
315 UShort_t fBlue; ///< blue component (0..65535)
316 UShort_t fMask; ///< mask telling which color components are valid
317};
318
319// Bits telling which ColorStruct_t fields are valid
320const Mask_t kDoRed = BIT(0);
321const Mask_t kDoGreen = BIT(1);
322const Mask_t kDoBlue = BIT(2);
323
325 Colormap_t fColormap; ///< colormap to use
326 Int_t fDepth; ///< depth of window
327 UInt_t fWidth; ///< width of picture
328 UInt_t fHeight; ///< height of picture
329 UInt_t fXHotspot; ///< picture x hotspot coordinate
330 UInt_t fYHotspot; ///< picture y hotspot coordinate
331 ULong_t *fPixels; ///< list of used color pixels (if set use delete[])
332 UInt_t fNpixels; ///< number of used color pixels
333 UInt_t fCloseness; ///< allowable RGB deviation
334 Mask_t fMask; ///< mask specifying which attributes are defined
335};
336
337// PictureAttributes_t masks bits
339const Mask_t kPADepth = BIT(1);
340const Mask_t kPASize = BIT(2); ///< width and height
341const Mask_t kPAHotspot = BIT(3); ///< x and y hotspot
344
345/// Initial window mapping state
350
351/// Used for drawing line segments (maps to the X11 XSegments structure)
352struct Segment_t {
354};
355
356/// Point structure (maps to the X11 XPoint structure)
357struct Point_t {
359};
360
361/// Rectangle structure (maps to the X11 XRectangle structure)
366
367// Atoms used for text cut and paste between windows
368const Atom_t kPrimarySelection = 1; ///< magic values, must match the ones
369const Atom_t kCutBuffer = 9; ///< in /usr/include/X11/Xatom.h
370const Int_t kMaxPixel = INT_MAX; ///< Max value for an int
371
372const int kNumCursors = 19;
377
378/// types of frames (and borders), moved from TGFrame.h
398
399
400#endif
Handle_t Atom_t
WM token.
Definition GuiTypes.h:38
Handle_t Region_t
Region handle.
Definition GuiTypes.h:33
const Mask_t kGCCapStyle
Definition GuiTypes.h:293
Handle_t WinContext_t
Window drawing context.
Definition GuiTypes.h:30
const Mask_t kGCArcMode
Definition GuiTypes.h:309
EGEventType
Definition GuiTypes.h:60
@ kSelectionClear
Definition GuiTypes.h:64
@ kColormapNotify
Definition GuiTypes.h:65
@ kConfigureNotify
Definition GuiTypes.h:63
@ kGKeyPress
Definition GuiTypes.h:61
@ kExpose
Definition GuiTypes.h:63
@ kUnmapNotify
Definition GuiTypes.h:63
@ kButtonRelease
Definition GuiTypes.h:61
@ kSelectionNotify
Definition GuiTypes.h:64
@ kButtonPress
Definition GuiTypes.h:61
@ kButtonDoubleClick
Definition GuiTypes.h:65
@ kFocusOut
Definition GuiTypes.h:62
@ kDestroyNotify
Definition GuiTypes.h:63
@ kMotionNotify
Definition GuiTypes.h:62
@ kFocusIn
Definition GuiTypes.h:62
@ kClientMessage
Definition GuiTypes.h:64
@ kEnterNotify
Definition GuiTypes.h:62
@ kSelectionRequest
Definition GuiTypes.h:64
@ kMapNotify
Definition GuiTypes.h:63
@ kOtherEvent
Definition GuiTypes.h:65
@ kKeyRelease
Definition GuiTypes.h:61
@ kLeaveNotify
Definition GuiTypes.h:62
const Mask_t kWABorderPixel
Definition GuiTypes.h:143
const Mask_t kWAOverrideRedirect
Definition GuiTypes.h:150
const Mask_t kWABitGravity
Definition GuiTypes.h:145
const Mask_t kGCDashOffset
Definition GuiTypes.h:307
const Mask_t kGCBackground
Definition GuiTypes.h:290
const Mask_t kGCForeground
Definition GuiTypes.h:289
const Mask_t kPAReturnPixels
Definition GuiTypes.h:342
const Mask_t kGCLineStyle
Definition GuiTypes.h:292
const Mask_t kWADontPropagate
Definition GuiTypes.h:153
const Mask_t kKeyMod5Mask
Definition GuiTypes.h:203
const Mask_t kGCSubwindowMode
Definition GuiTypes.h:302
const Mask_t kGCLineWidth
Definition GuiTypes.h:291
ECursor
Definition GuiTypes.h:373
@ kRightSide
Definition GuiTypes.h:374
@ kBottomSide
Definition GuiTypes.h:374
@ kArrowRight
Definition GuiTypes.h:376
@ kTopLeft
Definition GuiTypes.h:373
@ kBottomRight
Definition GuiTypes.h:373
@ kArrowVer
Definition GuiTypes.h:375
@ kCaret
Definition GuiTypes.h:376
@ kTopSide
Definition GuiTypes.h:374
@ kLeftSide
Definition GuiTypes.h:374
@ kWatch
Definition GuiTypes.h:376
@ kMove
Definition GuiTypes.h:375
@ kTopRight
Definition GuiTypes.h:373
@ kBottomLeft
Definition GuiTypes.h:373
@ kHand
Definition GuiTypes.h:375
@ kCross
Definition GuiTypes.h:375
@ kRotate
Definition GuiTypes.h:375
@ kNoDrop
Definition GuiTypes.h:376
@ kArrowHor
Definition GuiTypes.h:375
@ kPointer
Definition GuiTypes.h:376
Handle_t Pixmap_t
Pixmap handle.
Definition GuiTypes.h:31
const Mask_t kKeyMod4Mask
Definition GuiTypes.h:202
const Mask_t kPADepth
Definition GuiTypes.h:339
const Mask_t kGCTile
Definition GuiTypes.h:297
const Mask_t kWAColormap
Definition GuiTypes.h:154
const Mask_t kButtonMotionMask
Definition GuiTypes.h:165
const Mask_t kKeyMod3Mask
Definition GuiTypes.h:201
const Mask_t kGCClipXOrigin
Definition GuiTypes.h:304
const Mask_t kWABackingStore
Definition GuiTypes.h:147
const Mask_t kFocusChangeMask
Definition GuiTypes.h:170
const Mask_t kKeyLockMask
Definition GuiTypes.h:197
const Mask_t kButtonPressMask
Definition GuiTypes.h:162
const Mask_t kPACloseness
Definition GuiTypes.h:343
Handle_t FontH_t
Font handle (as opposed to Font_t which is an index)
Definition GuiTypes.h:36
const Mask_t kKeyMod1Mask
typically the Alt key
Definition GuiTypes.h:199
EXMagic
Some magic X notify modes used in TGTextEntry widget.
Definition GuiTypes.h:220
@ kColormapUninstalled
Definition GuiTypes.h:221
@ kNotifyGrab
Definition GuiTypes.h:220
@ kNotifyUngrab
Definition GuiTypes.h:220
@ kNotifyNormal
Definition GuiTypes.h:220
@ kColormapInstalled
Definition GuiTypes.h:222
@ kNotifyPointer
Definition GuiTypes.h:221
Handle_t Visual_t
Visual handle.
Definition GuiTypes.h:28
const Mask_t kGCDashList
Definition GuiTypes.h:308
const Mask_t kExposureMask
Definition GuiTypes.h:166
const Mask_t kWAEventMask
Definition GuiTypes.h:152
const Mask_t kGCFillStyle
Definition GuiTypes.h:295
Handle_t Window_t
Window handle.
Definition GuiTypes.h:29
const Mask_t kGCJoinStyle
Definition GuiTypes.h:294
const Mask_t kKeyReleaseMask
Definition GuiTypes.h:161
const Mask_t kDoRed
Definition GuiTypes.h:320
const Mask_t kWASaveUnder
Definition GuiTypes.h:151
const Mask_t kWABackPixel
Definition GuiTypes.h:141
Handle_t Display_t
Display handle.
Definition GuiTypes.h:27
const Mask_t kWAWinGravity
Definition GuiTypes.h:146
const Mask_t kGCFunction
Definition GuiTypes.h:287
const Mask_t kOwnerGrabButtonMask
Definition GuiTypes.h:171
const Mask_t kAnyModifier
Definition GuiTypes.h:211
EGraphicsFunction
Definition GuiTypes.h:68
@ kGXorReverse
src OR NOT dst
Definition GuiTypes.h:80
@ kGXnand
NOT src OR NOT dst.
Definition GuiTypes.h:83
@ kGXandReverse
src AND NOT dst
Definition GuiTypes.h:71
@ kGXor
src OR dst
Definition GuiTypes.h:76
@ kGXcopy
src
Definition GuiTypes.h:72
@ kGXorInverted
NOT src OR dst.
Definition GuiTypes.h:82
@ kGXandInverted
NOT src AND dst.
Definition GuiTypes.h:73
@ kGXequiv
NOT src XOR dst.
Definition GuiTypes.h:78
@ kGXset
1
Definition GuiTypes.h:84
@ kGXnor
NOT src AND NOT dst.
Definition GuiTypes.h:77
@ kGXnoop
dst
Definition GuiTypes.h:74
@ kGXinvert
NOT dst.
Definition GuiTypes.h:79
@ kGXxor
src XOR dst
Definition GuiTypes.h:75
@ kGXand
src AND dst
Definition GuiTypes.h:70
@ kGXclear
0
Definition GuiTypes.h:69
@ kGXcopyInverted
NOT src.
Definition GuiTypes.h:81
const Mask_t kKeyPressMask
Definition GuiTypes.h:160
ULong_t Time_t
Event time.
Definition GuiTypes.h:43
Handle_t GContext_t
Graphics context handle.
Definition GuiTypes.h:39
EInitialState
Initial window mapping state.
Definition GuiTypes.h:346
@ kNormalState
Definition GuiTypes.h:347
@ kIconicState
Definition GuiTypes.h:348
const Mask_t kButton1Mask
Definition GuiTypes.h:204
const Mask_t kGCTileStipXOrigin
Definition GuiTypes.h:299
Handle_t Drawable_t
Drawable handle.
Definition GuiTypes.h:32
const Mask_t kWABackingPixel
Definition GuiTypes.h:149
const Mask_t kColormapChangeMask
Definition GuiTypes.h:172
const Mask_t kGCFont
Definition GuiTypes.h:301
const Mask_t kPointerMotionMask
Definition GuiTypes.h:164
const Mask_t kNoEventMask
Definition GuiTypes.h:159
const Mask_t kKeyShiftMask
Definition GuiTypes.h:196
EFrameType
types of frames (and borders), moved from TGFrame.h
Definition GuiTypes.h:379
@ kFitHeight
Definition GuiTypes.h:389
@ kChildFrame
Definition GuiTypes.h:380
@ kRaisedFrame
Definition GuiTypes.h:385
@ kTempFrame
Definition GuiTypes.h:394
@ kSunkenFrame
Definition GuiTypes.h:384
@ kVerticalFrame
Definition GuiTypes.h:382
@ kDoubleBorder
Definition GuiTypes.h:386
@ kFixedWidth
Definition GuiTypes.h:388
@ kFitWidth
Definition GuiTypes.h:387
@ kHorizontalFrame
Definition GuiTypes.h:383
@ kFixedHeight
Definition GuiTypes.h:390
@ kMdiMainFrame
Definition GuiTypes.h:395
@ kFixedSize
Definition GuiTypes.h:391
@ kMdiFrame
Definition GuiTypes.h:396
@ kOwnBackground
Definition GuiTypes.h:392
@ kTransientFrame
Definition GuiTypes.h:393
@ kMainFrame
Definition GuiTypes.h:381
Handle_t Cursor_t
Cursor handle.
Definition GuiTypes.h:35
const Handle_t kNone
Definition GuiTypes.h:89
const Mask_t kKeyControlMask
Definition GuiTypes.h:198
const Mask_t kKeyMod2Mask
typically mod on numeric keys
Definition GuiTypes.h:200
const Mask_t kButton3Mask
Definition GuiTypes.h:206
@ kDefaultScrollBarWidth
Definition GuiTypes.h:87
const Handle_t kCopyFromParent
Definition GuiTypes.h:90
const Mask_t kLeaveWindowMask
Definition GuiTypes.h:169
const Mask_t kStructureNotifyMask
Definition GuiTypes.h:167
EGuiConstants
Definition GuiTypes.h:45
@ kEvenOddRule
Definition GuiTypes.h:53
@ kArcPieSlice
Definition GuiTypes.h:55
@ kIsViewable
Definition GuiTypes.h:47
@ kCapNotLast
Definition GuiTypes.h:50
@ kInputOutput
Definition GuiTypes.h:48
@ kCapProjecting
Definition GuiTypes.h:50
@ kWindingRule
Definition GuiTypes.h:53
@ kWhenMapped
Definition GuiTypes.h:46
@ kFillOpaqueStippled
Definition GuiTypes.h:52
@ kClipByChildren
Definition GuiTypes.h:54
@ kLineDoubleDash
Definition GuiTypes.h:49
@ kIsUnviewable
Definition GuiTypes.h:47
@ kNotUseful
Definition GuiTypes.h:46
@ kCapButt
Definition GuiTypes.h:50
@ kIsUnmapped
Definition GuiTypes.h:47
@ kCapRound
Definition GuiTypes.h:50
@ kAlways
Definition GuiTypes.h:46
@ kJoinBevel
Definition GuiTypes.h:51
@ kIncludeInferiors
Definition GuiTypes.h:54
@ kFillStippled
Definition GuiTypes.h:52
@ kFillSolid
Definition GuiTypes.h:52
@ kLineSolid
Definition GuiTypes.h:49
@ kJoinRound
Definition GuiTypes.h:51
@ kJoinMiter
Definition GuiTypes.h:51
@ kLineOnOffDash
Definition GuiTypes.h:49
@ kArcChord
Definition GuiTypes.h:55
@ kFillTiled
Definition GuiTypes.h:52
@ kInputOnly
Definition GuiTypes.h:48
const Mask_t kButton2Mask
Definition GuiTypes.h:205
const Mask_t kButton4Mask
Definition GuiTypes.h:207
const Handle_t kParentRelative
Definition GuiTypes.h:91
const Mask_t kPAColormap
Definition GuiTypes.h:338
const Mask_t kGCFillRule
Definition GuiTypes.h:296
const Mask_t kGCPlaneMask
Definition GuiTypes.h:288
UInt_t Mask_t
Structure mask type.
Definition GuiTypes.h:42
const Int_t kMaxPixel
Max value for an int.
Definition GuiTypes.h:370
const Mask_t kGCStipple
Definition GuiTypes.h:298
const Mask_t kButtonReleaseMask
Definition GuiTypes.h:163
const Mask_t kGCGraphicsExposures
Definition GuiTypes.h:303
const Mask_t kGCClipYOrigin
Definition GuiTypes.h:305
const Atom_t kPrimarySelection
magic values, must match the ones
Definition GuiTypes.h:368
const Mask_t kButton7Mask
Definition GuiTypes.h:210
const Mask_t kDoGreen
Definition GuiTypes.h:321
const Mask_t kWABorderPixmap
Definition GuiTypes.h:142
Handle_t KeySym_t
Key symbol handle.
Definition GuiTypes.h:37
const Mask_t kPASize
width and height
Definition GuiTypes.h:340
const Mask_t kEnterWindowMask
Definition GuiTypes.h:168
const Mask_t kGCClipMask
Definition GuiTypes.h:306
const Mask_t kDoBlue
Definition GuiTypes.h:322
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:41
const Mask_t kButton6Mask
Definition GuiTypes.h:209
const Mask_t kPAHotspot
x and y hotspot
Definition GuiTypes.h:341
const Mask_t kGCTileStipYOrigin
Definition GuiTypes.h:300
const Mask_t kWACursor
Definition GuiTypes.h:155
EMouseButton
Button names.
Definition GuiTypes.h:215
@ kButton4
Definition GuiTypes.h:216
@ kButton7
Definition GuiTypes.h:216
@ kButton2
Definition GuiTypes.h:215
@ kButton5
Definition GuiTypes.h:216
@ kButton3
Definition GuiTypes.h:215
@ kButton1
Definition GuiTypes.h:215
@ kButton6
Definition GuiTypes.h:216
@ kAnyButton
Definition GuiTypes.h:215
Handle_t Colormap_t
Colormap handle.
Definition GuiTypes.h:34
const Mask_t kButton5Mask
Definition GuiTypes.h:208
const Mask_t kWABackPixmap
Definition GuiTypes.h:140
const Mask_t kWABorderWidth
Definition GuiTypes.h:144
ULongptr_t Handle_t
Generic resource handle.
Definition GuiTypes.h:26
Handle_t FontStruct_t
Pointer to font structure.
Definition GuiTypes.h:40
const Mask_t kWABackingPlanes
Definition GuiTypes.h:148
const int kNumCursors
Definition GuiTypes.h:372
const Atom_t kCutBuffer
in /usr/include/X11/Xatom.h
Definition GuiTypes.h:369
int Int_t
Signed integer 4 bytes (int)
Definition RtypesCore.h:59
long Longptr_t
Integer large enough to hold a pointer (platform-dependent)
Definition RtypesCore.h:89
char Char_t
Character 1 byte (char)
Definition RtypesCore.h:51
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
Definition RtypesCore.h:69
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
Definition RtypesCore.h:68
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
Definition RtypesCore.h:60
unsigned long ULongptr_t
Unsigned integer large enough to hold a pointer (platform-dependent)
Definition RtypesCore.h:90
short Short_t
Signed Short integer 2 bytes (short)
Definition RtypesCore.h:53
constexpr Bool_t kTRUE
Definition RtypesCore.h:107
#define BIT(n)
Definition Rtypes.h:91
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
ULong_t fPixel
color pixel value (index in color table)
Definition GuiTypes.h:312
UShort_t fRed
red component (0..65535)
Definition GuiTypes.h:313
UShort_t fGreen
green component (0..65535)
Definition GuiTypes.h:314
UShort_t fBlue
blue component (0..65535)
Definition GuiTypes.h:315
UShort_t fMask
mask telling which color components are valid
Definition GuiTypes.h:316
Event structure.
Definition GuiTypes.h:175
EGEventType fType
of event (see EGEventType)
Definition GuiTypes.h:176
Int_t fY
pointer x, y coordinates in event window
Definition GuiTypes.h:179
Int_t fXRoot
Definition GuiTypes.h:180
Bool_t fSendEvent
true if event came from SendEvent
Definition GuiTypes.h:185
Handle_t fHandle
general resource handle (used for atoms or windows)
Definition GuiTypes.h:186
Int_t fFormat
Next fields only used by kClientMessageEvent.
Definition GuiTypes.h:187
UInt_t fWidth
Definition GuiTypes.h:183
UInt_t fHeight
width and height of exposed area
Definition GuiTypes.h:183
Int_t fCount
if non-zero, at least this many more exposes
Definition GuiTypes.h:184
Window_t fWindow
window reported event is relative to
Definition GuiTypes.h:177
UInt_t fState
key or button mask
Definition GuiTypes.h:182
Int_t fYRoot
coordinates relative to root
Definition GuiTypes.h:180
Int_t fX
Definition GuiTypes.h:179
Time_t fTime
time event event occurred in ms
Definition GuiTypes.h:178
UInt_t fCode
key or button code
Definition GuiTypes.h:181
Longptr_t fUser[5]
5 longs can be used by client message events NOTE: only [0], [1] and [2] may be used.
Definition GuiTypes.h:188
Graphics context structure.
Definition GuiTypes.h:225
ULong_t fBackground
background pixel
Definition GuiTypes.h:229
Int_t fFillRule
kEvenOddRule, kWindingRule
Definition GuiTypes.h:237
Pixmap_t fClipMask
bitmap clipping; other calls for rects
Definition GuiTypes.h:248
Int_t fDashOffset
patterned/dashed line information
Definition GuiTypes.h:249
Int_t fClipYOrigin
Definition GuiTypes.h:247
Int_t fClipXOrigin
origin for clipping
Definition GuiTypes.h:246
Int_t fLineWidth
line width
Definition GuiTypes.h:230
Pixmap_t fStipple
stipple 1 plane pixmap for stippling
Definition GuiTypes.h:240
Mask_t fMask
bit mask specifying which fields are valid
Definition GuiTypes.h:252
Int_t fLineStyle
kLineSolid, kLineOnOffDash, kLineDoubleDash
Definition GuiTypes.h:231
Pixmap_t fTile
tile pixmap for tiling operations
Definition GuiTypes.h:239
Bool_t fGraphicsExposures
boolean, should exposures be generated
Definition GuiTypes.h:245
Int_t fJoinStyle
kJoinMiter, kJoinRound, kJoinBevel
Definition GuiTypes.h:234
Char_t fDashes[8]
dash pattern list (dash length per byte)
Definition GuiTypes.h:250
ULong_t fForeground
foreground pixel
Definition GuiTypes.h:228
ULong_t fPlaneMask
plane mask
Definition GuiTypes.h:227
Int_t fFillStyle
kFillSolid, kFillTiled, kFillStippled, kFillOpaeueStippled
Definition GuiTypes.h:235
FontH_t fFont
default text font for text operations
Definition GuiTypes.h:243
Int_t fTsXOrigin
offset for tile or stipple operations
Definition GuiTypes.h:241
EGraphicsFunction fFunction
logical operation
Definition GuiTypes.h:226
Int_t fDashLen
number of dashes in fDashes
Definition GuiTypes.h:251
Int_t fCapStyle
kCapNotLast, kCapButt, kCapRound, kCapProjecting
Definition GuiTypes.h:232
Int_t fArcMode
kArcChord, kArcPieSlice
Definition GuiTypes.h:238
Int_t fTsYOrigin
Definition GuiTypes.h:242
Int_t fSubwindowMode
kClipByChildren, kIncludeInferiors
Definition GuiTypes.h:244
UInt_t fHeight
height of picture
Definition GuiTypes.h:328
Mask_t fMask
mask specifying which attributes are defined
Definition GuiTypes.h:334
ULong_t * fPixels
list of used color pixels (if set use delete[])
Definition GuiTypes.h:331
Colormap_t fColormap
colormap to use
Definition GuiTypes.h:325
UInt_t fCloseness
allowable RGB deviation
Definition GuiTypes.h:333
Int_t fDepth
depth of window
Definition GuiTypes.h:326
UInt_t fNpixels
number of used color pixels
Definition GuiTypes.h:332
UInt_t fYHotspot
picture y hotspot coordinate
Definition GuiTypes.h:330
UInt_t fXHotspot
picture x hotspot coordinate
Definition GuiTypes.h:329
UInt_t fWidth
width of picture
Definition GuiTypes.h:327
Point structure (maps to the X11 XPoint structure)
Definition GuiTypes.h:357
Short_t fY
Definition GuiTypes.h:358
Short_t fX
Definition GuiTypes.h:358
Rectangle structure (maps to the X11 XRectangle structure)
Definition GuiTypes.h:362
Short_t fX
Definition GuiTypes.h:363
UShort_t fHeight
Definition GuiTypes.h:364
Short_t fY
Definition GuiTypes.h:363
UShort_t fWidth
Definition GuiTypes.h:364
Used for drawing line segments (maps to the X11 XSegments structure)
Definition GuiTypes.h:352
Short_t fY2
Definition GuiTypes.h:353
Short_t fX1
Definition GuiTypes.h:353
Short_t fX2
Definition GuiTypes.h:353
Short_t fY1
Definition GuiTypes.h:353
Attributes that can be used when creating or changing a window.
Definition GuiTypes.h:94
ULong_t fBackingPlanes
planes to be preserved if possible
Definition GuiTypes.h:103
UInt_t fBorderWidth
border width in pixels
Definition GuiTypes.h:99
Long_t fEventMask
set of events that should be saved
Definition GuiTypes.h:106
Pixmap_t fBackgroundPixmap
background or kNone or kParentRelative
Definition GuiTypes.h:95
Long_t fDoNotPropagateMask
set of events that should not propagate
Definition GuiTypes.h:107
ULong_t fBackingPixel
value to use in restoring planes
Definition GuiTypes.h:104
Pixmap_t fBorderPixmap
border of the window
Definition GuiTypes.h:97
Bool_t fOverrideRedirect
boolean value for override-redirect
Definition GuiTypes.h:108
Mask_t fMask
bit mask specifying which fields are valid
Definition GuiTypes.h:111
Int_t fWinGravity
one of the window gravity values
Definition GuiTypes.h:101
ULong_t fBackgroundPixel
background pixel
Definition GuiTypes.h:96
Cursor_t fCursor
cursor to be displayed (or kNone)
Definition GuiTypes.h:110
Int_t fBitGravity
one of bit gravity values
Definition GuiTypes.h:100
Int_t fBackingStore
kNotUseful, kWhenMapped, kAlways
Definition GuiTypes.h:102
ULong_t fBorderPixel
border pixel value
Definition GuiTypes.h:98
Bool_t fSaveUnder
should bits under be saved (popups)?
Definition GuiTypes.h:105
Colormap_t fColormap
color map to be associated with window
Definition GuiTypes.h:109
Window attributes that can be inquired.
Definition GuiTypes.h:115
Window_t fRoot
root of screen containing window
Definition GuiTypes.h:121
Int_t fMapState
kIsUnmapped, kIsUnviewable, kIsViewable
Definition GuiTypes.h:131
ULong_t fBackingPlanes
planes to be preserved if possible
Definition GuiTypes.h:126
Long_t fAllEventMasks
set of events all people have interest in
Definition GuiTypes.h:132
ULong_t fBackingPixel
value to be used when restoring planes
Definition GuiTypes.h:127
Long_t fYourEventMask
my event mask
Definition GuiTypes.h:133
Int_t fHeight
width and height of window
Definition GuiTypes.h:117
Bool_t fMapInstalled
boolean, is color map currently installed
Definition GuiTypes.h:130
Int_t fBorderWidth
border width of window
Definition GuiTypes.h:118
Int_t fWinGravity
one of the window gravity values
Definition GuiTypes.h:124
void * fScreen
back pointer to correct screen
Definition GuiTypes.h:136
Long_t fDoNotPropagateMask
set of events that should not propagate
Definition GuiTypes.h:134
Colormap_t fColormap
color map to be associated with window
Definition GuiTypes.h:129
Int_t fClass
kInputOutput, kInputOnly
Definition GuiTypes.h:122
Int_t fBitGravity
one of bit gravity values
Definition GuiTypes.h:123
void * fVisual
the associated visual structure
Definition GuiTypes.h:120
Int_t fBackingStore
kNotUseful, kWhenMapped, kAlways
Definition GuiTypes.h:125
Int_t fY
location of window
Definition GuiTypes.h:116
Int_t fDepth
depth of window
Definition GuiTypes.h:119
Bool_t fOverrideRedirect
boolean value for override-redirect
Definition GuiTypes.h:135
Bool_t fSaveUnder
boolean, should bits under be saved?
Definition GuiTypes.h:128