15 #ifndef ROOT_TVirtualX
19 #if !defined(__CINT__)
23 typedef Status X11Status_t;
25 typedef X11Status_t Status;
30 static const unsigned long gX11None =
None;
32 static const unsigned long None = gX11None;
37 typedef unsigned long XID;
47 struct RXpmAttributes;
48 struct RXSetWindowAttributes;
116 ULong_t &xmask, RXSetWindowAttributes &xattr);
337 const char *s,
Int_t len);
void GetPasteBuffer(Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del)
Get contents of paste buffer atom into string.
void GetGCValues(GContext_t gc, GCValues_t &gval)
Get current values from graphics context gc.
Handle_t GetNativeEvent() const
Returns the current native event handle.
void ImgPickPalette(RXImage *image, Int_t &ncol, Int_t *&R, Int_t *&G, Int_t *&B)
Returns in R G B the ncol colors of the palette used by the image.
void * fDisplay
Pointer to display.
void MapRaised(Window_t id)
Map window on screen and put on top of all windows.
void MapEvent(Event_t &ev, void *xev, Bool_t tox=kTRUE)
Map Event_t structure to XEvent structure.
void SetWMPosition(Window_t id, Int_t x, Int_t y)
Tell the window manager the desired window position.
void SendEvent(Window_t id, Event_t *ev)
Send event ev to window id.
Int_t GetScreen() const
Returns screen number (might be useful in some cases where direct X11 manipulation outside of TVirtua...
Int_t fBlueDiv
Blue value divider.
Int_t GetDepth() const
Returns depth of screen (number of bit planes).
Int_t fMaxNumberOfWindows
Maximum number of windows.
Semi-Abstract base class defining a generic interface to the underlying, low level, native graphics backend (X11, Win32, MacOS, OpenGL...).
void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
Specify a dash pattern.
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)
Return handle to newly created X window.
void RemovePixmap(Drawable *pix)
Remove the pixmap pix.
void SetMarkerColor(Color_t cindex)
Set color index for markers.
void ChangeProperty(Window_t id, Atom_t property, Atom_t type, UChar_t *data, Int_t len)
This function alters the property for the specified window and causes the X server to generate a Prop...
void DeleteFont(FontStruct_t fs)
Explicitly delete font structure obtained with LoadQueryFont().
void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
Establish passive grab on a certain key.
void ClearPixmap(Drawable *pix)
Clear the pixmap pix.
void SetLineStyle(Style_t linestyle)
Set line style.
void MapColorStruct(ColorStruct_t *color, RXColor &xcolor)
Map a ColorStruct_t to a XColor structure.
void DeletePictureData(void *data)
Delete picture data created by the function ReadPictureDataFromFile.
Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data)
Read picture data from file and store in ret_data.
void SetTextMagnitude(Float_t mgn=1)
Sets the current text magnification factor to "mgn".
void GetPlanes(Int_t &nplanes)
Get maximum number of planes.
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.
Colormap_t GetColormap() const
Returns handle to colormap (might be useful in some cases where direct X11 manipulation outside of TV...
FontStruct_t GetFontStruct(FontH_t fh)
Retrieve associated font structure once we have the font handle.
void SetDNDAware(Window_t, Atom_t *)
Add XdndAware property and the list of drag and drop types to the Window win.
char ** ListFonts(const char *fontname, Int_t max, Int_t &count)
Return list of font names matching fontname regexp, like "-*-times-*".
Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height)
create pixmap from RGB data.
void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Draw a line.
void SetWindowBackground(Window_t id, ULong_t color)
Set the window background color.
Float_t fCharacterUpX
Character Up vector along X.
void SetColor(void *gc, Int_t ci)
Set the foreground color in GC.
Bool_t Init(void *display)
Initialize X11 system. Returns kFALSE in case of failure.
Bool_t fHasXft
True when XftFonts are used.
UShort_t fGreen
green value
void Update(Int_t mode=0)
Flush (mode = 0, default) or synchronize (mode = 1) X output buffer.
Int_t fScreenNumber
Screen number.
void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos)
Copy the pixmap wid at the position xpos, ypos in the current window.
void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Return geometry of window (should be called GetGeometry but signature already used).
void DrawPolyMarker(Int_t n, TPoint *xy)
Draw n markers with the current attributes at position x, y.
void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname)
Write the pixmap wid in the bitmap file pxname.
void SetLineWidth(Width_t width)
Set line width.
Description of a X11 color.
Int_t RequestString(Int_t x, Int_t y, char *text)
Request a string.
void CloseWindow()
Delete current window.
void GrabPointer(Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE, Bool_t owner_events=kTRUE)
Establish an active pointer grab.
virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess)
Return the size of a character string.
void UnionRectWithRegion(Rectangle_t *rect, Region_t src, Region_t dest)
Union of rectangle with a region.
void SetDrawMode(EDrawMode mode)
Set the drawing mode.
static const char * filename()
void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic)
Draw a cell array.
Window_t GetPrimarySelectionOwner()
Returns the window id of the current owner of the primary selection.
void SetClassHints(Window_t id, char *className, char *resourceName)
Set the windows class and resource name.
void ChangeGC(GContext_t gc, GCValues_t *gval)
Change entries in an existing graphics context, gc, by values from gval.
Bool_t PointInRegion(Int_t x, Int_t y, Region_t reg)
Returns true if the point x,y is in the region.
Int_t EventsPending()
Returns number of pending events.
Region_t PolygonRegion(Point_t *points, Int_t np, Bool_t winding)
Create region for the polygon defined by the points array.
void RaiseWindow(Window_t id)
Put window on top of window stack.
Window_t GetDefaultRootWindow() const
Return handle to the default root window created when calling XOpenDisplay().
Cursor fCursors[kNumCursors]
List of cursors.
void DrawPolyLine(Int_t n, TPoint *xy)
Draw a line through all points.
void CollectImageColors(ULong_t pixel, ULong_t *&orgcolors, Int_t &ncolors, Int_t &maxcolors)
Collect in orgcolors all different original image colors.
void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
Set clipping rectangles in graphics context.
Float_t fCharacterUpY
Character Up vector along Y.
void SelectWindow(Int_t wid)
Select window to which subsequent output is directed.
void QueryColor(Colormap_t cmap, ColorStruct_t &color)
Fill in the primary color components for a specific pixel value.
static std::string format(double x, double y, int digits, int width)
Int_t WriteGIF(char *name)
Writes the current window into GIF file.
void MapSubwindows(Window_t id)
Map sub windows.
Int_t fTextAlign
Text alignment (set in SetTextAlign)
void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y)
Reparent window to new parent window at position (x,y).
void SetCursor(Int_t win, ECursor cursor)
Set the cursor.
Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h)
Resize a pixmap.
Bool_t EqualRegion(Region_t rega, Region_t regb)
Returns true if two regions are equal.
void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
Draw a box.
void SetWindowName(Window_t id, char *name)
Set window name.
Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist)
Return atom handle for atom_name.
void DeleteImage(Drawable_t img)
Destroy XImage img.
void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Return position and size of window wid.
Int_t fGreenDiv
Green value divider.
virtual Int_t SetTextFont(char *fontname, ETextSetMode mode)
Set text font to specified name.
void DrawFillArea(Int_t n, TPoint *xy)
Fill area described by polygon.
void SetMarkerStyle(Style_t markerstyle)
Set marker style.
void GetRegionBox(Region_t reg, Rectangle_t *)
Return smallest enclosing rectangle.
Int_t OpenDisplay(void *display)
Open the display. Return -1 if the opening fails, 0 when ok.
void * GetGC(Int_t which) const
Return desired Graphics Context ("which" maps directly on gGCList[]).
void CloseWindow1()
Delete current window.
void UnionRegion(Region_t rega, Region_t regb, Region_t result)
Compute the union of rega and regb and return result region.
static const double x2[5]
void SetFillStyleIndex(Int_t style, Int_t fasi)
Set fill area style index.
void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt)
FillPolygon fills the region closed by the specified path.
Bool_t SetSelectionOwner(Window_t, Atom_t &)
Changes the owner and last-change time for the specified selection.
void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b)
Get rgb values for color "index".
Window_t GetCurrentWindow() const
Return current window pointer. Protected method used by TGX11TTF.
void DestroySubwindows(Window_t id)
Destroy subwindows of this window.
Drawable fVisRootWin
Root window with fVisual to be used to create GC's and XImages.
void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
Set pixmap as window background.
TExMap * fColors
Hash list of colors.
ULong_t fWhitePixel
Value of white pixel in colormap.
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 **)
Returns the actual type of the property; the actual format of the property; the number of 8-bit...
void ResizeWindow(Int_t wid)
Resize the current window if necessary.
Region_t CreateRegion()
Create a new empty region.
void RemoveWindow(ULong_t qwid)
Remove a window created by Qt (like CloseWindow1()).
void Bell(Int_t percent)
Sound bell. Percent is loudness from -100% .. 100%.
XWindow_t * fWindows
List of windows.
UShort_t fRed
red value in range [0,kBIGGEST_RGB_VALUE]
void DestroyWindow(Window_t id)
Destroy window.
void ClearWindow()
Clear current window.
Visual_t GetVisual() const
Returns handle to visual (might be useful in some cases where direct X11 manipulation outside of TVir...
void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym)
Convert the keycode from the event structure to a key symbol (according to the modifiers specified in...
void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
Set color intensities for given color index.
Colormap fColormap
Default colormap, 0 if b/w.
void SetKeyAutoRepeat(Bool_t on=kTRUE)
Turn key auto repeat on or off.
Bool_t CreatePictureFromFile(Drawable_t id, const char *filename, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
Create a picture pixmap from data on file.
void SetDoubleBufferOFF()
Turn double buffer mode off.
void SetMarkerSize(Float_t markersize)
Set marker size index.
void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a rectangle outline.
Float_t GetTextMagnitude()
Returns the current font magnification factor.
void Sync(Int_t mode)
Set synchronisation on or off.
UInt_t ScreenWidthMM() const
Returns the width of the screen in millimeters.
void SetForeground(GContext_t gc, ULong_t foreground)
Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set)...
void QueryColors(Colormap cmap, RXColor *colors, Int_t ncolors)
Returns the current RGB value for the pixel in the XColor structure.
ULong_t GetPixel(Color_t cindex)
Return pixel value associated to specified ROOT color number.
void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel)
Set pixel at specified location in XImage img.
void IconifyWindow(Window_t id)
Iconify the window.
void WMDeleteNotify(Window_t id)
Tell WM to send message when window is closed via WM.
void CopyGC(GContext_t org, GContext_t dest, Mask_t mask)
Copies graphics context from org to dest.
void SetTextColor(Color_t cindex)
Set color index for text.
void SubtractRegion(Region_t rega, Region_t regb, Region_t result)
Subtract rega from regb.
Int_t fDepth
Number of color planes.
void SetTextAlign(Short_t talign=11)
Set text alignment.
Int_t GetDoubleBuffer(Int_t wid)
Query the double buffer value for the window wid.
void Warp(Int_t ix, Int_t iy, Window_t id=0)
Set pointer position.
void UpdateWindow(Int_t mode)
Update display.
void ConvertSelection(Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &)
Requests that the specified selection be converted to the specified target type.
void * fXEvent
Current native (X11) event.
void SelectInput(Window_t id, UInt_t evmask)
Defines which input events the window is interested in.
Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h)
Register pixmap created by gVirtualGL.
void QueryPointer(Int_t &ix, Int_t &iy)
Query pointer position.
void GetWindowAttributes(Window_t id, WindowAttributes_t &attr)
Get window attributes and return filled in attributes structure.
void SetWMSize(Window_t id, UInt_t w, UInt_t h)
Tell the window manager the desired window size.
XColor_t & GetColor(Int_t cid)
Return reference to internal color structure associated to color index cid.
Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
Int_t fTextAlignH
Text Alignment Horizontal.
void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist)
Add the list of drag and drop types to the Window win.
Pixmap_t CreatePixmap(Drawable_t id, UInt_t w, UInt_t h)
Creates a pixmap of the width and height you specified and returns a pixmap ID that identifies it...
void SetDoubleBufferON()
Turn double buffer mode on.
void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
Return some font properties.
virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
Draw a text string using current font.
void ChangeActivePointerGrab(Window_t, UInt_t, Cursor_t)
Changes the specified dynamic parameters if the pointer is actively grabbed by the client...
Int_t OpenPixmap(UInt_t w, UInt_t h)
Open a new pixmap.
void UnmapWindow(Window_t id)
Unmap window from screen.
Window_t GetWindowID(Int_t wid)
Return the X11 window identifier.
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
ULong_t fPixel
color pixel value
FontH_t GetFontHandle(FontStruct_t fs)
Return handle to font described by font structure.
Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
Drawable_t CreateImage(UInt_t width, UInt_t height)
Create a client-side XImage. Returns handle to XImage.
Int_t InitWindow(ULong_t window)
Open window and return window number.
Int_t fTextAlignV
Text Alignment Vertical.
void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len)
Draw a string using a specific graphics context in position (x,y).
FontStruct_t LoadQueryFont(const char *font_name)
Load font and query font.
Display_t GetDisplay() const
Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVi...
void SetDoubleBuffer(Int_t wid, Int_t mode)
Set the double buffer on/off on window wid.
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)
TranslateCoordinates translates coordinates from the frame of reference of one window to another...
unsigned char * GetColorBits(Drawable_t wid, Int_t x=0, Int_t y=0, UInt_t w=0, UInt_t h=0)
Returns an array of pixels created from a part of drawable (defined by x, y, w, h) in format: `b1...
void DeleteProperty(Window_t, Atom_t &)
Deletes the specified property only if the property was defined on the specified window and causes th...
Int_t FindColor(ULong_t pixel, ULong_t *orgcolors, Int_t ncolors)
Returns index in orgcolors (and fNewColors) for pixel.
void DeletePixmap(Pixmap_t pmap)
Explicitly delete pixmap resource.
Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char *file, Window_t id=0)
If id is NULL - loads the specified gif file at position [x0,y0] in the current window.
void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg)
Draws multiple line segments. Each line is specified by a pair of points.
Int_t fGreenShift
Bits to left shift green.
void SetFillStyle(Style_t style)
Set fill area style.
Bool_t fHasTTFonts
True when TrueType fonts are used.
void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask)
The Nonrectangular Window Shape Extension adds nonrectangular windows to the System.
void MoveWindow(Int_t wid, Int_t x, Int_t y)
Move the window wid.
void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
void NextEvent(Event_t &event)
Copies first pending event from event queue to Event_t structure and removes event from queue...
const char * DisplayName(const char *dpyName=0)
Return hostname on which the display is opened.
GContext_t CreateGC(Drawable_t id, GCValues_t *gval)
Create a graphics context using the values set in gval (but only for those entries that are in the ma...
void FreeFontStruct(FontStruct_t fs)
Free font structure returned by GetFontStruct().
void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
Clear a window area to the background color.
void DestroyRegion(Region_t reg)
Destroy region.
void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
Set clipping region for the window wid.
Window_t FindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd)
Recursively search in the children of Window for a Window which is at location x, y and is DND aware...
void MakeOpaqueColors(Int_t percent, ULong_t *orgcolors, Int_t ncolors)
Get RGB values for orgcolors, add percent neutral to the RGB and allocate fNewColors.
void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
Move and resize a window.
This class is the basic interface to the X11 (Xlib) graphics system.
Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap, UInt_t width, UInt_t height)
Create a bitmap (i.e. pixmap with depth 1) from the bitmap data.
virtual void DrawText(Int_t, Int_t, Float_t, Float_t, const wchar_t *, ETextMode)
Draws a text string using current font.
void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t *attr)
Change window attributes.
void FindBestVisual()
Find best visual, i.e.
void GetCharacterUp(Float_t &chupx, Float_t &chupy)
Return character up vector.
virtual void SetTextSize(Float_t textsize)
Set current text size.
void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
Rescale the window wid.
static const double x1[5]
void MapPictureAttributes(PictureAttributes_t &attr, RXpmAttributes &xpmattr, Bool_t toxpm=kTRUE)
Map a PictureAttributes_t to a XpmAttributes structure.
void MapSetWindowAttributes(SetWindowAttributes_t *attr, ULong_t &xmask, RXSetWindowAttributes &xattr)
Map a SetWindowAttributes_t to a XSetWindowAttributes structure.
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 FreeColor(Colormap_t cmap, ULong_t pixel)
Free color cell with specified pixel value.
void FreeFontNames(char **fontlist)
Free list of font names.
void GrabButton(Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE)
Establish passive grab on a certain mouse button.
Bool_t EmptyRegion(Region_t reg)
Return true if the region is empty.
void LowerWindow(Window_t id)
Lower window so it lays below all its siblings.
void ClosePixmap()
Delete current pixmap.
Bool_t AllocColor(Colormap cmap, RXColor *color)
Allocate color in colormap.
void SetLineColor(Color_t cindex)
Set color index for lines.
void SetIconPixmap(Window_t id, Pixmap_t pic)
Set pixmap the WM can use when the window is iconized.
void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
void FindUsableVisual(RXVisualInfo *vlist, Int_t nitems)
Check if visual is usable, if so set fVisual, fDepth, fColormap, fBlackPixel and fWhitePixel.
Int_t fBlueShift
Bits to left shift blue.
Bool_t CreatePictureFromData(Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
Create a picture pixmap from data.
void SetLineType(Int_t n, Int_t *dash)
Set line type.
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
void DeleteGC(GContext_t gc)
Explicitly delete a graphics context.
#define org(otri, vertexptr)
void XorRegion(Region_t rega, Region_t regb, Region_t result)
Calculate the difference between the union and intersection of two regions.
void MapKeySym(UInt_t &keysym, UInt_t &xkeysym, Bool_t tox=kTRUE)
Map to and from X key symbols.
Float_t fTextMagnitude
Text Magnitude.
void SetInputFocus(Window_t id)
Set keyboard input focus to window id.
virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *)
Returns the size of the specified character string "mess".
Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
Request Locator position.
void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height)
Get size of XImage img.
virtual ~TGX11()
Destructor.
void IntersectRegion(Region_t rega, Region_t regb, Region_t result)
Compute the intersection of rega and regb and return result region.
void SetPrimarySelectionOwner(Window_t id)
Makes the window id the current owner of the primary selection.
void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when)
XConvertSelection() causes a SelectionRequest event to be sent to the current primary selection owner...
#define dest(otri, vertexptr)
RVisual * fVisual
Pointer to visual used by all windows.
void MapWindow(Window_t id)
Map window on screen.
Bool_t IsDNDAware(Window_t win, Atom_t *typelist)
Checks if Window win is DND aware, and knows any of the DND formats passed in argument.
void SetOpacity(Int_t percent)
Set opacity of a window.
void SetWMState(Window_t id, EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.
void SetMarkerType(Int_t type, Int_t n, RXPoint *xy)
Set marker type.
Window_t GetInputFocus()
Returns the window id of the window having the input focus.
void SetWMTransientHint(Window_t id, Window_t main_id)
Tell window manager that window is a transient window of main.
void SetFillColor(Color_t cindex)
Set color index for fill areas.
Bool_t fDefined
true if pixel value is defined
Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color)
Parse string cname containing color name, like "green" or "#00FF00".
Drawable fRootWin
Root window used as parent of all windows.
void CopyWindowtoPixmap(Drawable *pix, Int_t xpos, Int_t ypos)
Copy area of current window in the pixmap pix.
Int_t KeysymToKeycode(UInt_t keysym)
Convert a keysym to the appropriate keycode.
void SetIconName(Window_t id, char *name)
Set window icon name.
void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a filled rectangle. Filling is done according to the gc.
void SetCharacterUp(Float_t chupx, Float_t chupy)
Set character up vector.
Int_t fRedDiv
Red value divider, -1 if no TrueColor visual.
Cursor_t CreateCursor(ECursor cursor)
Create cursor handle (just return cursor from cursor pool fCursors).
void MapCursor(ECursor cursor, Int_t &xcursor)
void SetInput(Int_t inp)
Set input on or off.
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)
Copy a drawable (i.e.
Window_t GetParent(Window_t id) const
Return the parent of the window.
Int_t TextWidth(FontStruct_t font, const char *s, Int_t len)
Return length of string in pixels. Size depends on font.
ULong_t fBlackPixel
Value of black pixel in colormap.
Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h)
Register a window created by Qt as a ROOT window (like InitWindow()).
void SetClipOFF(Int_t wid)
Turn off the clipping for the window wid.
void ChangeProperties(Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len)
This function alters the property for the specified window and causes the X server to generate a Prop...
This class stores a (key,value) pair using an external hash.
void CloseDisplay()
Close connection to display server.
void MapEventMask(UInt_t &emask, UInt_t &xemask, Bool_t tox=kTRUE)
Map event mask to or from X.
Int_t SupportsExtension(const char *ext) const
Returns 1 if window system server supports extension given by the argument, returns 0 in case extensi...
Int_t fRedShift
Bits to left shift red, -1 if no TrueColor visual.
void MapModifierState(UInt_t &state, UInt_t &xstate, Bool_t tox=kTRUE)
Map modifier key state to or from X.
const char Int_t const char * image