ROOT  6.06/09
Reference Guide
TVirtualX.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Fons Rademakers 3/12/95
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_TVirtualX
13 #define ROOT_TVirtualX
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TVirtualX //
19 // //
20 // Semi-Abstract base class defining a generic interface to the //
21 // underlying, low level, graphics system (X11, Win32, MacOS). //
22 // An instance of TVirtualX itself defines a batch interface to the //
23 // graphics system. //
24 // //
25 //////////////////////////////////////////////////////////////////////////
26 
27 #include <utility>
28 #include <vector>
29 
30 #ifndef ROOT_TNamed
31 #include "TNamed.h"
32 #endif
33 #ifndef ROOT_TAttLine
34 #include "TAttLine.h"
35 #endif
36 #ifndef ROOT_TAttFill
37 #include "TAttFill.h"
38 #endif
39 #ifndef ROOT_TAttText
40 #include "TAttText.h"
41 #endif
42 #ifndef ROOT_TAttMarker
43 #include "TAttMarker.h"
44 #endif
45 #ifndef ROOT_GuiTypes
46 #include "GuiTypes.h"
47 #endif
48 
49 
50 // WM Atoms are initialized in TGClient
54 
55 const int kNumCursors = 19;
60 
61 class TPoint;
62 class TString;
63 class TGWin32Command;
64 #ifdef __cplusplus
65  class GLUtesselator;
66 #else
67  extern "C" { struct GLUtesselator; }
68 #endif
69 
70 class TVirtualX : public TNamed, public TAttLine, public TAttFill, public TAttText, public TAttMarker {
71 
72 public:
73  enum EDrawMode { kCopy = 1, kXor, kInvert };
77 
78 protected:
79  EDrawMode fDrawMode; //Drawing mode
80 
81 public:
82  TVirtualX(): fDrawMode() { }
83  TVirtualX(const char *name, const char *title);
84  virtual ~TVirtualX() { }
85 
86  virtual Bool_t Init(void *display=0);
87  virtual void ClearWindow();
88  virtual void ClosePixmap();
89  virtual void CloseWindow();
90  virtual void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos);
91  virtual void CreateOpenGLContext(Int_t wid=0);
92  virtual void DeleteOpenGLContext(Int_t wid=0);
93 
94  //---- OpenGL related stuff, required only with R__HAS_COCOA ----
96  virtual Window_t CreateOpenGLWindow(Window_t parentID, UInt_t width, UInt_t height, const std::vector<std::pair<UInt_t, Int_t> > &format);
97  virtual Handle_t CreateOpenGLContext(Window_t windowID, Handle_t sharedContext);
98  virtual Bool_t MakeOpenGLContextCurrent(Handle_t ctx, Window_t windowID);
100  virtual void FlushOpenGLBuffer(Handle_t ctx);
101 
102  virtual void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode);
103  virtual void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2,
104  Int_t nx, Int_t ny, Int_t *ic);
105  virtual void DrawFillArea(Int_t n, TPoint *xy);
106  virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2);
107  virtual void DrawPolyLine(Int_t n, TPoint *xy);
108  virtual void DrawPolyMarker(Int_t n, TPoint *xy);
109  virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text,
110  ETextMode mode);
111  virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const wchar_t *text,
112  ETextMode mode);
113  virtual UInt_t ExecCommand(TGWin32Command *code);
114  virtual void GetCharacterUp(Float_t &chupx, Float_t &chupy);
116  virtual Int_t GetDoubleBuffer(Int_t wid);
117  virtual void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
118  virtual const char *DisplayName(const char * = 0);
119  virtual Handle_t GetNativeEvent() const;
120  virtual ULong_t GetPixel(Color_t cindex);
121  virtual void GetPlanes(Int_t &nplanes);
122  virtual void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b);
123  virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess);
124  virtual void GetTextExtent(UInt_t &w, UInt_t &h, wchar_t *mess);
125  virtual Int_t GetFontAscent() const;
126  virtual Int_t GetFontAscent(const char *mess) const;
127  virtual Int_t GetFontDescent() const;
128  virtual Int_t GetFontDescent(const char *mess) const;
129  virtual Float_t GetTextMagnitude();
130  virtual Window_t GetWindowID(Int_t wid);
131  virtual Bool_t HasTTFonts() const;
132  virtual Int_t InitWindow(ULong_t window);
133  virtual Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h);
134  virtual Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h);
135  virtual void RemoveWindow(ULong_t qwid);
136  virtual void MoveWindow(Int_t wid, Int_t x, Int_t y);
137  virtual Int_t OpenPixmap(UInt_t w, UInt_t h);
138  virtual void QueryPointer(Int_t &ix, Int_t &iy);
139  virtual Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char *file, Window_t id=0);
140  virtual Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y);
141  virtual Int_t RequestString(Int_t x, Int_t y, char *text);
142  virtual void RescaleWindow(Int_t wid, UInt_t w, UInt_t h);
143  virtual Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h);
144  virtual void ResizeWindow(Int_t wid);
145  virtual void SelectWindow(Int_t wid);
146  virtual void SelectPixmap(Int_t qpixid);
147  virtual void SetCharacterUp(Float_t chupx, Float_t chupy);
148  virtual void SetClipOFF(Int_t wid);
149  virtual void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h);
150  virtual void SetCursor(Int_t win, ECursor cursor);
151  virtual void SetDoubleBuffer(Int_t wid, Int_t mode);
152  virtual void SetDoubleBufferOFF();
153  virtual void SetDoubleBufferON();
154  virtual void SetDrawMode(EDrawMode mode);
155  virtual void SetFillColor(Color_t cindex);
156  virtual void SetFillStyle(Style_t style);
157  virtual void SetLineColor(Color_t cindex);
158  virtual void SetLineType(Int_t n, Int_t *dash);
159  virtual void SetLineStyle(Style_t linestyle);
160  virtual void SetLineWidth(Width_t width);
161  virtual void SetMarkerColor(Color_t cindex);
162  virtual void SetMarkerSize(Float_t markersize);
163  virtual void SetMarkerStyle(Style_t markerstyle);
164  virtual void SetOpacity(Int_t percent);
165  virtual void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b);
166  virtual void SetTextAlign(Short_t talign=11);
167  virtual void SetTextColor(Color_t cindex);
168  virtual Int_t SetTextFont(char *fontname, ETextSetMode mode);
169  virtual void SetTextFont(Font_t fontnumber);
170  virtual void SetTextMagnitude(Float_t mgn);
171  virtual void SetTextSize(Float_t textsize);
172  virtual void Sync(Int_t mode);
173  virtual void UpdateWindow(Int_t mode);
174  virtual void Warp(Int_t ix, Int_t iy, Window_t id = 0);
175  virtual Int_t WriteGIF(char *name);
176  virtual void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname);
177  virtual Window_t GetCurrentWindow() const;
178  virtual Int_t SupportsExtension(const char *ext) const;
179 
180  //---- Methods used for GUI -----
182  virtual void MapWindow(Window_t id);
183  virtual void MapSubwindows(Window_t id);
184  virtual void MapRaised(Window_t id);
185  virtual void UnmapWindow(Window_t id);
186  virtual void DestroyWindow(Window_t id);
187  virtual void DestroySubwindows(Window_t id);
188  virtual void RaiseWindow(Window_t id);
189  virtual void LowerWindow(Window_t id);
190  virtual void MoveWindow(Window_t id, Int_t x, Int_t y);
191  virtual void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h);
192  virtual void ResizeWindow(Window_t id, UInt_t w, UInt_t h);
193  virtual void IconifyWindow(Window_t id);
194  virtual Bool_t NeedRedraw(ULong_t tgwindow, Bool_t force);
195  virtual void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y);
196  virtual void SetWindowBackground(Window_t id, ULong_t color);
197  virtual void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm);
198  virtual Window_t CreateWindow(Window_t parent, Int_t x, Int_t y,
199  UInt_t w, UInt_t h, UInt_t border,
200  Int_t depth, UInt_t clss,
201  void *visual, SetWindowAttributes_t *attr,
202  UInt_t wtype);
203  virtual Int_t OpenDisplay(const char *dpyName);
204  virtual void CloseDisplay();
205  virtual Display_t GetDisplay() const;
206  virtual Visual_t GetVisual() const;
207  virtual Int_t GetScreen() const;
208  virtual Int_t GetDepth() const;
209  virtual UInt_t ScreenWidthMM() const;
210  virtual Colormap_t GetColormap() const;
211  virtual Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist);
212  virtual Window_t GetDefaultRootWindow() const;
213  virtual Window_t GetParent(Window_t id) const;
214  virtual FontStruct_t LoadQueryFont(const char *font_name);
215  virtual FontH_t GetFontHandle(FontStruct_t fs);
216  virtual void DeleteFont(FontStruct_t fs);
217  virtual GContext_t CreateGC(Drawable_t id, GCValues_t *gval);
218  virtual void ChangeGC(GContext_t gc, GCValues_t *gval);
219  virtual void CopyGC(GContext_t org, GContext_t dest, Mask_t mask);
220  virtual void DeleteGC(GContext_t gc);
221  virtual Cursor_t CreateCursor(ECursor cursor);
222  virtual void SetCursor(Window_t id, Cursor_t curid);
223  virtual Pixmap_t CreatePixmap(Drawable_t id, UInt_t w, UInt_t h);
224  virtual Pixmap_t CreatePixmap(Drawable_t id, const char *bitmap, UInt_t width,
225  UInt_t height, ULong_t forecolor, ULong_t backcolor,
226  Int_t depth);
227  virtual Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap,
228  UInt_t width, UInt_t height);
229  virtual void DeletePixmap(Pixmap_t pmap);
230  virtual Bool_t CreatePictureFromFile(Drawable_t id, const char *filename,
231  Pixmap_t &pict, Pixmap_t &pict_mask,
233  virtual Bool_t CreatePictureFromData(Drawable_t id, char **data,
234  Pixmap_t &pict, Pixmap_t &pict_mask,
236  virtual Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height);
237  virtual Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data);
238  virtual void DeletePictureData(void *data);
239  virtual void SetDashes(GContext_t gc, Int_t offset, const char *dash_list,
240  Int_t n);
241  virtual Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color);
242  virtual Bool_t AllocColor(Colormap_t cmap, ColorStruct_t &color);
243  virtual void QueryColor(Colormap_t cmap, ColorStruct_t &color);
244  virtual void FreeColor(Colormap_t cmap, ULong_t pixel);
245  virtual Int_t EventsPending();
246  virtual void NextEvent(Event_t &event);
247  virtual void Bell(Int_t percent);
248  virtual void CopyArea(Drawable_t src, Drawable_t dest, GContext_t gc,
249  Int_t src_x, Int_t src_y, UInt_t width,
250  UInt_t height, Int_t dest_x, Int_t dest_y);
252  virtual void ChangeProperty(Window_t id, Atom_t property, Atom_t type,
253  UChar_t *data, Int_t len);
254  virtual void DrawLine(Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2);
255  virtual void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h);
256  virtual Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev);
257  virtual void SendEvent(Window_t id, Event_t *ev);
258  virtual void DispatchClientMessage(UInt_t messageID);
259  virtual void WMDeleteNotify(Window_t id);
260  virtual void SetKeyAutoRepeat(Bool_t on = kTRUE);
261  virtual void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab = kTRUE);
262  virtual void GrabButton(Window_t id, EMouseButton button, UInt_t modifier,
263  UInt_t evmask, Window_t confine, Cursor_t cursor,
264  Bool_t grab = kTRUE);
265  virtual void GrabPointer(Window_t id, UInt_t evmask, Window_t confine,
266  Cursor_t cursor, Bool_t grab = kTRUE,
267  Bool_t owner_events = kTRUE);
268  virtual void SetWindowName(Window_t id, char *name);
269  virtual void SetIconName(Window_t id, char *name);
270  virtual void SetIconPixmap(Window_t id, Pixmap_t pix);
271  virtual void SetClassHints(Window_t id, char *className, char *resourceName);
272  virtual void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input);
273  virtual void SetWMPosition(Window_t id, Int_t x, Int_t y);
274  virtual void SetWMSize(Window_t id, UInt_t w, UInt_t h);
275  virtual void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin,
276  UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc);
277  virtual void SetWMState(Window_t id, EInitialState state);
278  virtual void SetWMTransientHint(Window_t id, Window_t main_id);
279  virtual void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
280  const char *s, Int_t len);
281  virtual Int_t TextWidth(FontStruct_t font, const char *s, Int_t len);
282  virtual void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent);
283  virtual void GetGCValues(GContext_t gc, GCValues_t &gval);
284  virtual FontStruct_t GetGCFont(GContext_t gc);
285  virtual FontStruct_t GetFontStruct(FontH_t fh);
286  virtual void FreeFontStruct(FontStruct_t fs);
287  virtual void ClearWindow(Window_t id);
288  virtual Int_t KeysymToKeycode(UInt_t keysym);
289  virtual void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
290  UInt_t w, UInt_t h);
291  virtual void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
292  UInt_t w, UInt_t h);
293  virtual void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg);
294  virtual void SelectInput(Window_t id, UInt_t evmask);
295  virtual Window_t GetInputFocus();
296  virtual void SetInputFocus(Window_t id);
298  virtual void SetPrimarySelectionOwner(Window_t id);
299  virtual void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when);
300  virtual void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym);
301  virtual void GetPasteBuffer(Window_t id, Atom_t atom, TString &text, Int_t &nchar,
302  Bool_t del);
303  virtual void TranslateCoordinates(Window_t src, Window_t dest, Int_t src_x,Int_t src_y,
304  Int_t &dest_x, Int_t &dest_y, Window_t &child);
305  virtual void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
306  virtual void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt);
307  virtual void QueryPointer(Window_t id, Window_t &rootw, Window_t &childw,
308  Int_t &root_x, Int_t &root_y, Int_t &win_x,
309  Int_t &win_y, UInt_t &mask);
310  virtual void SetForeground(GContext_t gc, ULong_t foreground);
311  virtual void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n);
312  virtual void Update(Int_t mode = 0);
313  virtual Region_t CreateRegion();
314  virtual void DestroyRegion(Region_t reg);
315  virtual void UnionRectWithRegion(Rectangle_t *rect, Region_t src, Region_t dest);
316  virtual Region_t PolygonRegion(Point_t *points, Int_t np, Bool_t winding);
317  virtual void UnionRegion(Region_t rega, Region_t regb, Region_t result);
318  virtual void IntersectRegion(Region_t rega, Region_t regb, Region_t result);
319  virtual void SubtractRegion(Region_t rega, Region_t regb, Region_t result);
320  virtual void XorRegion(Region_t rega, Region_t regb, Region_t result);
321  virtual Bool_t EmptyRegion(Region_t reg);
322  virtual Bool_t PointInRegion(Int_t x, Int_t y, Region_t reg);
323  virtual Bool_t EqualRegion(Region_t rega, Region_t regb);
324  virtual void GetRegionBox(Region_t reg, Rectangle_t *rect);
325  virtual char **ListFonts(const char *fontname, Int_t max, Int_t &count);
326  virtual void FreeFontNames(char **fontlist);
327  virtual Drawable_t CreateImage(UInt_t width, UInt_t height);
328  virtual void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height);
329  virtual void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel);
330  virtual void PutImage(Drawable_t id, GContext_t gc, Drawable_t img, Int_t dx, Int_t dy,
331  Int_t x, Int_t y, UInt_t w, UInt_t h);
332  virtual void DeleteImage(Drawable_t img);
333  virtual unsigned char *GetColorBits(Drawable_t wid, Int_t x = 0, Int_t y = 0, UInt_t w = 0, UInt_t h = 0);
334  virtual void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask);
335 
336  //---- Drag and Drop -----
337  virtual void DeleteProperty(Window_t, Atom_t&);
339  Atom_t*, Int_t*, ULong_t*, ULong_t*, unsigned char**);
341  virtual void ConvertSelection(Window_t, Atom_t&, Atom_t&, Atom_t&, Time_t&);
343  virtual void ChangeProperties(Window_t id, Atom_t property, Atom_t type,
344  Int_t format, UChar_t *data, Int_t len);
345  virtual void SetDNDAware(Window_t, Atom_t *);
346  virtual void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist);
347  virtual Window_t FindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd);
348  virtual Bool_t IsDNDAware(Window_t win, Atom_t *typelist);
349 
350  virtual void BeginModalSessionFor(Window_t window);
351 
352  virtual Bool_t IsCmdThread() const { return kTRUE; }
353 
354  virtual void MapGCFont(GContext_t, FontStruct_t);
355 
356  static TVirtualX *&Instance();
357 
358  ClassDef(TVirtualX,0) //ABC defining a generic interface to graphics system
359 };
360 
361 #ifndef __CINT__
362 #define gVirtualX (TVirtualX::Instance())
363 R__EXTERN TVirtualX *(*gPtr2VirtualX)();
364 #endif
366 
367 #endif
const int nx
Definition: kalman.C:16
virtual void XorRegion(Region_t rega, Region_t regb, Region_t result)
Calculates the difference between the union and intersection of two regions.
Definition: TVirtualX.cxx:2209
virtual GContext_t CreateGC(Drawable_t id, GCValues_t *gval)
Creates a graphics context using the provided GCValues_t *gval structure.
Definition: TVirtualX.cxx:1325
virtual Bool_t EmptyRegion(Region_t reg)
Returns kTRUE if the region reg is empty.
Definition: TVirtualX.cxx:2217
Handle_t FontStruct_t
Definition: GuiTypes.h:40
EDrawMode fDrawMode
Definition: TVirtualX.h:79
virtual void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
Sets clipping region for the window "wid".
Definition: TVirtualX.cxx:724
Semi-Abstract base class defining a generic interface to the underlying, low level, native graphics backend (X11, Win32, MacOS, OpenGL...).
Definition: TVirtualX.h:70
virtual void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when)
Causes a SelectionRequest event to be sent to the current primary selection owner.
Definition: TVirtualX.cxx:1991
virtual void SetDoubleBuffer(Int_t wid, Int_t mode)
Sets the double buffer on/off on the window "wid".
Definition: TVirtualX.cxx:746
virtual const char * DisplayName(const char *=0)
Returns hostname on which the display is opened.
Definition: TVirtualX.cxx:409
virtual Int_t RequestString(Int_t x, Int_t y, char *text)
Requests string: text is displayed and can be edited with Emacs-like keybinding.
Definition: TVirtualX.cxx:654
virtual Bool_t NeedRedraw(ULong_t tgwindow, Bool_t force)
Notify the low level GUI layer ROOT requires "tgwindow" to be updated.
Definition: TVirtualX.cxx:1125
virtual void SetDrawMode(EDrawMode mode)
Sets the drawing mode.
Definition: TVirtualX.cxx:773
virtual 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: TVirtualX.cxx:606
virtual Window_t GetPrimarySelectionOwner()
Returns the window id of the current owner of the primary selection.
Definition: TVirtualX.cxx:1968
EInitialState
Definition: GuiTypes.h:346
short Style_t
Definition: RtypesCore.h:76
virtual void MapRaised(Window_t id)
Maps the window "id" and all of its subwindows that have had map requests on the screen and put this ...
Definition: TVirtualX.cxx:1016
virtual Bool_t IsCmdThread() const
Definition: TVirtualX.h:352
virtual void SetMarkerColor(Color_t cindex)
Sets color index "cindex" for markers.
Definition: TVirtualX.cxx:840
float Float_t
Definition: RtypesCore.h:53
virtual void MoveWindow(Int_t wid, Int_t x, Int_t y)
Moves the window "wid" to the specified x and y coordinates.
Definition: TVirtualX.cxx:582
UInt_t Mask_t
Definition: GuiTypes.h:42
virtual void SubtractRegion(Region_t rega, Region_t regb, Region_t result)
Subtracts regb from rega and stores the results in result.
Definition: TVirtualX.cxx:2196
virtual void PutImage(Drawable_t id, GContext_t gc, Drawable_t img, Int_t dx, Int_t dy, Int_t x, Int_t y, UInt_t w, UInt_t h)
Combines an image with a rectangle of the specified drawable.
Definition: TVirtualX.cxx:2323
virtual Window_t GetCurrentWindow() const
pointer to the current internal window used in canvas graphics
Definition: TVirtualX.cxx:2339
virtual void SetTextSize(Float_t textsize)
Sets the current text size to "textsize".
Definition: TVirtualX.cxx:931
virtual void DeleteProperty(Window_t, Atom_t &)
Deletes the specified property only if the property was defined on the specified window and causes th...
Definition: TVirtualX.cxx:2401
virtual Float_t GetTextMagnitude()
Returns the current font magnification factor.
Definition: TVirtualX.cxx:511
static TVirtualX *& Instance()
Returns gVirtualX global.
Definition: TVirtualX.cxx:56
virtual Region_t CreateRegion()
Creates a new empty region.
Definition: TVirtualX.cxx:2131
virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
Draws a text string using current font.
Definition: TVirtualX.cxx:344
virtual Int_t GetFontAscent() const
Returns the ascent of the current font (in pixels).
Definition: TVirtualX.cxx:475
virtual void ChangeProperties(Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len)
Alters the property for the specified window and causes the X server to generate a PropertyNotify eve...
Definition: TVirtualX.cxx:2446
virtual void NextEvent(Event_t &event)
The "event" is set to default event.
Definition: TVirtualX.cxx:136
virtual Window_t GetDefaultRootWindow() const
Returns handle to the default root window created when calling XOpenDisplay().
Definition: TVirtualX.cxx:1266
ULong_t Time_t
Definition: GuiTypes.h:43
virtual void DrawFillArea(Int_t n, TPoint *xy)
Fills area described by the polygon.
Definition: TVirtualX.cxx:299
TH1 * h
Definition: legend2.C:5
virtual Bool_t IsDNDAware(Window_t win, Atom_t *typelist)
Checks if the Window is DND aware, and knows any of the DND formats passed in argument.
Definition: TVirtualX.cxx:2478
EGEventType
Definition: GuiTypes.h:60
Handle_t Cursor_t
Definition: GuiTypes.h:35
virtual Handle_t GetCurrentOpenGLContext()
Asks OpenGL subsystem about the current OpenGL context.
Definition: TVirtualX.cxx:251
virtual void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
Rescales the window "wid".
Definition: TVirtualX.cxx:667
virtual void IntersectRegion(Region_t rega, Region_t regb, Region_t result)
Computes the intersection of two regions.
Definition: TVirtualX.cxx:2188
virtual Int_t TextWidth(FontStruct_t font, const char *s, Int_t len)
Return length of the string "s" in pixels. Size depends on font.
Definition: TVirtualX.cxx:1815
virtual 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: TVirtualX.cxx:2469
virtual void SetFillColor(Color_t cindex)
Sets color index "cindex" for fill areas.
Definition: TVirtualX.cxx:780
virtual void GetPasteBuffer(Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del)
Gets contents of the paste buffer "atom" into the string "text".
Definition: TVirtualX.cxx:157
static const char * filename()
virtual void SetDoubleBufferON()
Turns double buffer mode on.
Definition: TVirtualX.cxx:760
virtual void ChangeGC(GContext_t gc, GCValues_t *gval)
Changes the components specified by the mask in gval for the specified GC.
Definition: TVirtualX.cxx:1338
Handle_t GContext_t
Definition: GuiTypes.h:39
virtual void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
Changes the size and location of the specified window "id" without raising it.
Definition: TVirtualX.cxx:1086
virtual void GetCharacterUp(Float_t &chupx, Float_t &chupy)
Returns character up vector.
Definition: TVirtualX.cxx:386
virtual void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t *attr)
Changes the attributes of the specified window "id" according the values provided in "attr"...
Definition: TVirtualX.cxx:1553
R__EXTERN Atom_t gWM_DELETE_WINDOW
Definition: TVirtualX.h:51
virtual void SetClassHints(Window_t id, char *className, char *resourceName)
Sets the windows class and resource name.
Definition: TVirtualX.cxx:1726
Basic string class.
Definition: TString.h:137
virtual void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
Paints a rectangular area in the specified window "id" according to the specified dimensions with the...
Definition: TVirtualX.cxx:1602
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual void DeletePictureData(void *data)
Delete picture data created by the function ReadPictureDataFromFile.
Definition: TVirtualX.cxx:1472
virtual void SetLineColor(Color_t cindex)
Sets color index "cindex" for drawing lines.
Definition: TVirtualX.cxx:797
virtual Int_t GetDepth() const
Returns depth of screen (number of bit planes).
Definition: TVirtualX.cxx:1246
Handle_t Drawable_t
Definition: GuiTypes.h:32
virtual void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
Sets the background pixmap of the window "id" to the specified pixmap "pxm".
Definition: TVirtualX.cxx:1155
virtual void SelectInput(Window_t id, UInt_t evmask)
Defines which input events the window is interested in.
Definition: TVirtualX.cxx:1945
virtual void DeleteOpenGLContext(Int_t wid=0)
Deletes OpenGL context for window "wid".
Definition: TVirtualX.cxx:220
static std::string format(double x, double y, int digits, int width)
virtual Bool_t CreatePictureFromFile(Drawable_t id, const char *filename, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
Creates a picture pict from data in file "filename".
Definition: TVirtualX.cxx:1437
ECursor
Definition: TVirtualX.h:56
virtual void SetTextColor(Color_t cindex)
Sets the color index "cindex" for text.
Definition: TVirtualX.cxx:896
short Font_t
Definition: RtypesCore.h:75
virtual void SetWMSize(Window_t id, UInt_t w, UInt_t h)
Tells window manager the desired size of window "id".
Definition: TVirtualX.cxx:1753
virtual void SetDoubleBufferOFF()
Turns double buffer mode off.
Definition: TVirtualX.cxx:753
Handle_t Display_t
Definition: GuiTypes.h:28
virtual 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: TVirtualX.cxx:2495
virtual void SetFillStyle(Style_t style)
Sets fill area style.
Definition: TVirtualX.cxx:790
virtual FontH_t GetFontHandle(FontStruct_t fs)
Returns the font handle of the specified font structure "fs".
Definition: TVirtualX.cxx:1306
virtual Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
Requests Locator position.
Definition: TVirtualX.cxx:640
virtual void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b)
Returns RGB values for color "index".
Definition: TVirtualX.cxx:441
virtual void SetForeground(GContext_t gc, ULong_t foreground)
Sets the foreground color for the specified GC (shortcut for ChangeGC with only foreground mask set)...
Definition: TVirtualX.cxx:2104
virtual Int_t OpenDisplay(const char *dpyName)
Opens connection to display server (if such a thing exist on the current platform).
Definition: TVirtualX.cxx:1198
Handle_t FontH_t
Definition: GuiTypes.h:36
virtual void WMDeleteNotify(Window_t id)
Tells WM to send message when window is closed via WM.
Definition: TVirtualX.cxx:1636
virtual void UnionRectWithRegion(Rectangle_t *rect, Region_t src, Region_t dest)
Updates the destination region from a union of the specified rectangle and the specified source regio...
Definition: TVirtualX.cxx:2151
virtual void LowerWindow(Window_t id)
Lowers the specified window "id" to the bottom of the stack so that it does not obscure any sibling w...
Definition: TVirtualX.cxx:1059
virtual void DeletePixmap(Pixmap_t pmap)
Explicitly deletes the pixmap resource "pmap".
Definition: TVirtualX.cxx:1427
virtual void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
Sets the dash-offset and dash-list attributes for dashed line styles in the specified GC...
Definition: TVirtualX.cxx:1492
Marker Attributes class.
Definition: TAttMarker.h:32
virtual void UnmapWindow(Window_t id)
Unmaps the specified window "id".
Definition: TVirtualX.cxx:1026
static const double x2[5]
Fill Area Attributes class.
Definition: TAttFill.h:32
Double_t x[n]
Definition: legend1.C:17
virtual void DispatchClientMessage(UInt_t messageID)
Force processing of event, sent by SendEvent before.
Definition: TVirtualX.cxx:1629
virtual Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height)
create pixmap from RGB data.
Definition: TVirtualX.cxx:2373
virtual void GetPlanes(Int_t &nplanes)
Returns the maximum number of planes.
Definition: TVirtualX.cxx:433
virtual 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)
Translates coordinates in one window to the coordinate space of another window.
Definition: TVirtualX.cxx:2028
virtual void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym)
Converts the keycode from the event structure to a key symbol (according to the modifiers specified i...
Definition: TVirtualX.cxx:2008
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
virtual Bool_t SetSelectionOwner(Window_t, Atom_t &)
Changes the owner and last-change time for the specified selection.
Definition: TVirtualX.cxx:2437
EDrawMode GetDrawMode()
Definition: TVirtualX.h:115
virtual void MapSubwindows(Window_t id)
Maps all subwindows for the specified window "id" in top-to-bottom stacking order.
Definition: TVirtualX.cxx:1007
const int ny
Definition: kalman.C:17
virtual Int_t GetScreen() const
Returns screen number.
Definition: TVirtualX.cxx:1237
Handle_t Atom_t
Definition: GuiTypes.h:38
virtual void GrabPointer(Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE, Bool_t owner_events=kTRUE)
Establishes an active pointer grab.
Definition: TVirtualX.cxx:1695
virtual void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Returns the location and the size of window "id".
Definition: TVirtualX.cxx:2045
virtual void SetWindowBackground(Window_t id, ULong_t color)
Sets the background of the window "id" to the specified color value "color".
Definition: TVirtualX.cxx:1147
virtual Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap, UInt_t width, UInt_t height)
Creates a bitmap (i.e.
Definition: TVirtualX.cxx:1418
ClassDef(TAttLine, 2)
virtual Int_t OpenPixmap(UInt_t w, UInt_t h)
Creates a pixmap of the width "w" and height "h" you specified.
Definition: TVirtualX.cxx:589
virtual Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist)
Returns the atom identifier associated with the specified "atom_name" string.
Definition: TVirtualX.cxx:1279
virtual void MapWindow(Window_t id)
Maps the window "id" and all of its subwindows that have had map requests.
Definition: TVirtualX.cxx:999
virtual Int_t GetFontDescent() const
Returns the descent of the current font (in pixels.
Definition: TVirtualX.cxx:494
virtual void RemoveWindow(ULong_t qwid)
Removes the created by Qt window "qwid".
Definition: TVirtualX.cxx:569
short Color_t
Definition: RtypesCore.h:79
virtual UInt_t ExecCommand(TGWin32Command *code)
Executes the command "code" coming from the other threads (Win32)
Definition: TVirtualX.cxx:370
virtual void SendEvent(Window_t id, Event_t *ev)
Specifies the event "ev" is to be sent to the window "id".
Definition: TVirtualX.cxx:1622
virtual void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic)
Draws a cell array.
Definition: TVirtualX.cxx:287
virtual void CloseWindow()
Deletes current window.
Definition: TVirtualX.cxx:183
virtual void QueryPointer(Int_t &ix, Int_t &iy)
Returns the pointer position.
Definition: TVirtualX.cxx:597
Definition: TPoint.h:33
virtual void DrawPolyMarker(Int_t n, TPoint *xy)
Draws "n" markers with the current attributes at position [x,y].
Definition: TVirtualX.cxx:329
virtual void DrawPolyLine(Int_t n, TPoint *xy)
Draws a line through all points in the list.
Definition: TVirtualX.cxx:319
point * points
Definition: X3DBuffer.c:20
virtual Double_t GetOpenGLScalingFactor()
On a HiDPI resolution it can be > 1., this means glViewport should use scaled width and height...
Definition: TVirtualX.cxx:205
virtual Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data)
Reads picture data from file "filename" and store it in "ret_data".
Definition: TVirtualX.cxx:1463
virtual void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Returns position and size of window "wid".
Definition: TVirtualX.cxx:399
virtual Window_t GetInputFocus()
Returns the window id of the window having the input focus.
Definition: TVirtualX.cxx:1952
virtual void SetLineType(Int_t n, Int_t *dash)
Sets the line type.
Definition: TVirtualX.cxx:811
virtual 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)
Combines the specified rectangle of "src" with the specified rectangle of "dest" according to the "gc...
Definition: TVirtualX.cxx:1539
virtual void CopyGC(GContext_t org, GContext_t dest, Mask_t mask)
Copies the specified components from the source GC "org" to the destination GC "dest".
Definition: TVirtualX.cxx:1347
virtual 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: ...
Definition: TVirtualX.cxx:2357
R__EXTERN TVirtualX * gGXBatch
Definition: TVirtualX.h:365
EMouseButton
Definition: GuiTypes.h:215
ROOT::R::TRInterface & r
Definition: Object.C:4
virtual Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h)
Registers a window created by Qt as a ROOT window.
Definition: TVirtualX.cxx:549
XPoint xy[kMAXMK]
Definition: TGX11.cxx:122
virtual void ResizeWindow(Int_t wid)
Resizes the window "wid" if necessary.
Definition: TVirtualX.cxx:685
virtual void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len)
Each character image, as defined by the font in the GC, is treated as an additional mask for a fill o...
Definition: TVirtualX.cxx:1807
Handle_t Visual_t
Definition: GuiTypes.h:29
virtual Bool_t AllocColor(Colormap_t cmap, ColorStruct_t &color)
Allocates a read-only colormap entry corresponding to the closest RGB value supported by the hardware...
Definition: TVirtualX.cxx:112
virtual Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
Definition: TVirtualX.cxx:519
Text Attributes class.
Definition: TAttText.h:32
virtual Bool_t CreatePictureFromData(Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
Creates a picture pict from data in bitmap format.
Definition: TVirtualX.cxx:1452
virtual void SetTextAlign(Short_t talign=11)
Sets the text alignment.
Definition: TVirtualX.cxx:889
virtual void ChangeActivePointerGrab(Window_t, UInt_t, Cursor_t)
Changes the specified dynamic parameters if the pointer is actively grabbed by the client and if the ...
Definition: TVirtualX.cxx:2422
virtual void SetTextMagnitude(Float_t mgn)
Sets the current text magnification factor to "mgn".
Definition: TVirtualX.cxx:924
virtual void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
Sets decoration style.
Definition: TVirtualX.cxx:1734
virtual Display_t GetDisplay() const
Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVi...
Definition: TVirtualX.cxx:1215
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt)
Fills the region closed by the specified path.
Definition: TVirtualX.cxx:2068
virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess)
Returns the size of the specified character string "mess".
Definition: TVirtualX.cxx:453
virtual void UnionRegion(Region_t rega, Region_t regb, Region_t result)
Computes the union of two regions.
Definition: TVirtualX.cxx:2176
virtual void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Gives the window manager minimum and maximum size hints of the window "id".
Definition: TVirtualX.cxx:1767
short Short_t
Definition: RtypesCore.h:35
virtual void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
Establishes a passive grab on the keyboard.
Definition: TVirtualX.cxx:1672
virtual void DeleteImage(Drawable_t img)
Deallocates the memory associated with the image img.
Definition: TVirtualX.cxx:2332
virtual Window_t GetWindowID(Int_t wid)
Returns the X11 window identifier.
Definition: TVirtualX.cxx:529
virtual Int_t EventsPending()
Returns the number of events that have been received from the X server but have not been removed from...
Definition: TVirtualX.cxx:1508
virtual void GetGCValues(GContext_t gc, GCValues_t &gval)
Returns the components specified by the mask in "gval" for the specified GC "gc" (see also the GCValu...
Definition: TVirtualX.cxx:1835
virtual void SetWMPosition(Window_t id, Int_t x, Int_t y)
Tells the window manager the desired position [x,y] of window "id".
Definition: TVirtualX.cxx:1742
virtual FontStruct_t GetGCFont(GContext_t gc)
Return the font associated with the graphics context gc.
Definition: TVirtualX.cxx:1843
virtual void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draws rectangle outlines of [x,y] [x+w,y] [x+w,y+h] [x,y+h].
Definition: TVirtualX.cxx:1912
virtual Int_t WriteGIF(char *name)
Writes the current window into GIF file.
Definition: TVirtualX.cxx:976
virtual void CreateOpenGLContext(Int_t wid=0)
Creates OpenGL context for window "wid".
Definition: TVirtualX.cxx:213
virtual void SetLineStyle(Style_t linestyle)
Sets the line style.
Definition: TVirtualX.cxx:824
virtual void SetPrimarySelectionOwner(Window_t id)
Makes the window "id" the current owner of the primary selection.
Definition: TVirtualX.cxx:1977
virtual void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
Sets color intensities the specified color index "cindex".
Definition: TVirtualX.cxx:877
virtual 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: TVirtualX.cxx:2430
virtual void ChangeProperty(Window_t id, Atom_t property, Atom_t type, UChar_t *data, Int_t len)
Alters the property for the specified window and causes the X server to generate a PropertyNotify eve...
Definition: TVirtualX.cxx:1571
virtual Bool_t EqualRegion(Region_t rega, Region_t regb)
Returns kTRUE if the two regions have the same offset, size, and shape.
Definition: TVirtualX.cxx:2233
virtual Colormap_t GetColormap() const
Returns handle to colormap.
Definition: TVirtualX.cxx:1257
virtual void DeleteGC(GContext_t gc)
Deletes the specified GC "gc".
Definition: TVirtualX.cxx:1354
virtual void GrabButton(Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE)
Establishes a passive grab on a certain mouse button.
Definition: TVirtualX.cxx:1683
virtual void RaiseWindow(Window_t id)
Raises the specified window to the top of the stack so that no sibling window obscures it...
Definition: TVirtualX.cxx:1051
Handle_t Colormap_t
Definition: GuiTypes.h:34
short Width_t
Definition: RtypesCore.h:78
virtual void SetOpacity(Int_t percent)
Sets opacity of the current window.
Definition: TVirtualX.cxx:867
virtual FontStruct_t LoadQueryFont(const char *font_name)
Provides the most common way for accessing a font: opens (loads) the specified font and returns a poi...
Definition: TVirtualX.cxx:1298
virtual FontStruct_t GetFontStruct(FontH_t fh)
Retrieves the associated font structure of the font specified font handle "fh".
Definition: TVirtualX.cxx:1854
virtual void GetRegionBox(Region_t reg, Rectangle_t *rect)
Returns smallest enclosing rectangle.
Definition: TVirtualX.cxx:2241
virtual void DestroyWindow(Window_t id)
Destroys the window "id" as well as all of its subwindows.
Definition: TVirtualX.cxx:1035
virtual void Update(Int_t mode=0)
Flushes (mode = 0, default) or synchronizes (mode = 1) X output buffer.
Definition: TVirtualX.cxx:2124
long Long_t
Definition: RtypesCore.h:50
virtual void FlushOpenGLBuffer(Handle_t ctx)
Flushes OpenGL buffer.
Definition: TVirtualX.cxx:259
virtual void SetWMState(Window_t id, EInitialState state)
Sets the initial state of the window "id": either kNormalState or kIconicState.
Definition: TVirtualX.cxx:1777
virtual Window_t GetParent(Window_t id) const
Returns the parent of the window "id".
Definition: TVirtualX.cxx:1288
virtual void IconifyWindow(Window_t id)
Iconifies the window "id".
Definition: TVirtualX.cxx:1107
static const double x1[5]
virtual Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h)
Resizes the specified pixmap "wid".
Definition: TVirtualX.cxx:677
virtual void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos)
Copies the pixmap "wid" at the position [xpos,ypos] in the current window.
Definition: TVirtualX.cxx:197
virtual Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color)
Looks up the string name of a color "cname" with respect to the screen associated with the specified ...
Definition: TVirtualX.cxx:89
double Double_t
Definition: RtypesCore.h:55
virtual void SetLineWidth(Width_t width)
Sets the line width.
Definition: TVirtualX.cxx:833
TText * text
virtual char ** ListFonts(const char *fontname, Int_t max, Int_t &count)
Returns list of font names matching fontname regexp, like "-*-times-*".
Definition: TVirtualX.cxx:2259
virtual void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel)
Overwrites the pixel in the image with the specified pixel value.
Definition: TVirtualX.cxx:2298
const int kNumCursors
Definition: TVirtualX.h:55
virtual void CloseDisplay()
Closes connection to display server and destroys all windows.
Definition: TVirtualX.cxx:1206
virtual void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
Fills the specified rectangle defined by [x,y] [x+w,y] [x+w,y+h] [x,y+h].
Definition: TVirtualX.cxx:1896
virtual Bool_t PointInRegion(Int_t x, Int_t y, Region_t reg)
Returns kTRUE if the point [x, y] is contained in the region reg.
Definition: TVirtualX.cxx:2225
int type
Definition: TGX11.cxx:120
virtual void Sync(Int_t mode)
Set synchronisation on or off.
Definition: TVirtualX.cxx:942
unsigned long ULong_t
Definition: RtypesCore.h:51
virtual void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask)
The Non-rectangular Window Shape Extension adds non-rectangular windows to the System.
Definition: TVirtualX.cxx:2384
TCanvas * style()
Definition: style.C:1
Double_t y[n]
Definition: legend1.C:17
virtual void UpdateWindow(Int_t mode)
Updates or synchronises client and server once (not permanent).
Definition: TVirtualX.cxx:954
virtual Region_t PolygonRegion(Point_t *points, Int_t np, Bool_t winding)
Returns a region for the polygon defined by the points array.
Definition: TVirtualX.cxx:2163
virtual void SetMarkerSize(Float_t markersize)
Sets marker size index.
Definition: TVirtualX.cxx:849
virtual void SetIconPixmap(Window_t id, Pixmap_t pix)
Sets the icon name pixmap.
Definition: TVirtualX.cxx:1719
virtual void SetDNDAware(Window_t, Atom_t *)
Add XdndAware property and the list of drag and drop types to the Window win.
Definition: TVirtualX.cxx:2454
virtual Window_t CreateOpenGLWindow(Window_t parentID, UInt_t width, UInt_t height, const std::vector< std::pair< UInt_t, Int_t > > &format)
Create window with special pixel format. Noop everywhere except Cocoa.
Definition: TVirtualX.cxx:227
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
Definition: vector.h:440
virtual void FreeFontNames(char **fontlist)
Frees the specified the array of strings "fontlist".
Definition: TVirtualX.cxx:2267
virtual void Warp(Int_t ix, Int_t iy, Window_t id=0)
Sets the pointer position.
Definition: TVirtualX.cxx:968
#define name(a, b)
Definition: linkTestLib0.cpp:5
#define org(otri, vertexptr)
Definition: triangle.c:1037
virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Draws a line.
Definition: TVirtualX.cxx:309
virtual void DeleteFont(FontStruct_t fs)
Explicitly deletes the font structure "fs" obtained via LoadQueryFont().
Definition: TVirtualX.cxx:1314
R__EXTERN Atom_t gMOTIF_WM_HINTS
Definition: TVirtualX.h:52
#define R__EXTERN
Definition: DllImport.h:27
Handle_t Window_t
Definition: GuiTypes.h:30
virtual Int_t GetDoubleBuffer(Int_t wid)
Queries the double buffer value for the window "wid".
Definition: TVirtualX.cxx:378
virtual Visual_t GetVisual() const
Returns handle to visual.
Definition: TVirtualX.cxx:1226
virtual void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height)
Returns the width and height of the image id.
Definition: TVirtualX.cxx:2285
virtual void GetWindowAttributes(Window_t id, WindowAttributes_t &attr)
The WindowAttributes_t structure is set to default.
Definition: TVirtualX.cxx:66
virtual void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname)
Writes the pixmap "wid" in the bitmap file "pxname".
Definition: TVirtualX.cxx:988
virtual void SetCharacterUp(Float_t chupx, Float_t chupy)
Sets character up vector.
Definition: TVirtualX.cxx:706
virtual Pixmap_t CreatePixmap(Drawable_t id, UInt_t w, UInt_t h)
Creates a pixmap of the specified width and height and returns a pixmap ID that identifies it...
Definition: TVirtualX.cxx:1386
virtual void SetMarkerStyle(Style_t markerstyle)
Sets marker style.
Definition: TVirtualX.cxx:856
virtual Bool_t MakeOpenGLContextCurrent(Handle_t ctx, Window_t windowID)
Makes context ctx current OpenGL context.
Definition: TVirtualX.cxx:243
#define dest(otri, vertexptr)
Definition: triangle.c:1040
virtual void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
Returns the font properties.
Definition: TVirtualX.cxx:1824
virtual void SetClipOFF(Int_t wid)
Turns off the clipping for the window "wid".
Definition: TVirtualX.cxx:713
virtual void SetCursor(Int_t win, ECursor cursor)
The cursor "cursor" will be used when the pointer is in the window "wid".
Definition: TVirtualX.cxx:733
Handle_t Region_t
Definition: GuiTypes.h:33
virtual void MapGCFont(GContext_t, FontStruct_t)
Map the XftFont with the Graphics Context using it.
Definition: TVirtualX.cxx:2503
virtual void SelectWindow(Int_t wid)
Selects the window "wid" to which subsequent output is directed.
Definition: TVirtualX.cxx:692
Handle_t Pixmap_t
Definition: GuiTypes.h:31
virtual Drawable_t CreateImage(UInt_t width, UInt_t height)
Allocates the memory needed for an drawable.
Definition: TVirtualX.cxx:2277
virtual void Bell(Int_t percent)
Sets the sound bell. Percent is loudness from -100% to 100%.
Definition: TVirtualX.cxx:1516
virtual 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)
Creates an unmapped subwindow for a specified parent window and returns the created window...
Definition: TVirtualX.cxx:1179
virtual void ClosePixmap()
Deletes current pixmap.
Definition: TVirtualX.cxx:190
virtual void SetWMTransientHint(Window_t id, Window_t main_id)
Tells window manager that the window "id" is a transient window of the window "main_id".
Definition: TVirtualX.cxx:1786
virtual void DestroyRegion(Region_t reg)
Destroys the region "reg".
Definition: TVirtualX.cxx:2139
double result[121]
virtual void BeginModalSessionFor(Window_t window)
Start a modal session for a dialog window.
Definition: TVirtualX.cxx:2486
unsigned char UChar_t
Definition: RtypesCore.h:34
virtual void SelectPixmap(Int_t qpixid)
Selects the pixmap "qpixid".
Definition: TVirtualX.cxx:699
virtual Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
Definition: TVirtualX.cxx:1612
virtual ULong_t GetPixel(Color_t cindex)
Returns pixel value associated to specified ROOT color number "cindex".
Definition: TVirtualX.cxx:425
virtual Bool_t Init(void *display=0)
Initializes the X system.
Definition: TVirtualX.cxx:168
virtual void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y)
If the specified window is mapped, ReparentWindow automatically performs an UnmapWindow request on it...
Definition: TVirtualX.cxx:1137
const Bool_t kTRUE
Definition: Rtypes.h:91
TVirtualX()
Definition: TVirtualX.h:82
virtual Handle_t GetNativeEvent() const
Returns the current native event handle.
Definition: TVirtualX.cxx:417
virtual void FreeFontStruct(FontStruct_t fs)
Frees the font structure "fs".
Definition: TVirtualX.cxx:1863
virtual Int_t SetTextFont(char *fontname, ETextSetMode mode)
Sets text font to specified name "fontname".This function returns 0 if the specified font is found...
Definition: TVirtualX.cxx:909
virtual UInt_t ScreenWidthMM() const
Returns the width of the screen in millimeters.
Definition: TVirtualX.cxx:2391
virtual void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist)
Add the list of drag and drop types to the Window win.
Definition: TVirtualX.cxx:2461
virtual ~TVirtualX()
Definition: TVirtualX.h:84
float value
Definition: math.cpp:443
virtual void SetKeyAutoRepeat(Bool_t on=kTRUE)
Turns key auto repeat on (kTRUE) or off (kFALSE).
Definition: TVirtualX.cxx:1643
virtual void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg)
Draws multiple line segments.
Definition: TVirtualX.cxx:1934
virtual void SetIconName(Window_t id, char *name)
Sets the window icon name.
Definition: TVirtualX.cxx:1712
virtual Int_t InitWindow(ULong_t window)
Creates a new window and return window number.
Definition: TVirtualX.cxx:538
virtual void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
Sets clipping rectangles in graphics context.
Definition: TVirtualX.cxx:2114
const Int_t n
Definition: legend1.C:16
virtual void QueryColor(Colormap_t cmap, ColorStruct_t &color)
Returns the current RGB value for the pixel in the "color" structure.
Definition: TVirtualX.cxx:127
virtual void SetWindowName(Window_t id, char *name)
Sets the window name.
Definition: TVirtualX.cxx:1705
Line Attributes class.
Definition: TAttLine.h:32
virtual 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: TVirtualX.cxx:2411
virtual void FreeColor(Colormap_t cmap, ULong_t pixel)
Frees color cell with specified pixel value.
Definition: TVirtualX.cxx:1500
virtual Int_t KeysymToKeycode(UInt_t keysym)
Converts the "keysym" to the appropriate keycode.
Definition: TVirtualX.cxx:1881
virtual void ClearWindow()
Clears the entire area of the current window.
Definition: TVirtualX.cxx:176
virtual void SetInputFocus(Window_t id)
Changes the input focus to specified window "id".
Definition: TVirtualX.cxx:1960
R__EXTERN Atom_t gROOT_MESSAGE
Definition: TVirtualX.h:53
virtual void DestroySubwindows(Window_t id)
The DestroySubwindows function destroys all inferior windows of the specified window, in bottom-to-top stacking order.
Definition: TVirtualX.cxx:1043
virtual Cursor_t CreateCursor(ECursor cursor)
Creates the specified cursor.
Definition: TVirtualX.cxx:1369
virtual void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
Draws a box between [x1,y1] and [x2,y2] according to the "mode".
Definition: TVirtualX.cxx:272
virtual Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h)
Registers a pixmap created by TGLManager as a ROOT pixmap.
Definition: TVirtualX.cxx:560
ULong_t Handle_t
Definition: GuiTypes.h:27