Logo ROOT  
Reference Guide
TGX11.h
Go to the documentation of this file.
1 // @(#)root/x11:$Id$
2 // Author: Rene Brun, Olivier Couet, Fons Rademakers 28/11/94
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGX11
13 #define ROOT_TGX11
14 
15 #include "TVirtualX.h"
16 
17 #if !defined(__CINT__)
18 
19 #ifdef Status
20 // Convert Status from a CPP macro to a typedef:
21 typedef Status X11Status_t;
22 #undef Status
23 typedef X11Status_t Status;
24 #endif
25 
26 #ifdef None
27 // Convert None from a CPP macro to a static const int:
28 static const unsigned long gX11None = None;
29 #undef None
30 static const unsigned long None = gX11None;
31 #endif
32 
33 #endif
34 
35 typedef unsigned long XID;
36 typedef XID Drawable;
37 typedef XID Cursor;
38 typedef XID Colormap;
39 typedef XID Window;
40 
41 struct RXGCValues;
42 struct RXColor;
43 struct RXImage;
44 struct RXPoint;
45 struct RXpmAttributes;
46 struct RXSetWindowAttributes;
47 struct RXVisualInfo;
48 struct RVisual;
49 
50 /// Description of a X11 window.
51 struct XWindow_t {
52  Int_t fOpen; ///< 1 if the window is open, 0 if not
53  Int_t fDoubleBuffer; ///< 1 if the double buffer is on, 0 if not
54  Int_t fIsPixmap; ///< 1 if pixmap, 0 if not
55  Drawable fDrawing; ///< drawing area, equal to window or buffer
56  Drawable fWindow; ///< X11 window
57  Drawable fBuffer; ///< pixmap used for double buffer
58  UInt_t fWidth; ///< width of the window
59  UInt_t fHeight; ///< height of the window
60  Int_t fClip; ///< 1 if the clipping is on
61  Int_t fXclip; ///< x coordinate of the clipping rectangle
62  Int_t fYclip; ///< y coordinate of the clipping rectangle
63  UInt_t fWclip; ///< width of the clipping rectangle
64  UInt_t fHclip; ///< height of the clipping rectangle
65  ULong_t *fNewColors; ///< new image colors (after processing)
66  Int_t fNcolors; ///< number of different colors
67  Bool_t fShared; ///< notify when window is shared
68 };
69 
70 /// Description of a X11 color.
71 struct XColor_t {
72  ULong_t fPixel; ///< color pixel value
73  UShort_t fRed; ///< red value in range [0,kBIGGEST_RGB_VALUE]
74  UShort_t fGreen; ///< green value
75  UShort_t fBlue; ///< blue value
76  Bool_t fDefined; ///< true if pixel value is defined
77  XColor_t() { fPixel = 0; fRed = fGreen = fBlue = 0; fDefined = kFALSE; }
78 };
79 
80 class TExMap;
81 
82 
83 class TGX11 : public TVirtualX {
84 
85 private:
86  Int_t fMaxNumberOfWindows; ///< Maximum number of windows
87  XWindow_t *fWindows; ///< List of windows
88  TExMap *fColors; ///< Hash list of colors
89  Cursor fCursors[kNumCursors]; ///< List of cursors
90  void *fXEvent; ///< Current native (X11) event
91 
92  void CloseWindow1();
93  void ClearPixmap(Drawable *pix);
94  void CopyWindowtoPixmap(Drawable *pix, Int_t xpos, Int_t ypos);
95  void FindBestVisual();
96  void FindUsableVisual(RXVisualInfo *vlist, Int_t nitems);
97  void PutImage(Int_t offset, Int_t itran, Int_t x0, Int_t y0, Int_t nx,
99  UChar_t *image, Drawable_t id);
100  void RemovePixmap(Drawable *pix);
101  void SetColor(void *gc, Int_t ci);
102  void SetFillStyleIndex(Int_t style, Int_t fasi);
103  void SetInput(Int_t inp);
104  void SetMarkerType(Int_t type, Int_t n, RXPoint *xy);
105  void CollectImageColors(ULong_t pixel, ULong_t *&orgcolors, Int_t &ncolors,
106  Int_t &maxcolors);
107  void MakeOpaqueColors(Int_t percent, ULong_t *orgcolors, Int_t ncolors);
108  Int_t FindColor(ULong_t pixel, ULong_t *orgcolors, Int_t ncolors);
109  void ImgPickPalette(RXImage *image, Int_t &ncol, Int_t *&R, Int_t *&G, Int_t *&B);
110 
111  //---- Private methods used for GUI ----
112  void MapGCValues(GCValues_t &gval, ULong_t &xmask, RXGCValues &xgval, Bool_t tox = kTRUE);
114  ULong_t &xmask, RXSetWindowAttributes &xattr);
115  void MapCursor(ECursor cursor, Int_t &xcursor);
116  void MapColorStruct(ColorStruct_t *color, RXColor &xcolor);
117  void MapPictureAttributes(PictureAttributes_t &attr, RXpmAttributes &xpmattr,
118  Bool_t toxpm = kTRUE);
119  void MapModifierState(UInt_t &state, UInt_t &xstate, Bool_t tox = kTRUE);
120 
121  // void MapEvent(Event_t &ev, XEvent &xev, Bool_t tox = kTRUE);
122  void MapEvent(Event_t &ev, void *xev, Bool_t tox = kTRUE);
123 
124  void MapEventMask(UInt_t &emask, UInt_t &xemask, Bool_t tox = kTRUE);
125  void MapKeySym(UInt_t &keysym, UInt_t &xkeysym, Bool_t tox = kTRUE);
126 
127 protected:
128  void *fDisplay; ///< Pointer to display
129  RVisual *fVisual; ///< Pointer to visual used by all windows
130  Drawable fRootWin; ///< Root window used as parent of all windows
131  Drawable fVisRootWin; ///< Root window with fVisual to be used to create GC's and XImages
132  Colormap fColormap; ///< Default colormap, 0 if b/w
133  ULong_t fBlackPixel; ///< Value of black pixel in colormap
134  ULong_t fWhitePixel; ///< Value of white pixel in colormap
135  Int_t fScreenNumber; ///< Screen number
136  Int_t fTextAlignH; ///< Text Alignment Horizontal
137  Int_t fTextAlignV; ///< Text Alignment Vertical
138  Int_t fTextAlign; ///< Text alignment (set in SetTextAlign)
139  Float_t fCharacterUpX; ///< Character Up vector along X
140  Float_t fCharacterUpY; ///< Character Up vector along Y
141  Float_t fTextMagnitude; ///< Text Magnitude
142  Int_t fDepth; ///< Number of color planes
143  Int_t fRedDiv; ///< Red value divider, -1 if no TrueColor visual
144  Int_t fGreenDiv; ///< Green value divider
145  Int_t fBlueDiv; ///< Blue value divider
146  Int_t fRedShift; ///< Bits to left shift red, -1 if no TrueColor visual
147  Int_t fGreenShift; ///< Bits to left shift green
148  Int_t fBlueShift; ///< Bits to left shift blue
149  Bool_t fHasTTFonts; ///< True when TrueType fonts are used
150  Bool_t fHasXft; ///< True when XftFonts are used
151 
152  // needed by TGX11TTF
153  Bool_t AllocColor(Colormap cmap, RXColor *color);
154  void QueryColors(Colormap cmap, RXColor *colors, Int_t ncolors);
155  void *GetGC(Int_t which) const;
156  XColor_t &GetColor(Int_t cid);
157 
158 public:
159  TGX11();
160  TGX11(const TGX11 &org);
161  TGX11(const char *name, const char *title);
162  virtual ~TGX11();
163 
164  Bool_t Init(void *display);
165  void ClearWindow();
166  void ClosePixmap();
167  void CloseWindow();
168  void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos);
169  void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode);
170  void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic);
171  void DrawFillArea(Int_t n, TPoint *xy);
172  void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2);
173  void DrawPolyLine(Int_t n, TPoint *xy);
174  void DrawPolyMarker(Int_t n, TPoint *xy);
175  virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode);
176  virtual void DrawText(Int_t, Int_t, Float_t, Float_t, const wchar_t *, ETextMode) {}
177  void GetCharacterUp(Float_t &chupx, Float_t &chupy);
179  void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
180  const char *DisplayName(const char *dpyName = 0);
181  Handle_t GetNativeEvent() const { return (Handle_t) fXEvent; }
182  ULong_t GetPixel(Color_t cindex);
183  void GetPlanes(Int_t &nplanes);
184  void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b);
185  virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess);
186  virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *){}
189  Bool_t HasTTFonts() const { return fHasTTFonts; }
190  Int_t InitWindow(ULong_t window);
191  Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h);
192  Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h);
193  void RemoveWindow(ULong_t qwid);
194  void MoveWindow(Int_t wid, Int_t x, Int_t y);
195  Int_t OpenDisplay(void *display);
197  void QueryPointer(Int_t &ix, Int_t &iy);
198  Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char *file, Window_t id=0);
199  Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y);
200  Int_t RequestString(Int_t x, Int_t y, char *text);
201  void RescaleWindow(Int_t wid, UInt_t w, UInt_t h);
203  void ResizeWindow(Int_t wid);
204  void SelectWindow(Int_t wid);
205  void SetCharacterUp(Float_t chupx, Float_t chupy);
206  void SetClipOFF(Int_t wid);
207  void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h);
208  void SetCursor(Int_t win, ECursor cursor);
209  void SetDoubleBuffer(Int_t wid, Int_t mode);
210  void SetDoubleBufferOFF();
211  void SetDoubleBufferON();
212  void SetDrawMode(EDrawMode mode);
213  void SetFillColor(Color_t cindex);
214  void SetFillStyle(Style_t style);
215  void SetLineColor(Color_t cindex);
216  void SetLineType(Int_t n, Int_t *dash);
217  void SetLineStyle(Style_t linestyle);
218  void SetLineWidth(Width_t width);
219  void SetMarkerColor(Color_t cindex);
220  void SetMarkerSize(Float_t markersize);
221  void SetMarkerStyle(Style_t markerstyle);
222  void SetOpacity(Int_t percent);
223  void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b);
224  void SetTextAlign(Short_t talign=11);
225  void SetTextColor(Color_t cindex);
226  virtual Int_t SetTextFont(char *fontname, ETextSetMode mode);
227  virtual void SetTextFont(Font_t fontnumber);
229  virtual void SetTextSize(Float_t textsize);
230  void Sync(Int_t mode);
231  void UpdateWindow(Int_t mode);
232  void Warp(Int_t ix, Int_t iy, Window_t id = 0);
233  Int_t WriteGIF(char *name);
234  void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname);
235  Window_t GetCurrentWindow() const;
236  Int_t SupportsExtension(const char *ext) const;
237 
238  //---- Methods used for GUI -----
240  void MapWindow(Window_t id);
241  void MapSubwindows(Window_t id);
242  void MapRaised(Window_t id);
243  void UnmapWindow(Window_t id);
244  void DestroyWindow(Window_t id);
245  void DestroySubwindows(Window_t id);
246  void RaiseWindow(Window_t id);
247  void LowerWindow(Window_t id);
248  void MoveWindow(Window_t id, Int_t x, Int_t y);
250  void ResizeWindow(Window_t id, UInt_t w, UInt_t h);
251  void IconifyWindow(Window_t id);
252  void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y);
253  void SetWindowBackground(Window_t id, ULong_t color);
256  UInt_t w, UInt_t h, UInt_t border,
257  Int_t depth, UInt_t clss,
258  void *visual, SetWindowAttributes_t *attr,
259  UInt_t wtype);
260  Int_t OpenDisplay(const char *dpyName);
261  void CloseDisplay();
262  Display_t GetDisplay() const;
263  Visual_t GetVisual() const;
264  Int_t GetScreen() const;
265  Int_t GetDepth() const;
266  Colormap_t GetColormap() const;
267  Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist);
269  Window_t GetParent(Window_t id) const;
270  FontStruct_t LoadQueryFont(const char *font_name);
272  void DeleteFont(FontStruct_t fs);
274  void ChangeGC(GContext_t gc, GCValues_t *gval);
275  void CopyGC(GContext_t org, GContext_t dest, Mask_t mask);
276  void DeleteGC(GContext_t gc);
277  Cursor_t CreateCursor(ECursor cursor);
278  void SetCursor(Window_t id, Cursor_t curid);
280  Pixmap_t CreatePixmap(Drawable_t id, const char *bitmap, UInt_t width,
281  UInt_t height, ULong_t forecolor, ULong_t backcolor,
282  Int_t depth);
283  unsigned char *GetColorBits(Drawable_t wid, Int_t x = 0, Int_t y = 0, UInt_t w = 0, UInt_t h = 0);
284  Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height);
285  Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap,
286  UInt_t width, UInt_t height);
287  void DeletePixmap(Pixmap_t pmap);
288  Bool_t CreatePictureFromFile(Drawable_t id, const char *filename,
289  Pixmap_t &pict, Pixmap_t &pict_mask,
290  PictureAttributes_t &attr);
291  Bool_t CreatePictureFromData(Drawable_t id, char **data,
292  Pixmap_t &pict, Pixmap_t &pict_mask,
293  PictureAttributes_t &attr);
294  Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data);
295  void DeletePictureData(void *data);
296  void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n);
297  Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color);
299  void QueryColor(Colormap_t cmap, ColorStruct_t &color);
300  void FreeColor(Colormap_t cmap, ULong_t pixel);
302  void NextEvent(Event_t &event);
303  void Bell(Int_t percent);
305  Int_t src_x, Int_t src_y, UInt_t width, UInt_t height,
306  Int_t dest_x, Int_t dest_y);
308  void ChangeProperty(Window_t id, Atom_t property, Atom_t type,
309  UChar_t *data, Int_t len);
310  void DrawLine(Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2);
311  void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h);
313  void SendEvent(Window_t id, Event_t *ev);
314  void WMDeleteNotify(Window_t id);
315  void SetKeyAutoRepeat(Bool_t on = kTRUE);
316  void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab = kTRUE);
317  void GrabButton(Window_t id, EMouseButton button, UInt_t modifier,
318  UInt_t evmask, Window_t confine, Cursor_t cursor,
319  Bool_t grab = kTRUE);
320  void GrabPointer(Window_t id, UInt_t evmask, Window_t confine,
321  Cursor_t cursor, Bool_t grab = kTRUE,
322  Bool_t owner_events = kTRUE);
323  void SetWindowName(Window_t id, char *name);
324  void SetIconName(Window_t id, char *name);
325  void SetIconPixmap(Window_t id, Pixmap_t pic);
326  void SetClassHints(Window_t id, char *className, char *resourceName);
327  void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input);
328  void SetWMPosition(Window_t id, Int_t x, Int_t y);
329  void SetWMSize(Window_t id, UInt_t w, UInt_t h);
330  void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin,
331  UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc);
332  void SetWMState(Window_t id, EInitialState state);
333  void SetWMTransientHint(Window_t id, Window_t main_id);
334  void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
335  const char *s, Int_t len);
336  Int_t TextWidth(FontStruct_t font, const char *s, Int_t len);
337  void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent);
338  void GetGCValues(GContext_t gc, GCValues_t &gval);
340  void FreeFontStruct(FontStruct_t fs);
341  void ClearWindow(Window_t id);
342  Int_t KeysymToKeycode(UInt_t keysym);
344  UInt_t w, UInt_t h);
346  UInt_t w, UInt_t h);
347  void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg);
348  void SelectInput(Window_t id, UInt_t evmask);
350  void SetInputFocus(Window_t id);
353  void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when);
354  void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym);
355  void GetPasteBuffer(Window_t id, Atom_t atom, TString &text,
356  Int_t &nchar, Bool_t del);
358  Int_t src_y, Int_t &dest_x, Int_t &dest_y, Window_t &child);
359  void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
360  void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt);
361  void QueryPointer(Window_t id, Window_t &rootw, Window_t &childw,
362  Int_t &root_x, Int_t &root_y, Int_t &win_x,
363  Int_t &win_y, UInt_t &mask);
364  void SetForeground(GContext_t gc, ULong_t foreground);
366  void Update(Int_t mode = 0);
368  void DestroyRegion(Region_t reg);
371  void UnionRegion(Region_t rega, Region_t regb, Region_t result);
372  void IntersectRegion(Region_t rega, Region_t regb, Region_t result);
373  void SubtractRegion(Region_t rega, Region_t regb, Region_t result);
374  void XorRegion(Region_t rega, Region_t regb, Region_t result);
377  Bool_t EqualRegion(Region_t rega, Region_t regb);
378  void GetRegionBox(Region_t reg, Rectangle_t *);
379  char **ListFonts(const char *fontname, Int_t max, Int_t &count);
380  void FreeFontNames(char **fontlist);
382  void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height);
383  void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel);
384  void PutImage(Drawable_t id, GContext_t gc, Drawable_t img,
385  Int_t dx, Int_t dy, Int_t x, Int_t y,
386  UInt_t w, UInt_t h);
387  void DeleteImage(Drawable_t img);
388  void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask);
389  UInt_t ScreenWidthMM() const;
390 
393  Atom_t*, Int_t*, ULong_t*, ULong_t*, unsigned char**);
397  void ChangeProperties(Window_t id, Atom_t property, Atom_t type,
398  Int_t format, UChar_t *data, Int_t len);
399  void SetDNDAware(Window_t, Atom_t *);
400  void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist);
401  Window_t FindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd);
402  Bool_t IsDNDAware(Window_t win, Atom_t *typelist);
403 
404  ClassDef(TGX11,0) //Interface to X11
405 };
406 
407 #endif
TGX11::GrabKey
void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
Establish passive grab on a certain key.
Definition: GX11Gui.cxx:1837
XColor_t::fPixel
ULong_t fPixel
color pixel value
Definition: TGX11.h:72
TGX11::UnionRectWithRegion
void UnionRectWithRegion(Rectangle_t *rect, Region_t src, Region_t dest)
Union of rectangle with a region.
Definition: GX11Gui.cxx:2519
n
const Int_t n
Definition: legend1.C:16
TGX11::SetDrawMode
void SetDrawMode(EDrawMode mode)
Set the drawing mode.
Definition: TGX11.cxx:2159
Drawable
XID Drawable
Definition: TGX11.h:36
TGX11::ParseColor
Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color)
Parse string cname containing color name, like "green" or "#00FF00".
Definition: GX11Gui.cxx:1346
TGX11::CopyWindowtoPixmap
void CopyWindowtoPixmap(Drawable *pix, Int_t xpos, Int_t ypos)
Copy area of current window in the pixmap pix.
Definition: TGX11.cxx:508
TGX11::GetFontStruct
FontStruct_t GetFontStruct(FontH_t fh)
Retrieve associated font structure once we have the font handle.
Definition: GX11Gui.cxx:2123
TGX11::MapModifierState
void MapModifierState(UInt_t &state, UInt_t &xstate, Bool_t tox=kTRUE)
Map modifier key state to or from X.
Definition: GX11Gui.cxx:1437
TGX11::SetDNDAware
void SetDNDAware(Window_t, Atom_t *)
Add XdndAware property and the list of drag and drop types to the Window win.
Definition: GX11Gui.cxx:2776
TGX11::SetClassHints
void SetClassHints(Window_t id, char *className, char *resourceName)
Set the windows class and resource name.
Definition: GX11Gui.cxx:1952
ymax
float ymax
Definition: THbookFile.cxx:95
Region_t
Handle_t Region_t
Definition: GuiTypes.h:31
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
Pixmap_t
Handle_t Pixmap_t
Definition: GuiTypes.h:29
TGX11::GetPasteBuffer
void GetPasteBuffer(Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del)
Get contents of paste buffer atom into string.
Definition: GX11Gui.cxx:2355
TGX11::PointInRegion
Bool_t PointInRegion(Int_t x, Int_t y, Region_t reg)
Returns true if the point x,y is in the region.
Definition: GX11Gui.cxx:2581
TGX11::CreatePixmapFromData
Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height)
create pixmap from RGB data.
Definition: TGX11.cxx:3631
TGX11::MapCursor
void MapCursor(ECursor cursor, Int_t &xcursor)
Style_t
short Style_t
Definition: RtypesCore.h:80
TGX11::SetWindowBackground
void SetWindowBackground(Window_t id, ULong_t color)
Set the window background color.
Definition: GX11Gui.cxx:363
Display_t
Handle_t Display_t
Definition: GuiTypes.h:26
TGX11::SetColor
void SetColor(void *gc, Int_t ci)
Set the foreground color in GC.
Definition: TGX11.cxx:2043
TGX11::SetWMPosition
void SetWMPosition(Window_t id, Int_t x, Int_t y)
Tell the window manager the desired window position.
Definition: GX11Gui.cxx:1984
TGX11::Init
Bool_t Init(void *display)
Initialize X11 system. Returns kFALSE in case of failure.
Definition: TGX11.cxx:342
TGX11::fScreenNumber
Int_t fScreenNumber
Screen number.
Definition: TGX11.h:135
TGX11::DrawPolyLine
void DrawPolyLine(Int_t n, TPoint *xy)
Draw a line through all points.
Definition: TGX11.cxx:624
TGX11::fMaxNumberOfWindows
Int_t fMaxNumberOfWindows
Maximum number of windows.
Definition: TGX11.h:86
TGX11::TextWidth
Int_t TextWidth(FontStruct_t font, const char *s, Int_t len)
Return length of string in pixels. Size depends on font.
Definition: GX11Gui.cxx:2081
TGX11::SetMarkerColor
void SetMarkerColor(Color_t cindex)
Set color index for markers.
Definition: TGX11.cxx:2381
dest
#define dest(otri, vertexptr)
Definition: triangle.c:1040
TGX11::CloseWindow
void CloseWindow()
Delete current window.
Definition: TGX11.cxx:447
TGX11::SetLineStyle
void SetLineStyle(Style_t linestyle)
Set line style.
Definition: TGX11.cxx:2323
TGX11::ChangeProperties
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...
Definition: GX11Gui.cxx:2763
TGX11::DeletePictureData
void DeletePictureData(void *data)
Delete picture data created by the function ReadPictureDataFromFile.
Definition: GX11Gui.cxx:1307
TGX11::MapColorStruct
void MapColorStruct(ColorStruct_t *color, RXColor &xcolor)
Map a ColorStruct_t to a XColor structure.
Definition: GX11Gui.cxx:1330
TGX11::ReparentWindow
void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y)
Reparent window to new parent window at position (x,y).
Definition: GX11Gui.cxx:353
ECursor
ECursor
Definition: GuiTypes.h:371
TGX11::SetCursor
void SetCursor(Int_t win, ECursor cursor)
Set the cursor.
Definition: TGX11.cxx:2076
UShort_t
unsigned short UShort_t
Definition: RtypesCore.h:40
ColorStruct_t
Definition: GuiTypes.h:309
Rectangle_t
Definition: GuiTypes.h:360
TGX11::EqualRegion
Bool_t EqualRegion(Region_t rega, Region_t regb)
Returns true if two regions are equal.
Definition: GX11Gui.cxx:2589
TGX11::DrawBox
void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
Draw a box.
Definition: TGX11.cxx:525
FontH_t
Handle_t FontH_t
Definition: GuiTypes.h:34
TGX11::DrawCellArray
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.
Definition: TGX11.cxx:559
TGX11::GetPrimarySelectionOwner
Window_t GetPrimarySelectionOwner()
Returns the window id of the current owner of the primary selection.
Definition: GX11Gui.cxx:2252
TGX11::InternAtom
Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist)
Return atom handle for atom_name.
Definition: GX11Gui.cxx:915
Point_t
Definition: GuiTypes.h:355
TGX11::GetGeometry
void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Return position and size of window wid.
Definition: TGX11.cxx:961
TGX11::GetColormap
Colormap_t GetColormap() const
Returns handle to colormap (might be useful in some cases where direct X11 manipulation outside of TV...
Definition: GX11Gui.cxx:886
TGX11
Definition: TGX11.h:83
Colormap
XID Colormap
Definition: TGX11.h:38
TGX11::ImgPickPalette
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.
Definition: TGX11.cxx:3331
TGX11::RaiseWindow
void RaiseWindow(Window_t id)
Put window on top of window stack.
Definition: GX11Gui.cxx:290
FontStruct_t
Handle_t FontStruct_t
Definition: GuiTypes.h:38
TGX11::CloseWindow1
void CloseWindow1()
Delete current window.
Definition: TGX11.cxx:461
r
ROOT::R::TRInterface & r
Definition: Object.C:4
TGX11::SendEvent
void SendEvent(Window_t id, Event_t *ev)
Send event ev to window id.
Definition: GX11Gui.cxx:1799
xmax
float xmax
Definition: THbookFile.cxx:95
TGX11::GetScreen
Int_t GetScreen() const
Returns screen number (might be useful in some cases where direct X11 manipulation outside of TVirtua...
Definition: GX11Gui.cxx:896
TGX11::fBlueDiv
Int_t fBlueDiv
Blue value divider.
Definition: TGX11.h:145
TGX11::SetFillStyleIndex
void SetFillStyleIndex(Int_t style, Int_t fasi)
Set fill area style index.
Definition: TGX11.cxx:2214
colors
Color * colors
Definition: X3DBuffer.c:21
TVirtualX
Definition: TVirtualX.h:46
fBuffer
std::string fBuffer
Definition: DeclareConverters.h:140
TGX11::DrawPolyMarker
void DrawPolyMarker(Int_t n, TPoint *xy)
Draw n markers with the current attributes at position x, y.
Definition: TGX11.cxx:676
TGX11::CollectImageColors
void CollectImageColors(ULong_t pixel, ULong_t *&orgcolors, Int_t &ncolors, Int_t &maxcolors)
Collect in orgcolors all different original image colors.
Definition: TGX11.cxx:2949
TGX11::QueryColor
void QueryColor(Colormap_t cmap, ColorStruct_t &color)
Fill in the primary color components for a specific pixel value.
Definition: GX11Gui.cxx:1386
TVirtualX::ETextSetMode
ETextSetMode
Definition: TVirtualX.h:52
TGX11::RequestString
Int_t RequestString(Int_t x, Int_t y, char *text)
Request a string.
Definition: TGX11.cxx:1683
GCValues_t
Definition: GuiTypes.h:223
TGX11::DeleteFont
void DeleteFont(FontStruct_t fs)
Explicitly delete font structure obtained with LoadQueryFont().
Definition: GX11Gui.cxx:977
TGX11::ClearPixmap
void ClearPixmap(Drawable *pix)
Clear the pixmap pix.
Definition: TGX11.cxx:407
TGX11::GrabPointer
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.
Definition: GX11Gui.cxx:1884
WindowAttributes_t
Definition: GuiTypes.h:113
XColor_t::fRed
UShort_t fRed
red value in range [0,kBIGGEST_RGB_VALUE]
Definition: TGX11.h:73
Float_t
float Float_t
Definition: RtypesCore.h:57
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:168
TGX11::GetTextExtent
virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess)
Return the size of a character string.
Definition: TGX11.cxx:1048
TGX11::ResizePixmap
Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h)
Resize a pixmap.
Definition: TGX11.cxx:1875
Cursor
XID Cursor
Definition: TGX11.h:37
Int_t
int Int_t
Definition: RtypesCore.h:45
TGX11::ReadPictureDataFromFile
Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data)
Read picture data from file and store in ret_data.
Definition: GX11Gui.cxx:1293
Font_t
short Font_t
Definition: RtypesCore.h:79
TGX11::PutImage
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.
Definition: TGX11.cxx:3450
TGX11::DeleteImage
void DeleteImage(Drawable_t img)
Destroy XImage img.
Definition: GX11Gui.cxx:2677
TGX11::SetRGB
void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
Set color intensities for given color index.
Definition: TGX11.cxx:3035
TGX11::ListFonts
char ** ListFonts(const char *fontname, Int_t max, Int_t &count)
Return list of font names matching fontname regexp, like "-*-times-*".
Definition: GX11Gui.cxx:2605
TGX11::fColormap
Colormap fColormap
Default colormap, 0 if b/w.
Definition: TGX11.h:132
TGX11::EventsPending
Int_t EventsPending()
Returns number of pending events.
Definition: GX11Gui.cxx:1415
x
Double_t x[n]
Definition: legend1.C:17
TGX11::SetMarkerStyle
void SetMarkerStyle(Style_t markerstyle)
Set marker style.
Definition: TGX11.cxx:2435
XColor_t::XColor_t
XColor_t()
Definition: TGX11.h:77
TGX11::Sync
void Sync(Int_t mode)
Set synchronisation on or off.
Definition: TGX11.cxx:3215
TGX11::fHasXft
Bool_t fHasXft
True when XftFonts are used.
Definition: TGX11.h:150
TGX11::CopyPixmap
void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos)
Copy the pixmap wid at the position xpos, ypos in the current window.
Definition: TGX11.cxx:496
TGX11::Update
void Update(Int_t mode=0)
Flush (mode = 0, default) or synchronize (mode = 1) X output buffer.
Definition: GX11Gui.cxx:2492
TGX11::GetWindowSize
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).
Definition: GX11Gui.cxx:2415
TVirtualX.h
TGX11::SetClipRectangles
void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
Set clipping rectangles in graphics context.
Definition: GX11Gui.cxx:2482
TGX11::SelectWindow
void SelectWindow(Int_t wid)
Select window to which subsequent output is directed.
Definition: TGX11.cxx:1958
TGX11::PutPixel
void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel)
Set pixel at specified location in XImage img.
Definition: GX11Gui.cxx:2657
TGX11::fVisRootWin
Drawable fVisRootWin
Root window with fVisual to be used to create GC's and XImages.
Definition: TGX11.h:131
TGX11::SetLineWidth
void SetLineWidth(Width_t width)
Set line width.
Definition: TGX11.cxx:2362
XColor_t
Description of a X11 color.
Definition: TGWin32.h:56
TGX11::SetWindowBackgroundPixmap
void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
Set pixmap as window background.
Definition: GX11Gui.cxx:373
TGX11::SetTextColor
void SetTextColor(Color_t cindex)
Set color index for text.
Definition: TGX11.cxx:3125
TGX11::GetProperty
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,...
Definition: GX11Gui.cxx:2717
EMouseButton
EMouseButton
Definition: GuiTypes.h:213
TString
Definition: TString.h:136
TGX11::UpdateWindow
void UpdateWindow(Int_t mode)
Update display.
Definition: TGX11.cxx:3238
XColor_t::fDefined
Bool_t fDefined
true if pixel value is defined
Definition: TGWin32.h:58
TGX11::fXEvent
void * fXEvent
Current native (X11) event.
Definition: TGX11.h:90
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TGX11::SelectInput
void SelectInput(Window_t id, UInt_t evmask)
Defines which input events the window is interested in.
Definition: GX11Gui.cxx:2210
TGX11::GetVisual
Visual_t GetVisual() const
Returns handle to visual (might be useful in some cases where direct X11 manipulation outside of TVir...
Definition: GX11Gui.cxx:876
Color_t
short Color_t
Definition: RtypesCore.h:83
TGX11::AddPixmap
Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h)
Register pixmap created by gVirtualGL.
Definition: TGX11.cxx:3645
TGX11::DestroyWindow
void DestroyWindow(Window_t id)
Destroy window.
Definition: GX11Gui.cxx:270
text
TText * text
Definition: entrylist_figure1.C:10
Visual_t
Handle_t Visual_t
Definition: GuiTypes.h:27
b
#define b(i)
Definition: RSha256.hxx:118
TGX11::ChangeGC
void ChangeGC(GContext_t gc, GCValues_t *gval)
Change entries in an existing graphics context, gc, by values from gval.
Definition: GX11Gui.cxx:1008
G
#define G(x, y, z)
TGX11::SetDoubleBufferOFF
void SetDoubleBufferOFF()
Turn double buffer mode off.
Definition: TGX11.cxx:2124
TGX11::CreatePictureFromFile
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.
Definition: GX11Gui.cxx:1198
TGX11::fTextAlignH
Int_t fTextAlignH
Text Alignment Horizontal.
Definition: TGX11.h:136
TGX11::GetColor
XColor_t & GetColor(Int_t cid)
Return reference to internal color structure associated to color index cid.
Definition: TGX11.cxx:909
bool
TGX11::DrawFillArea
void DrawFillArea(Int_t n, TPoint *xy)
Fill area described by polygon.
Definition: TGX11.cxx:589
TGX11::DrawRectangle
void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a rectangle outline.
Definition: GX11Gui.cxx:2187
Cursor_t
Handle_t Cursor_t
Definition: GuiTypes.h:33
TGX11::GetRegionBox
void GetRegionBox(Region_t reg, Rectangle_t *)
Return smallest enclosing rectangle.
Definition: GX11Gui.cxx:2597
TGX11::PolygonRegion
Region_t PolygonRegion(Point_t *points, Int_t np, Bool_t winding)
Create region for the polygon defined by the points array.
Definition: GX11Gui.cxx:2529
TGX11::ChangeActivePointerGrab
void ChangeActivePointerGrab(Window_t, UInt_t, Cursor_t)
Changes the specified dynamic parameters if the pointer is actively grabbed by the client.
Definition: GX11Gui.cxx:2730
TGX11::OpenPixmap
Int_t OpenPixmap(UInt_t w, UInt_t h)
Open a new pixmap.
Definition: TGX11.cxx:1243
x1
static const double x1[5]
Definition: RooGaussKronrodIntegrator1D.cxx:346
TGX11::TGX11
TGX11()
Default constructor.
Definition: TGX11.cxx:173
TGX11::fCursors
Cursor fCursors[kNumCursors]
List of cursors.
Definition: TGX11.h:89
Drawable_t
Handle_t Drawable_t
Definition: GuiTypes.h:30
xy
XPoint xy[kMAXMK]
Definition: TGX11.cxx:123
TGX11::FillPolygon
void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt)
FillPolygon fills the region closed by the specified path.
Definition: GX11Gui.cxx:2433
TGX11::fCharacterUpY
Float_t fCharacterUpY
Character Up vector along Y.
Definition: TGX11.h:140
TGX11::GetRGB
void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b)
Get rgb values for color "index".
Definition: TGX11.cxx:1027
TGX11::SupportsExtension
Int_t SupportsExtension(const char *ext) const
Returns 1 if window system server supports extension given by the argument, returns 0 in case extensi...
Definition: TGX11.cxx:3692
TGX11::SetSelectionOwner
Bool_t SetSelectionOwner(Window_t, Atom_t &)
Changes the owner and last-change time for the specified selection.
Definition: GX11Gui.cxx:2753
TGX11::GetCurrentWindow
Window_t GetCurrentWindow() const
Return current window pointer. Protected method used by TGX11TTF.
Definition: TGX11.cxx:922
GContext_t
Handle_t GContext_t
Definition: GuiTypes.h:37
TGX11::DestroySubwindows
void DestroySubwindows(Window_t id)
Destroy subwindows of this window.
Definition: GX11Gui.cxx:280
TGX11::CreateImage
Drawable_t CreateImage(UInt_t width, UInt_t height)
Create a client-side XImage. Returns handle to XImage.
Definition: GX11Gui.cxx:2625
TGX11::fWhitePixel
ULong_t fWhitePixel
Value of white pixel in colormap.
Definition: TGX11.h:134
TGX11::WriteGIF
Int_t WriteGIF(char *name)
Writes the current window into GIF file.
Definition: TGX11.cxx:3387
TGX11::DrawString
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).
Definition: GX11Gui.cxx:2070
TGX11::SubtractRegion
void SubtractRegion(Region_t rega, Region_t regb, Region_t result)
Subtract rega from regb.
Definition: GX11Gui.cxx:2556
R
#define R(a, b, c, d, e, f, g, h, i)
Definition: RSha256.hxx:128
TGX11::MapSubwindows
void MapSubwindows(Window_t id)
Map sub windows.
Definition: GX11Gui.cxx:240
TGX11::ResizeWindow
void ResizeWindow(Int_t wid)
Resize the current window if necessary.
Definition: TGX11.cxx:1919
style
TCanvas * style()
Definition: style.C:1
TGX11::fTextAlign
Int_t fTextAlign
Text alignment (set in SetTextAlign)
Definition: TGX11.h:138
TGX11::RemoveWindow
void RemoveWindow(ULong_t qwid)
Remove a window created by Qt (like CloseWindow1()).
Definition: TGX11.cxx:1422
TGX11::GetDoubleBuffer
Int_t GetDoubleBuffer(Int_t wid)
Query the double buffer value for the window wid.
Definition: TGX11.cxx:943
TGX11::ConvertSelection
void ConvertSelection(Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &)
Requests that the specified selection be converted to the specified target type.
Definition: GX11Gui.cxx:2744
TGX11::LoadQueryFont
FontStruct_t LoadQueryFont(const char *font_name)
Load font and query font.
Definition: GX11Gui.cxx:956
TGX11::fWindows
XWindow_t * fWindows
List of windows.
Definition: TGX11.h:87
TGX11::ClearWindow
void ClearWindow()
Clear current window.
Definition: TGX11.cxx:422
TGX11::MoveWindow
void MoveWindow(Int_t wid, Int_t x, Int_t y)
Move the window wid.
Definition: TGX11.cxx:1080
TGX11::SetWindowName
void SetWindowName(Window_t id, char *name)
Set window name.
Definition: GX11Gui.cxx:1903
TGX11::QueryPointer
void QueryPointer(Int_t &ix, Int_t &iy)
Query pointer position.
Definition: TGX11.cxx:1454
TGX11::HasTTFonts
Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
Definition: TGX11.h:189
TGX11::SetKeyAutoRepeat
void SetKeyAutoRepeat(Bool_t on=kTRUE)
Turn key auto repeat on or off.
Definition: GX11Gui.cxx:1823
TGX11::fGreenDiv
Int_t fGreenDiv
Green value divider.
Definition: TGX11.h:144
TGX11::CreateGC
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...
Definition: GX11Gui.cxx:986
TGX11::CheckEvent
Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
Definition: GX11Gui.cxx:1768
TGX11::SetTextFont
virtual Int_t SetTextFont(char *fontname, ETextSetMode mode)
Set text font to specified name.
Definition: TGX11.cxx:3154
TVirtualX::EDrawMode
EDrawMode
Definition: TVirtualX.h:49
TGX11::SetMarkerSize
void SetMarkerSize(Float_t markersize)
Set marker size index.
Definition: TGX11.cxx:2395
TGX11::CreatePixmap
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.
Definition: GX11Gui.cxx:1077
kNumCursors
const int kNumCursors
Definition: GuiTypes.h:370
TGX11::SetDoubleBufferON
void SetDoubleBufferON()
Turn double buffer mode on.
Definition: TGX11.cxx:2134
XColor_t::fGreen
UShort_t fGreen
green value
Definition: TGX11.h:74
TGX11::OpenDisplay
Int_t OpenDisplay(void *display)
Open the display. Return -1 if the opening fails, 0 when ok.
Definition: TGX11.cxx:1091
TGX11::UnionRegion
void UnionRegion(Region_t rega, Region_t regb, Region_t result)
Compute the union of rega and regb and return result region.
Definition: GX11Gui.cxx:2539
TGX11::GetTextMagnitude
Float_t GetTextMagnitude()
Returns the current font magnification factor.
Definition: TGX11.h:187
TGX11::GetNativeEvent
Handle_t GetNativeEvent() const
Returns the current native event handle.
Definition: TGX11.h:181
TGX11::SetForeground
void SetForeground(GContext_t gc, ULong_t foreground)
Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set).
Definition: GX11Gui.cxx:2472
TGX11::GetWindowID
Window_t GetWindowID(Int_t wid)
Return the X11 window identifier.
Definition: TGX11.cxx:1068
xmin
float xmin
Definition: THbookFile.cxx:95
Colormap_t
Handle_t Colormap_t
Definition: GuiTypes.h:32
TGX11::IconifyWindow
void IconifyWindow(Window_t id)
Iconify the window.
Definition: GX11Gui.cxx:343
h
#define h(i)
Definition: RSha256.hxx:124
TGX11::fTextAlignV
Int_t fTextAlignV
Text Alignment Vertical.
Definition: TGX11.h:137
TGX11::WMDeleteNotify
void WMDeleteNotify(Window_t id)
Tell WM to send message when window is closed via WM.
Definition: GX11Gui.cxx:1813
TGX11::fColors
TExMap * fColors
Hash list of colors.
Definition: TGX11.h:88
TGX11::fDepth
Int_t fDepth
Number of color planes.
Definition: TGX11.h:142
TGX11::ChangeWindowAttributes
void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t *attr)
Change window attributes.
Definition: GX11Gui.cxx:1713
TGX11::CreateRegion
Region_t CreateRegion()
Create a new empty region.
Definition: GX11Gui.cxx:2503
TGX11::SetTextAlign
void SetTextAlign(Short_t talign=11)
Set text alignment.
Definition: TGX11.cxx:3068
TGX11::Warp
void Warp(Int_t ix, Int_t iy, Window_t id=0)
Set pointer position.
Definition: TGX11.cxx:3261
TGX11::FindBestVisual
void FindBestVisual()
Find best visual, i.e.
Definition: TGX11.cxx:780
Atom_t
Handle_t Atom_t
Definition: GuiTypes.h:36
TGX11::DeleteProperty
void DeleteProperty(Window_t, Atom_t &)
Deletes the specified property only if the property was defined on the specified window and causes th...
Definition: GX11Gui.cxx:2706
TGX11::TranslateCoordinates
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.
Definition: GX11Gui.cxx:2399
TGX11::RescaleWindow
void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
Rescale the window wid.
Definition: TGX11.cxx:1841
Width_t
short Width_t
Definition: RtypesCore.h:82
TGX11::Bell
void Bell(Int_t percent)
Sound bell. Percent is loudness from -100% .. 100%.
Definition: GX11Gui.cxx:1690
TGX11::DrawSegments
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.
Definition: GX11Gui.cxx:2197
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TGX11::fHasTTFonts
Bool_t fHasTTFonts
True when TrueType fonts are used.
Definition: TGX11.h:149
TGX11::SetMWMHints
void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
Definition: GX11Gui.cxx:1966
TGX11::LookupString
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...
Definition: GX11Gui.cxx:2293
TGX11::GetWindowAttributes
void GetWindowAttributes(Window_t id, WindowAttributes_t &attr)
Get window attributes and return filled in attributes structure.
Definition: GX11Gui.cxx:776
TGX11::NextEvent
void NextEvent(Event_t &event)
Copies first pending event from event queue to Event_t structure and removes event from queue.
Definition: GX11Gui.cxx:1426
TGX11::MapSetWindowAttributes
void MapSetWindowAttributes(SetWindowAttributes_t *attr, ULong_t &xmask, RXSetWindowAttributes &xattr)
Map a SetWindowAttributes_t to a XSetWindowAttributes structure.
Definition: GX11Gui.cxx:480
TGX11::SetWMSize
void SetWMSize(Window_t id, UInt_t w, UInt_t h)
Tell the window manager the desired window size.
Definition: GX11Gui.cxx:2000
Long_t
long Long_t
Definition: RtypesCore.h:54
TGX11::DisplayName
const char * DisplayName(const char *dpyName=0)
Return hostname on which the display is opened.
Definition: TGX11.cxx:996
TGX11::FreeFontStruct
void FreeFontStruct(FontStruct_t fs)
Free font structure returned by GetFontStruct().
Definition: GX11Gui.cxx:2135
TGX11::FreeFontNames
void FreeFontNames(char **fontlist)
Free list of font names.
Definition: GX11Gui.cxx:2617
TGX11::SetTypeList
void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist)
Add the list of drag and drop types to the Window win.
Definition: GX11Gui.cxx:2797
TGX11::UnmapWindow
void UnmapWindow(Window_t id)
Unmap window from screen.
Definition: GX11Gui.cxx:260
TVirtualX::EBoxMode
EBoxMode
Definition: TVirtualX.h:50
TGX11::QueryColors
void QueryColors(Colormap cmap, RXColor *colors, Int_t ncolors)
Returns the current RGB value for the pixel in the XColor structure.
Definition: TGX11.cxx:383
TGX11::GetPixel
ULong_t GetPixel(Color_t cindex)
Return pixel value associated to specified ROOT color number.
Definition: TGX11.cxx:1004
TGX11::GetFontHandle
FontH_t GetFontHandle(FontStruct_t fs)
Return handle to font described by font structure.
Definition: GX11Gui.cxx:965
Window_t
Handle_t Window_t
Definition: GuiTypes.h:28
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TGX11::CopyGC
void CopyGC(GContext_t org, GContext_t dest, Mask_t mask)
Copies graphics context from org to dest.
Definition: GX11Gui.cxx:1027
y
Double_t y[n]
Definition: legend1.C:17
TGX11::CreateBitmap
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.
Definition: GX11Gui.cxx:1097
TGX11::InitWindow
Int_t InitWindow(ULong_t window)
Open window and return window number.
Definition: TGX11.cxx:1301
org
#define org(otri, vertexptr)
Definition: triangle.c:1037
ULong_t
unsigned long ULong_t
Definition: RtypesCore.h:55
Short_t
short Short_t
Definition: RtypesCore.h:39
TGX11::GetCharacterUp
void GetCharacterUp(Float_t &chupx, Float_t &chupy)
Return character up vector.
Definition: TGX11.cxx:899
TGX11::DeleteGC
void DeleteGC(GContext_t gc)
Explicitly delete a graphics context.
Definition: GX11Gui.cxx:1047
TGX11::SetTextSize
virtual void SetTextSize(Float_t textsize)
Set current text size.
Definition: TGX11.cxx:3203
TGX11::MapKeySym
void MapKeySym(UInt_t &keysym, UInt_t &xkeysym, Bool_t tox=kTRUE)
Map to and from X key symbols.
Definition: GX11Gui.cxx:2315
TGX11::DeletePixmap
void DeletePixmap(Pixmap_t pmap)
Explicitly delete pixmap resource.
Definition: GX11Gui.cxx:1107
TGX11::fTextMagnitude
Float_t fTextMagnitude
Text Magnitude.
Definition: TGX11.h:141
TGX11::ReadGIF
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.
Definition: TGX11.cxx:3515
TGX11::MapPictureAttributes
void MapPictureAttributes(PictureAttributes_t &attr, RXpmAttributes &xpmattr, Bool_t toxpm=kTRUE)
Map a PictureAttributes_t to a XpmAttributes structure.
Definition: GX11Gui.cxx:1116
TGX11::ShapeCombineMask
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.
Definition: GX11Gui.cxx:2687
TGX11::GetTextExtent
virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *)
Returns the size of the specified character string "mess".
Definition: TGX11.h:186
unsigned int
TGX11::~TGX11
virtual ~TGX11()
Destructor.
Definition: TGX11.cxx:324
ymin
float ymin
Definition: THbookFile.cxx:95
TGX11::GetImageSize
void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height)
Get size of XImage img.
Definition: GX11Gui.cxx:2648
TGX11::EmptyRegion
Bool_t EmptyRegion(Region_t reg)
Return true if the region is empty.
Definition: GX11Gui.cxx:2573
TGX11::IntersectRegion
void IntersectRegion(Region_t rega, Region_t regb, Region_t result)
Compute the intersection of rega and regb and return result region.
Definition: GX11Gui.cxx:2548
TGX11::GetFontProperties
void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
Return some font properties.
Definition: GX11Gui.cxx:2089
TGX11::DrawText
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.
Definition: TGX11.cxx:751
TGX11::SetWMState
void SetWMState(Window_t id, EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.
Definition: GX11Gui.cxx:2039
TGX11::MakeOpaqueColors
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.
Definition: TGX11.cxx:2974
TGX11::GetInputFocus
Window_t GetInputFocus()
Returns the window id of the window having the input focus.
Definition: GX11Gui.cxx:2224
TGX11::SetWMTransientHint
void SetWMTransientHint(Window_t id, Window_t main_id)
Tell window manager that window is a transient window of main.
Definition: GX11Gui.cxx:2060
XID
unsigned long XID
Definition: TGX11.h:35
TGX11::CreatePictureFromData
Bool_t CreatePictureFromData(Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
Create a picture pixmap from data.
Definition: GX11Gui.cxx:1251
TGX11::fBlueShift
Int_t fBlueShift
Bits to left shift blue.
Definition: TGX11.h:148
TPoint
Definition: TPoint.h:31
TGX11::SetDoubleBuffer
void SetDoubleBuffer(Int_t wid, Int_t mode)
Set the double buffer on/off on window wid.
Definition: TGX11.cxx:2091
TGX11::GetDisplay
Display_t GetDisplay() const
Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVi...
Definition: GX11Gui.cxx:866
TGX11::GetColorBits
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,...
Definition: TGX11.cxx:3618
TGX11::FillRectangle
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.
Definition: GX11Gui.cxx:2177
TGX11::SetInputFocus
void SetInputFocus(Window_t id)
Set keyboard input focus to window id.
Definition: GX11Gui.cxx:2236
TGX11::FindColor
Int_t FindColor(ULong_t pixel, ULong_t *orgcolors, Int_t ncolors)
Returns index in orgcolors (and fNewColors) for pixel.
Definition: TGX11.cxx:3019
TGX11::fGreenShift
Int_t fGreenShift
Bits to left shift green.
Definition: TGX11.h:147
PictureAttributes_t
Definition: GuiTypes.h:322
TGX11::SetCharacterUp
void SetCharacterUp(Float_t chupx, Float_t chupy)
Set character up vector.
Definition: TGX11.cxx:1983
TGX11::fRedDiv
Int_t fRedDiv
Red value divider, -1 if no TrueColor visual.
Definition: TGX11.h:143
TGX11::SetFillStyle
void SetFillStyle(Style_t style)
Set fill area style.
Definition: TGX11.cxx:2202
file
Definition: file.py:1
TGX11::RequestLocator
Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
Request Locator position.
Definition: TGX11.cxx:1505
UChar_t
unsigned char UChar_t
Definition: RtypesCore.h:38
points
point * points
Definition: X3DBuffer.c:22
TGX11::SetClipRegion
void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
Set clipping region for the window wid.
Definition: TGX11.cxx:2020
TGX11::ClearArea
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.
Definition: GX11Gui.cxx:1756
TGX11::DestroyRegion
void DestroyRegion(Region_t reg)
Destroy region.
Definition: GX11Gui.cxx:2511
TGX11::CopyArea
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.
Definition: GX11Gui.cxx:1700
TGX11::fVisual
RVisual * fVisual
Pointer to visual used by all windows.
Definition: TGX11.h:129
Handle_t
ULong_t Handle_t
Definition: GuiTypes.h:25
TGX11::IsDNDAware
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.
Definition: GX11Gui.cxx:2865
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGX11::FindRWindow
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,...
Definition: GX11Gui.cxx:2814
TGX11::SetLineColor
void SetLineColor(Color_t cindex)
Set color index for lines.
Definition: TGX11.cxx:2276
TGX11::AllocColor
Bool_t AllocColor(Colormap cmap, RXColor *color)
Allocate color in colormap.
Definition: TGX11.cxx:366
TGX11::GetGC
void * GetGC(Int_t which) const
Return desired Graphics Context ("which" maps directly on gGCList[]).
Definition: TGX11.cxx:931
Event_t
Definition: GuiTypes.h:173
TGX11::CloseDisplay
void CloseDisplay()
Close connection to display server.
Definition: GX11Gui.cxx:855
TGX11::MoveResizeWindow
void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
Move and resize a window.
Definition: GX11Gui.cxx:320
TGX11::FindUsableVisual
void FindUsableVisual(RXVisualInfo *vlist, Int_t nitems)
Check if visual is usable, if so set fVisual, fDepth, fColormap, fBlackPixel and fWhitePixel.
Definition: TGX11.cxx:848
name
char name[80]
Definition: TGX11.cxx:110
TGX11::MapEventMask
void MapEventMask(UInt_t &emask, UInt_t &xemask, Bool_t tox=kTRUE)
Map event mask to or from X.
Definition: GX11Gui.cxx:415
TGX11::DrawText
virtual void DrawText(Int_t, Int_t, Float_t, Float_t, const wchar_t *, ETextMode)
Draws a text string using current font.
Definition: TGX11.h:176
TGX11::SetFillColor
void SetFillColor(Color_t cindex)
Set color index for fill areas.
Definition: TGX11.cxx:2183
TGX11::GetParent
Window_t GetParent(Window_t id) const
Return the parent of the window.
Definition: GX11Gui.cxx:935
TGX11::fRootWin
Drawable fRootWin
Root window used as parent of all windows.
Definition: TGX11.h:130
TGX11::KeysymToKeycode
Int_t KeysymToKeycode(UInt_t keysym)
Convert a keysym to the appropriate keycode.
Definition: GX11Gui.cxx:2166
x2
static const double x2[5]
Definition: RooGaussKronrodIntegrator1D.cxx:364
TGX11::SetIconName
void SetIconName(Window_t id, char *name)
Set window icon name.
Definition: GX11Gui.cxx:1920
TGX11::XorRegion
void XorRegion(Region_t rega, Region_t regb, Region_t result)
Calculate the difference between the union and intersection of two regions.
Definition: GX11Gui.cxx:2565
XColor_t::fBlue
UShort_t fBlue
blue value
Definition: TGX11.h:75
TExMap
Definition: TExMap.h:33
Window
XID Window
Definition: TGX11.h:39
TGX11::MapGCValues
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.
Definition: GX11Gui.cxx:569
EInitialState
EInitialState
Definition: GuiTypes.h:344
TGX11::MapRaised
void MapRaised(Window_t id)
Map window on screen and put on top of all windows.
Definition: GX11Gui.cxx:250
TGX11::FreeColor
void FreeColor(Colormap_t cmap, ULong_t pixel)
Free color cell with specified pixel value.
Definition: GX11Gui.cxx:1406
TGX11::GetDefaultRootWindow
Window_t GetDefaultRootWindow() const
Return handle to the default root window created when calling XOpenDisplay().
Definition: GX11Gui.cxx:927
TGX11::GrabButton
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.
Definition: GX11Gui.cxx:1858
TGX11::CreateWindow
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.
Definition: GX11Gui.cxx:383
TGX11::LowerWindow
void LowerWindow(Window_t id)
Lower window so it lays below all its siblings.
Definition: GX11Gui.cxx:300
TGX11::SetDashes
void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
Specify a dash pattern.
Definition: GX11Gui.cxx:1322
type
int type
Definition: TGX11.cxx:121
TGX11::ClosePixmap
void ClosePixmap()
Delete current pixmap.
Definition: TGX11.cxx:439
TGX11::RemovePixmap
void RemovePixmap(Drawable *pix)
Remove the pixmap pix.
Definition: TGX11.cxx:1472
TGX11::ConvertPrimarySelection
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...
Definition: GX11Gui.cxx:2279
TGX11::MapWindow
void MapWindow(Window_t id)
Map window on screen.
Definition: GX11Gui.cxx:230
ROOT::Math::Cephes::B
static double B[]
Definition: SpecFuncCephes.cxx:178
TGX11::AddWindow
Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h)
Register a window created by Qt as a ROOT window (like InitWindow()).
Definition: TGX11.cxx:1378
TGX11::ChangeProperty
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...
Definition: GX11Gui.cxx:1734
TGX11::SetOpacity
void SetOpacity(Int_t percent)
Set opacity of a window.
Definition: TGX11.cxx:2884
TGX11::SetClipOFF
void SetClipOFF(Int_t wid)
Turn off the clipping for the window wid.
Definition: TGX11.cxx:2004
TGX11::SetMarkerType
void SetMarkerType(Int_t type, Int_t n, RXPoint *xy)
Set marker type.
Definition: TGX11.cxx:2420
TGX11::SetIconPixmap
void SetIconPixmap(Window_t id, Pixmap_t pic)
Set pixmap the WM can use when the window is iconized.
Definition: GX11Gui.cxx:1937
Segment_t
Definition: GuiTypes.h:350
TGX11::SetWMSizeHints
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.
Definition: GX11Gui.cxx:2017
TGX11::fRedShift
Int_t fRedShift
Bits to left shift red, -1 if no TrueColor visual.
Definition: TGX11.h:146
TGX11::SetTextMagnitude
void SetTextMagnitude(Float_t mgn=1)
Sets the current text magnification factor to "mgn".
Definition: TGX11.h:228
TGX11::SetLineType
void SetLineType(Int_t n, Int_t *dash)
Set line type.
Definition: TGX11.cxx:2297
TGX11::GetPlanes
void GetPlanes(Int_t &nplanes)
Get maximum number of planes.
Definition: TGX11.cxx:1019
Time_t
ULong_t Time_t
Definition: GuiTypes.h:41
TGX11::ScreenWidthMM
UInt_t ScreenWidthMM() const
Returns the width of the screen in millimeters.
Definition: GX11Gui.cxx:2696
EGEventType
EGEventType
Definition: GuiTypes.h:58
TGX11::CreateCursor
Cursor_t CreateCursor(ECursor cursor)
Create cursor handle (just return cursor from cursor pool fCursors).
Definition: GX11Gui.cxx:1058
TGX11::GetGCValues
void GetGCValues(GContext_t gc, GCValues_t &gval)
Get current values from graphics context gc.
Definition: GX11Gui.cxx:2102
TGX11::fDisplay
void * fDisplay
Pointer to display.
Definition: TGX11.h:128
TGX11::DrawLine
void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Draw a line.
Definition: TGX11.cxx:608
TGX11::SetInput
void SetInput(Int_t inp)
Set input on or off.
Definition: TGX11.cxx:2257
TGX11::fCharacterUpX
Float_t fCharacterUpX
Character Up vector along X.
Definition: TGX11.h:139
TVirtualX::ETextMode
ETextMode
Definition: TVirtualX.h:51
TGX11::MapEvent
void MapEvent(Event_t &ev, void *xev, Bool_t tox=kTRUE)
Map Event_t structure to XEvent structure.
Definition: GX11Gui.cxx:1498
int
TGX11::GetDepth
Int_t GetDepth() const
Returns depth of screen (number of bit planes).
Definition: GX11Gui.cxx:905
TGX11::SetPrimarySelectionOwner
void SetPrimarySelectionOwner(Window_t id)
Makes the window id the current owner of the primary selection.
Definition: GX11Gui.cxx:2261
SetWindowAttributes_t
Definition: GuiTypes.h:92
TGX11::WritePixmap
void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname)
Write the pixmap wid in the bitmap file pxname.
Definition: TGX11.cxx:3278
TGX11::fBlackPixel
ULong_t fBlackPixel
Value of black pixel in colormap.
Definition: TGX11.h:133
g
#define g(i)
Definition: RSha256.hxx:123