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