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