26#include <X11/cursorfont.h>
27#include <X11/keysym.h>
73#ifndef XK_ISO_Left_Tab
160 conv.i[0] = (
Int_t) i1;
161 conv.i[1] = (
Int_t) i2;
171 XGetErrorText(disp, err->error_code, msg, 80);
173 if (!err->resourceid)
return 0;
179 ::Error(
"RootX11ErrorHandler",
"%s (XID: %u, XREQ: %u)", msg,
180 (
UInt_t)err->resourceid, err->request_code);
182 ::Error(
"RootX11ErrorHandler",
"%s (%s XID: %u, XREQ: %u)", msg,
w->ClassName(),
183 (
UInt_t)err->resourceid, err->request_code);
199 ::Error(
"RootX11IOErrorHandler",
"fatal X11 error (connection to server lost?!)");
200 fprintf(stderr,
"\n**** Save data and exit application ****\n\n");
385 if (
fColormap && !(xmask & CWColormap)) {
390 xmask |= CWBorderPixel;
395 w,
h, border, depth, clss, (
Visual*)visual,
405 Long_t lxemask = NoEventMask;
407 lxemask |= KeyPressMask;
409 lxemask |= KeyReleaseMask;
411 lxemask |= ButtonPressMask;
413 lxemask |= ButtonReleaseMask;
415 lxemask |= PointerMotionMask;
417 lxemask |= ButtonMotionMask;
419 lxemask |= ExposureMask;
421 lxemask |= StructureNotifyMask;
423 lxemask |= EnterWindowMask;
425 lxemask |= LeaveWindowMask;
427 lxemask |= FocusChangeMask;
429 lxemask |= OwnerGrabButtonMask;
431 lxemask |= ColormapChangeMask;
435 if ((xemask & KeyPressMask))
437 if ((xemask & KeyReleaseMask))
439 if ((xemask & ButtonPressMask))
441 if ((xemask & ButtonReleaseMask))
443 if ((xemask & PointerMotionMask))
445 if ((xemask & ButtonMotionMask))
447 if ((xemask & ExposureMask))
449 if ((xemask & StructureNotifyMask))
451 if ((xemask & EnterWindowMask))
453 if ((xemask & LeaveWindowMask))
455 if ((xemask & FocusChangeMask))
457 if ((xemask & OwnerGrabButtonMask))
459 if ((xemask & ColormapChangeMask))
474 xmask |= CWBackPixmap;
476 xattr.background_pixmap = None;
478 xattr.background_pixmap = ParentRelative;
480 xattr.background_pixmap = (Pixmap)
attr->fBackgroundPixmap;
483 xmask |= CWBackPixel;
484 xattr.background_pixel =
attr->fBackgroundPixel;
487 xmask |= CWBorderPixmap;
488 xattr.border_pixmap = (Pixmap)
attr->fBorderPixmap;
491 xmask |= CWBorderPixel;
492 xattr.border_pixel =
attr->fBorderPixel;
495 xmask |= CWBitGravity;
496 xattr.bit_gravity =
attr->fBitGravity;
499 xmask |= CWWinGravity;
500 xattr.win_gravity =
attr->fWinGravity;
503 xmask |= CWBackingStore;
505 xattr.backing_store = NotUseful;
507 xattr.backing_store = WhenMapped;
509 xattr.backing_store = Always;
511 xattr.backing_store =
attr->fBackingStore;
514 xmask |= CWBackingPlanes;
515 xattr.backing_planes =
attr->fBackingPlanes;
518 xmask |= CWBackingPixel;
519 xattr.backing_pixel =
attr->fBackingPixel;
522 xmask |= CWOverrideRedirect;
523 xattr.override_redirect =
attr->fOverrideRedirect;
526 xmask |= CWSaveUnder;
527 xattr.save_under = (Bool)
attr->fSaveUnder;
530 xmask |= CWEventMask;
533 xattr.event_mask = xmsk;
536 xmask |= CWDontPropagate;
537 xattr.do_not_propagate_mask =
attr->fDoNotPropagateMask;
566 xgval.function =
gval.fFunction;
569 xmask |= GCPlaneMask;
570 xgval.plane_mask =
gval.fPlaneMask;
573 xmask |= GCForeground;
574 xgval.foreground =
gval.fForeground;
577 xmask |= GCBackground;
578 xgval.background =
gval.fBackground;
581 xmask |= GCLineWidth;
582 xgval.line_width =
gval.fLineWidth;
585 xmask |= GCLineStyle;
586 xgval.line_style =
gval.fLineStyle;
590 xgval.cap_style =
gval.fCapStyle;
593 xmask |= GCJoinStyle;
594 xgval.join_style =
gval.fJoinStyle;
597 xmask |= GCFillStyle;
598 xgval.fill_style =
gval.fFillStyle;
602 xgval.fill_rule =
gval.fFillRule;
606 xgval.tile = (Pixmap)
gval.fTile;
610 xgval.stipple = (Pixmap)
gval.fStipple;
613 xmask |= GCTileStipXOrigin;
614 xgval.ts_x_origin =
gval.fTsXOrigin;
617 xmask |= GCTileStipYOrigin;
618 xgval.ts_y_origin =
gval.fTsYOrigin;
623 xgval.font = (Font)
gval.fFont;
627 xmask |= GCSubwindowMode;
628 xgval.subwindow_mode =
gval.fSubwindowMode;
631 xmask |= GCGraphicsExposures;
632 xgval.graphics_exposures = (Bool)
gval.fGraphicsExposures;
635 xmask |= GCClipXOrigin;
636 xgval.clip_x_origin =
gval.fClipXOrigin;
639 xmask |= GCClipYOrigin;
640 xgval.clip_y_origin =
gval.fClipYOrigin;
644 xgval.clip_mask = (Pixmap)
gval.fClipMask;
647 xmask |= GCDashOffset;
648 xgval.dash_offset =
gval.fDashOffset;
652 xgval.dashes =
gval.fDashes[0];
656 xgval.arc_mode =
gval.fArcMode;
663 if ((xmask & GCFunction)) {
667 if ((xmask & GCPlaneMask)) {
669 gval.fPlaneMask = xgval.plane_mask;
671 if ((xmask & GCForeground)) {
673 gval.fForeground = xgval.foreground;
675 if ((xmask & GCBackground)) {
677 gval.fBackground = xgval.background;
679 if ((xmask & GCLineWidth)) {
681 gval.fLineWidth = xgval.line_width;
683 if ((xmask & GCLineStyle)) {
685 gval.fLineStyle = xgval.line_style;
687 if ((xmask & GCCapStyle)) {
689 gval.fCapStyle = xgval.cap_style;
691 if ((xmask & GCJoinStyle)) {
693 gval.fJoinStyle = xgval.join_style;
695 if ((xmask & GCFillStyle)) {
697 gval.fFillStyle = xgval.fill_style;
699 if ((xmask & GCFillRule)) {
701 gval.fFillRule = xgval.fill_rule;
703 if ((xmask & GCTile)) {
707 if ((xmask & GCStipple)) {
711 if ((xmask & GCTileStipXOrigin)) {
713 gval.fTsXOrigin = xgval.ts_x_origin;
715 if ((xmask & GCTileStipYOrigin)) {
717 gval.fTsYOrigin = xgval.ts_y_origin;
719 if ((xmask & GCFont)) {
723 if ((xmask & GCSubwindowMode)) {
725 gval.fSubwindowMode = xgval.subwindow_mode;
727 if ((xmask & GCGraphicsExposures)) {
729 gval.fGraphicsExposures = (
Bool_t) xgval.graphics_exposures;
731 if ((xmask & GCClipXOrigin)) {
733 gval.fClipXOrigin = xgval.clip_x_origin;
735 if ((xmask & GCClipYOrigin)) {
737 gval.fClipYOrigin = xgval.clip_y_origin;
739 if ((xmask & GCClipMask)) {
743 if ((xmask & GCDashOffset)) {
745 gval.fDashOffset = xgval.dash_offset;
747 if ((xmask & GCDashList)) {
749 gval.fDashes[0] = xgval.dashes;
752 if ((xmask & GCArcMode)) {
754 gval.fArcMode = xgval.arc_mode;
767 XWindowAttributes xattr;
769 XGetWindowAttributes((Display*)
fDisplay,
id, &xattr);
773 attr.fWidth = xattr.width;
774 attr.fHeight = xattr.height;
775 attr.fBorderWidth = xattr.border_width;
776 attr.fDepth = xattr.depth;
777 attr.fVisual = xattr.visual;
781 attr.fBitGravity = xattr.bit_gravity;
782 attr.fWinGravity = xattr.win_gravity;
783 if (xattr.backing_store == NotUseful)
attr.fBackingStore =
kNotUseful;
784 if (xattr.backing_store == WhenMapped)
attr.fBackingStore =
kWhenMapped;
785 if (xattr.backing_store == Always)
attr.fBackingStore =
kAlways;
786 attr.fBackingPlanes = xattr.backing_planes;
787 attr.fBackingPixel = xattr.backing_pixel;
793 attr.fMapInstalled = (
Bool_t) xattr.map_installed;
794 attr.fMapState = xattr.map_state;
795 attr.fAllEventMasks = xattr.all_event_masks;
796 attr.fYourEventMask = xattr.your_event_mask;
797 attr.fDoNotPropagateMask = xattr.do_not_propagate_mask;
798 attr.fOverrideRedirect = (
Bool_t) xattr.override_redirect;
799 attr.fScreen = xattr.screen;
816 Warning(
"OpenDisplay",
"system has no X11 thread support");
820 if (!(dpy = XOpenDisplay(dpyName)))
828 XSynchronize(dpy, 1);
834 return ConnectionNumber(dpy);
904 if (
a == None)
return kNone;
925 Window *children =
nullptr;
928 XQueryTree((Display*)
fDisplay, (
Window)
id, &root, &parent, &children, &nchildren);
930 if (children) XFree(children);
943 XFontStruct *
fs = XLoadQueryFont((Display*)
fDisplay, (
char *)font_name);
953 XFontStruct *fss = (XFontStruct *)
fs;
1001 XChangeGC((Display*)
fDisplay, (GC)
gc, xmask, &xgval);
1110 xmask |= XpmColormap;
1115 xpmattr.depth =
attr.fDepth;
1119 xpmattr.width =
attr.fWidth;
1120 xpmattr.height =
attr.fHeight;
1123 xmask |= XpmHotspot;
1124 xpmattr.x_hotspot =
attr.fXHotspot;
1125 xpmattr.y_hotspot =
attr.fYHotspot;
1128 xmask |= XpmReturnPixels;
1129 xpmattr.pixels =
nullptr;
1130 xpmattr.npixels = 0;
1133 xmask |= XpmCloseness;
1134 xpmattr.closeness =
attr.fCloseness;
1136 xpmattr.valuemask = xmask;
1138 ULong_t xmask = xpmattr.valuemask;
1141 attr.fPixels =
nullptr;
1144 if ((xmask & XpmColormap)) {
1148 attr.fDepth = xpmattr.depth;
1150 if ((xmask & XpmSize)) {
1152 attr.fWidth = xpmattr.width;
1153 attr.fHeight = xpmattr.height;
1155 if ((xmask & XpmHotspot)) {
1157 attr.fXHotspot = xpmattr.x_hotspot;
1158 attr.fYHotspot = xpmattr.y_hotspot;
1160 if ((xmask & XpmReturnPixels)) {
1162 if (xpmattr.npixels) {
1164 for (
UInt_t i = 0; i < xpmattr.npixels; i++)
1165 attr.fPixels[i] = xpmattr.pixels[i];
1166 attr.fNpixels = xpmattr.npixels;
1169 if ((xmask & XpmCloseness)) {
1171 attr.fCloseness = xpmattr.closeness;
1203 xpmattr.valuemask |= XpmDepth;
1211 XpmFreeAttributes(&xpmattr);
1213 if (res == XpmSuccess || res == XpmColorError)
1225 Error(
"CreatePictureFromFile",
"cannot get picture, not compiled with Xpm");
1246 xpmattr.valuemask |= XpmDepth;
1254 XpmFreeAttributes(&xpmattr);
1256 if (res == XpmSuccess || res == XpmColorError)
1268 Error(
"CreatePictureFromData",
"cannot get picture, not compiled with Xpm");
1281 if (XpmReadFileToData((
char*)
filename, ret_data) == XpmSuccess)
1284 Error(
"ReadPictureFromDataFile",
"cannot get picture, not compiled with Xpm");
1317 xcolor.pixel = color->
fPixel;
1318 xcolor.red = color->
fRed;
1319 xcolor.green = color->
fGreen;
1320 xcolor.blue = color->
fBlue;
1321 xcolor.flags = color->
fMask;
1337 color.
fRed = xc.red;
1339 color.
fBlue = xc.blue;
1383 color.
fRed = xc.red;
1385 color.
fBlue = xc.blue;
1403 return XPending((Display*)
fDisplay);
1427 xstate |= ShiftMask;
1431 xstate |= ControlMask;
1443 xstate |= Button1Mask;
1445 xstate |= Button2Mask;
1447 xstate |= Button3Mask;
1449 xstate |= AnyModifier;
1452 if ((xstate & ShiftMask))
1454 if ((xstate & LockMask))
1456 if ((xstate & ControlMask))
1458 if ((xstate & Mod1Mask))
1460 if ((xstate & Mod2Mask))
1462 if ((xstate & Mod3Mask))
1464 if ((xstate & Mod4Mask))
1466 if ((xstate & Mod5Mask))
1468 if ((xstate & Button1Mask))
1470 if ((xstate & Button2Mask))
1472 if ((xstate & Button3Mask))
1474 if ((xstate & AnyModifier))
1485 XEvent &xev = *(XEvent *)xevi;
1512 xev.xany.display = (Display*)
fDisplay;
1515 xev.xkey.time = (Time) ev.
fTime;
1518 xev.xkey.x_root = ev.
fXRoot;
1519 xev.xkey.y_root = ev.
fYRoot;
1521 xev.xkey.keycode = ev.
fCode;
1524 xev.xselection.time = (Time) ev.
fTime;
1526 xev.xselection.selection = (
Atom) ev.
fUser[1];
1527 xev.xselection.target = (
Atom) ev.
fUser[2];
1528 xev.xselection.property = (
Atom) ev.
fUser[3];
1531 xev.xclient.message_type = ev.
fHandle;
1532 xev.xclient.format = ev.
fFormat;
1533 xev.xclient.data.l[0] = ev.
fUser[0];
1534 if (
sizeof(ev.
fUser[0]) > 4) {
1535 SplitLong(ev.
fUser[1], xev.xclient.data.l[1], xev.xclient.data.l[3]);
1536 SplitLong(ev.
fUser[2], xev.xclient.data.l[2], xev.xclient.data.l[4]);
1538 xev.xclient.data.l[1] = ev.
fUser[1];
1539 xev.xclient.data.l[2] = ev.
fUser[2];
1540 xev.xclient.data.l[3] = ev.
fUser[3];
1541 xev.xclient.data.l[4] = ev.
fUser[4];
1575 ev.
fXRoot = xev.xkey.x_root;
1576 ev.
fYRoot = xev.xkey.y_root;
1578 ev.
fCode = xev.xkey.keycode;
1579 ev.
fUser[0] = xev.xkey.subwindow;
1583 ev.
fX = xev.xbutton.x;
1584 ev.
fY = xev.xbutton.y;
1585 ev.
fXRoot = xev.xbutton.x_root;
1586 ev.
fYRoot = xev.xbutton.y_root;
1588 ev.
fCode = xev.xbutton.button;
1589 ev.
fUser[0] = xev.xbutton.subwindow;
1593 ev.
fX = xev.xmotion.x;
1594 ev.
fY = xev.xmotion.y;
1595 ev.
fXRoot = xev.xmotion.x_root;
1596 ev.
fYRoot = xev.xmotion.y_root;
1598 ev.
fUser[0] = xev.xmotion.subwindow;
1602 ev.
fX = xev.xcrossing.x;
1603 ev.
fY = xev.xcrossing.y;
1604 ev.
fXRoot = xev.xcrossing.x_root;
1605 ev.
fYRoot = xev.xcrossing.y_root;
1606 ev.
fCode = xev.xcrossing.mode;
1611 ev.
fCode = xev.xfocus.mode;
1612 ev.
fState = xev.xfocus.detail;
1615 ev.
fX = xev.xexpose.x;
1616 ev.
fY = xev.xexpose.y;
1617 ev.
fWidth = xev.xexpose.width;
1618 ev.
fHeight = xev.xexpose.height;
1619 ev.
fCount = xev.xexpose.count;
1622 ev.
fX = xev.xconfigure.x;
1623 ev.
fY = xev.xconfigure.y;
1624 ev.
fWidth = xev.xconfigure.width;
1625 ev.
fHeight = xev.xconfigure.height;
1631 ev.
fHandle = xev.xdestroywindow.window;
1634 ev.
fHandle = xev.xclient.message_type;
1635 ev.
fFormat = xev.xclient.format;
1636 ev.
fUser[0] = xev.xclient.data.l[0];
1637 if (
sizeof(ev.
fUser[0]) > 4) {
1638 AsmLong(xev.xclient.data.l[1], xev.xclient.data.l[3], ev.
fUser[1]);
1639 AsmLong(xev.xclient.data.l[2], xev.xclient.data.l[4], ev.
fUser[2]);
1641 ev.
fUser[1] = xev.xclient.data.l[1];
1642 ev.
fUser[2] = xev.xclient.data.l[2];
1643 ev.
fUser[3] = xev.xclient.data.l[3];
1644 ev.
fUser[4] = xev.xclient.data.l[4];
1648 ev.
fUser[0] = xev.xselectionclear.selection;
1652 ev.
fUser[0] = xev.xselectionrequest.requestor;
1653 ev.
fUser[1] = xev.xselectionrequest.selection;
1654 ev.
fUser[2] = xev.xselectionrequest.target;
1655 ev.
fUser[3] = xev.xselectionrequest.property;
1659 ev.
fUser[0] = xev.xselection.requestor;
1660 ev.
fUser[1] = xev.xselection.selection;
1661 ev.
fUser[2] = xev.xselection.target;
1662 ev.
fUser[3] = xev.xselection.property;
1665 ev.
fHandle = xev.xcolormap.colormap;
1666 ev.
fCode = xev.xcolormap.state;
1667 ev.
fState = xev.xcolormap.c_new;
1708 XChangeWindowAttributes((Display*)
fDisplay, (
Window)
id, xmask, &xattr);
1725 8, PropModeReplace,
data,
len);
1769 tev.
fX = tev.
fY = 0;
1774 Bool
r = XCheckTypedWindowEvent((Display*)
fDisplay, (
Window)
id, xev.type, &xev);
1786 if (!ev || !
id)
return;
1816 XAutoRepeatOff((Display*)
fDisplay);
1835 GrabModeAsync, GrabModeAsync);
1881 XGrabPointer((Display*)
fDisplay, (
Window)
id, (Bool) owner_events,
1885 XUngrabPointer((Display*)
fDisplay, CurrentTime);
1895 XTextProperty wname;
1897 if (XStringListToTextProperty(&
name, 1, &wname) == 0) {
1898 Error(
"SetWindowName",
"cannot allocate window name \"%s\"",
name);
1912 XTextProperty wname;
1914 if (XStringListToTextProperty(&
name, 1, &wname) == 0) {
1915 Error(
"SetIconName",
"cannot allocate icon name \"%s\"",
name);
1931 hints.flags = IconPixmapHint;
1932 hints.icon_pixmap = (Pixmap) pic;
1944 XClassHint class_hints;
1946 class_hints.res_class = className;
1947 class_hints.res_name = resourceName;
1958 MWMHintsProperty_t
prop;
1978 hints.flags = USPosition | PPosition;
1994 hints.flags = USSize | PSize | PBaseSize;
1995 hints.width = hints.base_width =
w;
1996 hints.height = hints.base_height =
h;
2013 hints.flags = PMinSize | PMaxSize | PResizeInc;
2032 Int_t xstate = NormalState;
2035 xstate = NormalState;
2037 xstate = IconicState;
2039 hints.flags = StateHint;
2040 hints.initial_state = xstate;
2071 return XTextWidth((XFontStruct*) font, (
char*) s,
len);
2079 XFontStruct *
f = (XFontStruct *) font;
2081 max_ascent =
f->max_bounds.ascent;
2082 max_descent =
f->max_bounds.descent;
2102 XGetGCValues((Display*)
fDisplay, (GC)
gc, xmask, &xgval);
2115 fs = XQueryFont((Display*)
fDisplay, (Font) fh);
2126 static int xfree86_400 = -1;
2127 if (xfree86_400 == -1) {
2128 if (strstr(XServerVendor((Display*)
fDisplay),
"XFree86") &&
2129 XVendorRelease((Display*)
fDisplay) == 4000)
2135 if (xfree86_400 == 0)
2136 XFreeFontInfo(
nullptr, (XFontStruct *)
fs, 1);
2159 return XKeysymToKeycode((Display*)
fDisplay, xkeysym);
2217 XGetInputFocus((Display*)
fDisplay, &focus, &return_to);
2228 XWindowAttributes xattr;
2232 if (xattr.map_state == IsViewable)
2233 XSetInputFocus((Display*)
fDisplay, (
Window)
id, RevertToParent, CurrentTime);
2288 int n = XLookupString(&xev.xkey, buf, buflen-1, &xkeysym,
nullptr);
2290 Error(
"LookupString",
"buf too small, must be at least %d",
n+1);
2296 keysym = (
Int_t) ks;
2306 xkeysym = XK_VoidSymbol;
2312 for (
int i = 0;
gKeyMap[i].fKeySym; i++) {
2322 if (xkeysym < 127) {
2324 }
else if (xkeysym >= XK_F1 && xkeysym <= XK_F35) {
2325 keysym =
kKey_F1 + (xkeysym - XK_F1);
2326 }
else if (xkeysym >= XK_KP_0 && xkeysym <= XK_KP_9) {
2327 keysym =
kKey_0 + (xkeysym - XK_KP_0);
2329 for (
int i = 0;
gKeyMap[i].fXKeySym; i++) {
2330 if (xkeysym ==
gKeyMap[i].fXKeySym) {
2351 unsigned char *
data;
2362 nread/4, 1024, (Bool)
del,
2364 &actual_type, &actual_format,
2366 (
unsigned char **) &
data)
2376 }
while (bytes_after > 0);
2426 Convex, CoordModeOrigin);
2447 XQueryPointer((Display*)
fDisplay, (
Window)
id, &xrootw, &xchildw,
2448 &root_x, &root_y, &win_x, &win_y, &xmask);
2472 XSetClipRectangles((Display*)
fDisplay, (GC)
gc,
x,
y, (XRectangle *)
recs,
n, Unsorted);
2501 XDestroyRegion((Region)
reg);
2509 XRectangle *
r = (XRectangle *)
rect;
2510 XUnionRectWithRegion(
r, (Region)
src, (Region)
dest);
2519 XPoint *
p = (XPoint *)
points;
2520 return (
Region_t) XPolygonRegion(
p,
np, winding ? WindingRule : EvenOddRule);
2563 return (
Bool_t) XEmptyRegion((Region)
reg);
2571 return (
Bool_t) XPointInRegion((Region)
reg,
x,
y);
2587 XClipBox((Region)
reg, (XRectangle*)
rect);
2596 Int_t fontcount = 0;
2597 fontlist = XListFonts((Display*)
fDisplay, (
char *)
fontname, max, &fontcount);
2607 XFreeFontNames(fontlist);
2628 if (xim) xim->data = (
char *)
calloc(xim->bytes_per_line * xim->height, 1);
2659 x,
y, dx, dy,
w,
h);
2667 XDestroyImage((
XImage*) img);
2686 return (
UInt_t)WidthMMOfScreen(DefaultScreenOfDisplay((Display*)
fDisplay));
2708 unsigned char **prop_list)
2725 XChangeActivePointerGrab((Display*)
fDisplay, xevmask, cur, CurrentTime);
2743 return XSetSelectionOwner((Display*)
fDisplay,
sel, owner, CurrentTime);
2766 unsigned char version = 4;
2769 32, PropModeReplace, (
unsigned char *) &version, 1);
2803 int x,
int y,
int maxd)
2806 static Atom_t *dndTypeList =
nullptr;
2809 dndTypeList =
new Atom_t[3];
2815 if (maxd <= 0)
return kNone;
2830 if (XQueryTree((Display*)
fDisplay,
win, &
r, &
p, &children, &numch)) {
2831 if (children && numch > 0) {
2835 for (i = numch-1; i >= 0; --i) {
2837 x - wattr.
fX,
y - wattr.
fY, maxd-1);
2858 unsigned char *
data =
nullptr;
2865 if (dndaware ==
kNone)
2881 for (
ULong_t j = 1; j < count; j++) {
2882 if (types[j] == *t) {
const Int_t kPropMotifWMHintsElements
static KeySymbolMap_t gKeyMap[]
static Int_t RootX11IOErrorHandler(Display *)
Handle X11 I/O error (happens when connection to display server is broken).
const ULong_t kMWMHintsInputMode
const ULong_t kMWMHintsDecorations
const Int_t kPropMWMHintElements
const ULong_t kMWMHintsFunctions
void AsmLong(Long_t i1, Long_t i2, Long_t &ll)
static Int_t RootX11ErrorHandler(Display *disp, XErrorEvent *err)
Handle X11 error.
void SplitLong(Long_t ll, Long_t &i1, Long_t &i2)
Handle_t Region_t
Region handle.
const Mask_t kWABorderPixel
const Mask_t kWAOverrideRedirect
const Mask_t kWABitGravity
const Mask_t kGCDashOffset
const Mask_t kGCBackground
const Mask_t kGCForeground
const Mask_t kPAReturnPixels
const Mask_t kGCLineStyle
const Mask_t kWADontPropagate
const Mask_t kKeyMod5Mask
const Mask_t kGCSubwindowMode
const Mask_t kGCLineWidth
Handle_t Pixmap_t
Pixmap handle.
const Mask_t kKeyMod4Mask
const Mask_t kButtonMotionMask
const Mask_t kKeyMod3Mask
const Mask_t kGCClipXOrigin
const Mask_t kWABackingStore
const Mask_t kFocusChangeMask
const Mask_t kKeyLockMask
const Mask_t kButtonPressMask
const Mask_t kPACloseness
Handle_t FontH_t
Font handle (as opposed to Font_t which is an index)
const Mask_t kKeyMod1Mask
typically the Alt key
Handle_t Visual_t
Visual handle.
const Mask_t kExposureMask
const Mask_t kWAEventMask
const Mask_t kGCFillStyle
Handle_t Window_t
Window handle.
const Mask_t kGCJoinStyle
const Mask_t kKeyReleaseMask
const Mask_t kWASaveUnder
const Mask_t kWABackPixel
Handle_t Display_t
Display handle.
const Mask_t kWAWinGravity
const Mask_t kOwnerGrabButtonMask
const Mask_t kAnyModifier
const Mask_t kKeyPressMask
ULong_t Time_t
Event time.
Handle_t GContext_t
Graphics context handle.
EInitialState
Initial window mapping state.
const Mask_t kButton1Mask
const Mask_t kGCTileStipXOrigin
Handle_t Drawable_t
Drawable handle.
const Mask_t kWABackingPixel
const Mask_t kColormapChangeMask
const Mask_t kPointerMotionMask
const Mask_t kKeyShiftMask
Handle_t Cursor_t
Cursor handle.
const Mask_t kKeyControlMask
const Mask_t kKeyMod2Mask
typically mod on numeric keys
const Mask_t kButton3Mask
const Mask_t kLeaveWindowMask
const Mask_t kStructureNotifyMask
const Mask_t kButton2Mask
const Handle_t kParentRelative
const Mask_t kGCPlaneMask
const Mask_t kButtonReleaseMask
const Mask_t kGCGraphicsExposures
const Mask_t kGCClipYOrigin
const Mask_t kWABorderPixmap
const Mask_t kPASize
width and height
const Mask_t kEnterWindowMask
const Mask_t kPAHotspot
x and y hotspot
const Mask_t kGCTileStipYOrigin
EMouseButton
Button names.
Handle_t Colormap_t
Colormap handle.
const Mask_t kWABackPixmap
const Mask_t kWABorderWidth
ULongptr_t Handle_t
Generic resource handle.
Handle_t FontStruct_t
Pointer to font structure.
const Mask_t kWABackingPlanes
constexpr UInt_t kMaxUInt
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
R__EXTERN void Throw(int code)
If an exception context has been set (using the TRY and RETRY macros) jump back to where it was set.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t stamp
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg InternAtom
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t GetWindowSize
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t regb
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t mask
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t pict_mask
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t dest
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t dest_x
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t cursor
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hmin
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void cmap
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t atom
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t act_type
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t pict
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t del
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t GetWindowAttributes
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hmax
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void pixel
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t wmin
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void clipboard
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t target
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t act_format
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t np
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t rect
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t recs
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h prop
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h length
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t child
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char cname
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void curid
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void foreground
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char bitmap
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t nitems
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char forecolor
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h req_type
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void funcs
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src_y
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t win
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t dest_y
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t winc
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t attr
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t modifier
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t org
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char backcolor
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t format
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t npnt
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t nchar
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char fontname
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src_x
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t Atom_t typelist
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void main_id
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t grab
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void when
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t bytes
Option_t Option_t TPoint TPoint percent
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t evmask
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize fs
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t gval
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t rega
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void reg
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t wmax
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t property
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void pxm
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hinc
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t confine
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t button
Option_t Option_t TPoint TPoint const char text
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char atom_name
Option_t Option_t TPoint TPoint const char y1
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
R__EXTERN TFileHandler * gXDisplay
R__EXTERN Atom_t gMOTIF_WM_HINTS
R__EXTERN Atom_t gWM_DELETE_WINDOW
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
void * fDisplay
Pointer to display.
Region_t PolygonRegion(Point_t *points, Int_t np, Bool_t winding) override
Create region for the polygon defined by the points array.
void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h) override
Draw a filled rectangle. Filling is done according to the gc.
void SetPrimarySelectionOwner(Window_t id) override
Makes the window id the current owner of the primary selection.
Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap, UInt_t width, UInt_t height) override
Create a bitmap (i.e. pixmap with depth 1) from the bitmap data.
Colormap fColormap
Default colormap, 0 if b/w.
void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input) override
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
void GetRegionBox(Region_t reg, Rectangle_t *) override
Return smallest enclosing rectangle.
void FreeFontStruct(FontStruct_t fs) override
Free font structure returned by GetFontStruct().
Int_t GetProperty(Window_t, Atom_t, Long_t, Long_t, Bool_t, Atom_t, Atom_t *, Int_t *, ULong_t *, ULong_t *, unsigned char **) override
Returns the actual type of the property; the actual format of the property; the number of 8-bit,...
void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when) override
XConvertSelection() causes a SelectionRequest event to be sent to the current primary selection owner...
void MapEvent(Event_t &ev, void *xev, Bool_t tox=kTRUE)
Map Event_t structure to XEvent structure.
void ChangeGC(GContext_t gc, GCValues_t *gval) override
Change entries in an existing graphics context, gc, by values from gval.
void ResizeWindow(Int_t wid) override
Resize the current window if necessary.
Bool_t SetSelectionOwner(Window_t, Atom_t &) override
Changes the owner and last-change time for the specified selection.
Pixmap_t CreatePixmap(Drawable_t id, UInt_t w, UInt_t h) override
Creates a pixmap of the width and height you specified and returns a pixmap ID that identifies it.
void IconifyWindow(Window_t id) override
Iconify the window.
void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm) override
Set pixmap as window background.
FontStruct_t LoadQueryFont(const char *font_name) override
Load font and query font.
void SetWMPosition(Window_t id, Int_t x, Int_t y) override
Tell the window manager the desired window position.
void SetCursor(Int_t win, ECursor cursor) override
Set the cursor.
Int_t fScreenNumber
Screen number.
Window_t GetParent(Window_t id) const override
Return the parent of the window.
void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h) override
Return geometry of window (should be called GetGeometry but signature already used).
void ChangeActivePointerGrab(Window_t, UInt_t, Cursor_t) override
Changes the specified dynamic parameters if the pointer is actively grabbed by the client.
void SetInputFocus(Window_t id) override
Set keyboard input focus to window id.
void SetWMState(Window_t id, EInitialState state) override
Set the initial state of the window. Either kNormalState or kIconicState.
Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data) override
Read picture data from file and store in ret_data.
Cursor fCursors[kNumCursors]
List of cursors.
void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE) override
Establish passive grab on a certain key.
Bool_t AllocColor(Colormap cmap, RXColor *color)
Allocate color in colormap.
void GetWindowAttributes(Window_t id, WindowAttributes_t &attr) override
Get window attributes and return filled in attributes structure.
void MapSubwindows(Window_t id) override
Map sub windows.
void SetDNDAware(Window_t, Atom_t *) override
Add XdndAware property and the list of drag and drop types to the Window win.
Bool_t IsDNDAware(Window_t win, Atom_t *typelist) override
Checks if Window win is DND aware, and knows any of the DND formats passed in argument.
void SetIconPixmap(Window_t id, Pixmap_t pic) override
Set pixmap the WM can use when the window is iconized.
void MapEventMask(UInt_t &emask, UInt_t &xemask, Bool_t tox=kTRUE)
Map event mask to or from X.
void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n) override
Set clipping rectangles in graphics context.
void LowerWindow(Window_t id) override
Lower window so it lays below all its siblings.
void DeleteImage(Drawable_t img) override
Destroy XImage img.
Int_t KeysymToKeycode(UInt_t keysym) override
Convert a keysym to the appropriate keycode.
Int_t GetScreen() const override
Returns screen number (might be useful in some cases where direct X11 manipulation outside of TVirtua...
Int_t GetDepth() const override
Returns depth of screen (number of bit planes).
void GetPasteBuffer(Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del) override
Get contents of paste buffer atom into string.
void SelectInput(Window_t id, UInt_t evmask) override
Defines which input events the window is interested in.
void MapWindow(Window_t id) override
Map window on screen.
void IntersectRegion(Region_t rega, Region_t regb, Region_t result) override
Compute the intersection of rega and regb and return result region.
Bool_t CreatePictureFromFile(Drawable_t id, const char *filename, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr) override
Create a picture pixmap from data on file.
Visual_t GetVisual() const override
Returns handle to visual (might be useful in some cases where direct X11 manipulation outside of TVir...
Bool_t PointInRegion(Int_t x, Int_t y, Region_t reg) override
Returns true if the point x,y is in the region.
void MapKeySym(UInt_t &keysym, UInt_t &xkeysym, Bool_t tox=kTRUE)
Map to and from X key symbols.
void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel) override
Set pixel at specified location in XImage img.
GContext_t CreateGC(Drawable_t id, GCValues_t *gval) override
Create a graphics context using the values set in gval (but only for those entries that are in the ma...
Window_t GetDefaultRootWindow() const override
Return handle to the default root window created when calling XOpenDisplay().
Bool_t fHasXft
True when XftFonts are used.
void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h) override
Move and resize a window.
Colormap_t GetColormap() const override
Returns handle to colormap (might be useful in some cases where direct X11 manipulation outside of TV...
void UnmapWindow(Window_t id) override
Unmap window from screen.
void CopyGC(GContext_t org, GContext_t dest, Mask_t mask) override
Copies graphics context from org to dest.
Display_t GetDisplay() const override
Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVi...
void MoveWindow(Int_t wid, Int_t x, Int_t y) override
Move the window wid.
char ** ListFonts(const char *fontname, Int_t max, Int_t &count) override
Return list of font names matching fontname regexp, like "-*-times-*".
UInt_t ScreenWidthMM() const override
Returns the width of the screen in millimeters.
void MapGCValues(GCValues_t &gval, ULong_t &xmask, RXGCValues &xgval, Bool_t tox=kTRUE)
Map a GCValues_t to a XCGValues structure if tox is true.
void DestroySubwindows(Window_t id) override
Destroy subwindows of this window.
Drawable fRootWin
Root window used as parent of all windows.
void SetWMTransientHint(Window_t id, Window_t main_id) override
Tell window manager that window is a transient window of main.
Window_t GetPrimarySelectionOwner() override
Returns the window id of the current owner of the primary selection.
void GrabPointer(Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE, Bool_t owner_events=kTRUE) override
Establish an active pointer grab.
void ClearWindow() override
Clear current window.
void * fXEvent
Current native (X11) event.
void SetWindowName(Window_t id, char *name) override
Set window name.
void RaiseWindow(Window_t id) override
Put window on top of window stack.
void GrabButton(Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE) override
Establish passive grab on a certain mouse button.
void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n) override
Specify a dash pattern.
void FreeFontNames(char **fontlist) override
Free list of font names.
void Bell(Int_t percent) override
Sound bell. Percent is loudness from -100% .. 100%.
void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc) override
Give the window manager minimum and maximum size hints.
Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev) override
Check if there is for window "id" an event of type "type".
Drawable fVisRootWin
Root window with fVisual to be used to create GC's and XImages.
void FreeColor(Colormap_t cmap, ULong_t pixel) override
Free color cell with specified pixel value.
Int_t fRedDiv
Red value divider, -1 if no TrueColor visual.
Int_t fDepth
Number of color planes.
void MapRaised(Window_t id) override
Map window on screen and put on top of all windows.
Bool_t Init(void *display) override
Initialize X11 system. Returns kFALSE in case of failure.
void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height) override
Get size of XImage img.
void ConvertSelection(Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &) override
Requests that the specified selection be converted to the specified target type.
void ChangeProperties(Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len) override
This function alters the property for the specified window and causes the X server to generate a Prop...
void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist) override
Add the list of drag and drop types to the Window win.
void CloseDisplay() override
Close connection to display server.
void XorRegion(Region_t rega, Region_t regb, Region_t result) override
Calculate the difference between the union and intersection of two regions.
void DeleteGC(GContext_t gc) override
Explicitly delete a graphics context.
void TranslateCoordinates(Window_t src, Window_t dest, Int_t src_x, Int_t src_y, Int_t &dest_x, Int_t &dest_y, Window_t &child) override
TranslateCoordinates translates coordinates from the frame of reference of one window to another.
void SetWindowBackground(Window_t id, ULong_t color) override
Set the window background color.
Bool_t EmptyRegion(Region_t reg) override
Return true if the region is empty.
void QueryColor(Colormap_t cmap, ColorStruct_t &color) override
Fill in the primary color components for a specific pixel value.
void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg) override
Draws multiple line segments. Each line is specified by a pair of points.
void GetGCValues(GContext_t gc, GCValues_t &gval) override
Get current values from graphics context gc.
Cursor_t CreateCursor(ECursor cursor) override
Create cursor handle (just return cursor from cursor pool fCursors).
ULong_t fBlackPixel
Value of black pixel in colormap.
Window_t FindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd) override
Recursively search in the children of Window for a Window which is at location x, y and is DND aware,...
FontStruct_t GetFontStruct(FontH_t fh) override
Retrieve associated font structure once we have the font handle.
void DeleteFont(FontStruct_t fs) override
Explicitly delete font structure obtained with LoadQueryFont().
void QueryPointer(Int_t &ix, Int_t &iy) override
Query pointer position.
void DestroyWindow(Window_t id) override
Destroy window.
Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist) override
Return atom handle for atom_name.
Drawable_t CreateImage(UInt_t width, UInt_t height) override
Create a client-side XImage. Returns handle to XImage.
void UnionRectWithRegion(Rectangle_t *rect, Region_t src, Region_t dest) override
Union of rectangle with a region.
Int_t TextWidth(FontStruct_t font, const char *s, Int_t len) override
Return length of string in pixels. Size depends on font.
void DestroyRegion(Region_t reg) override
Destroy region.
void DeletePictureData(void *data) override
Delete picture data created by the function ReadPictureDataFromFile.
void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym) override
Convert the keycode from the event structure to a key symbol (according to the modifiers specified in...
void NextEvent(Event_t &event) override
Copies first pending event from event queue to Event_t structure and removes event from queue.
void DeletePixmap(Pixmap_t pmap) override
Explicitly delete pixmap resource.
FontH_t GetFontHandle(FontStruct_t fs) override
Return handle to font described by font structure.
void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h) override
Clear a window area to the background color.
void MapPictureAttributes(PictureAttributes_t &attr, RXpmAttributes &xpmattr, Bool_t toxpm=kTRUE)
Map a PictureAttributes_t to a XpmAttributes structure.
Int_t OpenDisplay(void *display)
Open the display. Return -1 if the opening fails, 0 when ok.
void SetIconName(Window_t id, char *name) override
Set window icon name.
void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len) override
Draw a string using a specific graphics context in position (x,y).
void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y) override
Reparent window to new parent window at position (x,y).
Bool_t CreatePictureFromData(Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr) override
Create a picture pixmap from data.
void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask) override
The Nonrectangular Window Shape Extension adds nonrectangular windows to the System.
Window_t GetInputFocus() override
Returns the window id of the window having the input focus.
void WMDeleteNotify(Window_t id) override
Tell WM to send message when window is closed via WM.
Int_t EventsPending() override
Returns number of pending events.
void SetClassHints(Window_t id, char *className, char *resourceName) override
Set the windows class and resource name.
void SendEvent(Window_t id, Event_t *ev) override
Send event ev to window id.
void SetWMSize(Window_t id, UInt_t w, UInt_t h) override
Tell the window manager the desired window size.
Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color) override
Parse string cname containing color name, like "green" or "#00FF00".
Bool_t EqualRegion(Region_t rega, Region_t regb) override
Returns true if two regions are equal.
RVisual * fVisual
Pointer to visual used by all windows.
Region_t CreateRegion() override
Create a new empty region.
void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2) override
Draw a line.
void ChangeProperty(Window_t id, Atom_t property, Atom_t type, UChar_t *data, Int_t len) override
This function alters the property for the specified window and causes the X server to generate a Prop...
Window_t CreateWindow(Window_t parent, Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void *visual, SetWindowAttributes_t *attr, UInt_t wtype) override
Return handle to newly created X window.
void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h) override
Draw a rectangle outline.
void SetForeground(GContext_t gc, ULong_t foreground) override
Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set).
void SetKeyAutoRepeat(Bool_t on=kTRUE) override
Turn key auto repeat on or off.
void DeleteProperty(Window_t, Atom_t &) override
Deletes the specified property only if the property was defined on the specified window and causes th...
void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t *attr) override
Change window attributes.
void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt) override
FillPolygon fills the region closed by the specified path.
void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent) override
Return some font properties.
void MapSetWindowAttributes(SetWindowAttributes_t *attr, ULong_t &xmask, RXSetWindowAttributes &xattr)
Map a SetWindowAttributes_t to a XSetWindowAttributes structure.
void CopyArea(Drawable_t src, Drawable_t dest, GContext_t gc, Int_t src_x, Int_t src_y, UInt_t width, UInt_t height, Int_t dest_x, Int_t dest_y) override
Copy a drawable (i.e.
void PutImage(Int_t offset, Int_t itran, Int_t x0, Int_t y0, Int_t nx, Int_t ny, Int_t xmin, Int_t ymin, Int_t xmax, Int_t ymax, UChar_t *image, Drawable_t id)
Draw image.
void MapModifierState(UInt_t &state, UInt_t &xstate, Bool_t tox=kTRUE)
Map modifier key state to or from X.
void SubtractRegion(Region_t rega, Region_t regb, Region_t result) override
Subtract rega from regb.
Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char *file, Window_t id=0) override
If id is NULL - loads the specified gif file at position [x0,y0] in the current window.
void MapColorStruct(ColorStruct_t *color, RXColor &xcolor)
Map a ColorStruct_t to a XColor structure.
void UnionRegion(Region_t rega, Region_t regb, Region_t result) override
Compute the union of rega and regb and return result region.
void Update(Int_t mode=0) override
Flush (mode = 0, default) or synchronize (mode = 1) X output buffer.
Mother of all ROOT objects.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
static Bool_t Initialized()
Return kTRUE if the TROOT object has been initialized.
virtual TFileHandler * RemoveFileHandler(TFileHandler *fh)
Remove a file handler from the list of file handlers.
virtual void MapGCFont(GContext_t, FontStruct_t)
Map the XftFont with the Graphics Context using it.
void XShapeCombineMask(Display *, Window, int, int, int, Pixmap, int)
ULong_t fPixel
color pixel value (index in color table)
UShort_t fRed
red component (0..65535)
UShort_t fGreen
green component (0..65535)
UShort_t fBlue
blue component (0..65535)
UShort_t fMask
mask telling which color components are valid
EGEventType fType
of event (see EGEventType)
Int_t fY
pointer x, y coordinates in event window
Bool_t fSendEvent
true if event came from SendEvent
Handle_t fHandle
general resource handle (used for atoms or windows)
Int_t fFormat
Next fields only used by kClientMessageEvent.
UInt_t fHeight
width and height of exposed area
Int_t fCount
if non-zero, at least this many more exposes
Window_t fWindow
window reported event is relative to
UInt_t fState
key or button mask
Int_t fYRoot
coordinates relative to root
Time_t fTime
time event event occurred in ms
UInt_t fCode
key or button code
Longptr_t fUser[5]
5 longs can be used by client message events NOTE: only [0], [1] and [2] may be used.
Graphics context structure.
Point structure (maps to the X11 XPoint structure)
Rectangle structure (maps to the X11 XRectangle structure)
Used for drawing line segments (maps to the X11 XSegments structure)
Attributes that can be used when creating or changing a window.
Window attributes that can be inquired.
Int_t fMapState
kIsUnmapped, kIsUnviewable, kIsViewable
Int_t fHeight
width and height of window
Int_t fY
location of window