Logo ROOT   6.16/01
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#include "TNamed.h"
31#include "TAttLine.h"
32#include "TAttFill.h"
33#include "TAttText.h"
34#include "TAttMarker.h"
35#include "GuiTypes.h"
36
37
38// WM Atoms are initialized in TGClient
42
43const int kNumCursors = 19;
48
49class TPoint;
50class TString;
51class TGWin32Command;
52
53class TVirtualX : public TNamed, public TAttLine, public TAttFill, public TAttText, public TAttMarker {
54
55public:
56 enum EDrawMode { kCopy = 1, kXor, kInvert };
60
61protected:
62 EDrawMode fDrawMode; //Drawing mode
63
64public:
66 TVirtualX(const char *name, const char *title);
67 virtual ~TVirtualX() { }
68
69 virtual Bool_t Init(void *display=0);
70 virtual void ClearWindow();
71 virtual void ClosePixmap();
72 virtual void CloseWindow();
73 virtual void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos);
74 virtual void CreateOpenGLContext(Int_t wid=0);
75 virtual void DeleteOpenGLContext(Int_t wid=0);
76
77 //---- OpenGL related stuff, required only with R__HAS_COCOA ----
79 virtual Window_t CreateOpenGLWindow(Window_t parentID, UInt_t width, UInt_t height, const std::vector<std::pair<UInt_t, Int_t> > &format);
80 virtual Handle_t CreateOpenGLContext(Window_t windowID, Handle_t sharedContext);
81 virtual Bool_t MakeOpenGLContextCurrent(Handle_t ctx, Window_t windowID);
83 virtual void FlushOpenGLBuffer(Handle_t ctx);
84
85 virtual void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode);
86 virtual void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2,
87 Int_t nx, Int_t ny, Int_t *ic);
88 virtual void DrawFillArea(Int_t n, TPoint *xy);
89 virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2);
90 virtual void DrawPolyLine(Int_t n, TPoint *xy);
91 virtual void DrawPolyMarker(Int_t n, TPoint *xy);
92 virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text,
93 ETextMode mode);
94 virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const wchar_t *text,
95 ETextMode mode);
96 virtual UInt_t ExecCommand(TGWin32Command *code);
97 virtual void GetCharacterUp(Float_t &chupx, Float_t &chupy);
99 virtual Int_t GetDoubleBuffer(Int_t wid);
100 virtual void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
101 virtual const char *DisplayName(const char * = 0);
102 virtual Handle_t GetNativeEvent() const;
103 virtual ULong_t GetPixel(Color_t cindex);
104 virtual void GetPlanes(Int_t &nplanes);
105 virtual void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b);
106 virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess);
107 virtual void GetTextExtent(UInt_t &w, UInt_t &h, wchar_t *mess);
108 virtual Int_t GetFontAscent() const;
109 virtual Int_t GetFontAscent(const char *mess) const;
110 virtual Int_t GetFontDescent() const;
111 virtual Int_t GetFontDescent(const char *mess) const;
112 virtual Float_t GetTextMagnitude();
113 virtual Window_t GetWindowID(Int_t wid);
114 virtual Bool_t HasTTFonts() const;
115 virtual Int_t InitWindow(ULong_t window);
116 virtual Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h);
117 virtual Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h);
118 virtual void RemoveWindow(ULong_t qwid);
119 virtual void MoveWindow(Int_t wid, Int_t x, Int_t y);
120 virtual Int_t OpenPixmap(UInt_t w, UInt_t h);
121 virtual void QueryPointer(Int_t &ix, Int_t &iy);
122 virtual Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char *file, Window_t id=0);
123 virtual Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y);
124 virtual Int_t RequestString(Int_t x, Int_t y, char *text);
125 virtual void RescaleWindow(Int_t wid, UInt_t w, UInt_t h);
126 virtual Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h);
127 virtual void ResizeWindow(Int_t wid);
128 virtual void SelectWindow(Int_t wid);
129 virtual void SelectPixmap(Int_t qpixid);
130 virtual void SetCharacterUp(Float_t chupx, Float_t chupy);
131 virtual void SetClipOFF(Int_t wid);
132 virtual void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h);
133 virtual void SetCursor(Int_t win, ECursor cursor);
134 virtual void SetDoubleBuffer(Int_t wid, Int_t mode);
135 virtual void SetDoubleBufferOFF();
136 virtual void SetDoubleBufferON();
137 virtual void SetDrawMode(EDrawMode mode);
138 virtual void SetFillColor(Color_t cindex);
139 virtual void SetFillStyle(Style_t style);
140 virtual void SetLineColor(Color_t cindex);
141 virtual void SetLineType(Int_t n, Int_t *dash);
142 virtual void SetLineStyle(Style_t linestyle);
143 virtual void SetLineWidth(Width_t width);
144 virtual void SetMarkerColor(Color_t cindex);
145 virtual void SetMarkerSize(Float_t markersize);
146 virtual void SetMarkerStyle(Style_t markerstyle);
147 virtual void SetOpacity(Int_t percent);
148 virtual void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b);
149 virtual void SetTextAlign(Short_t talign=11);
150 virtual void SetTextColor(Color_t cindex);
151 virtual Int_t SetTextFont(char *fontname, ETextSetMode mode);
152 virtual void SetTextFont(Font_t fontnumber);
153 virtual void SetTextMagnitude(Float_t mgn);
154 virtual void SetTextSize(Float_t textsize);
155 virtual void Sync(Int_t mode);
156 virtual void UpdateWindow(Int_t mode);
157 virtual void Warp(Int_t ix, Int_t iy, Window_t id = 0);
158 virtual Int_t WriteGIF(char *name);
159 virtual void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname);
160 virtual Window_t GetCurrentWindow() const;
161 virtual Int_t SupportsExtension(const char *ext) const;
162
163 //---- Methods used for GUI -----
164 virtual void GetWindowAttributes(Window_t id, WindowAttributes_t &attr);
165 virtual void MapWindow(Window_t id);
166 virtual void MapSubwindows(Window_t id);
167 virtual void MapRaised(Window_t id);
168 virtual void UnmapWindow(Window_t id);
169 virtual void DestroyWindow(Window_t id);
170 virtual void DestroySubwindows(Window_t id);
171 virtual void RaiseWindow(Window_t id);
172 virtual void LowerWindow(Window_t id);
173 virtual void MoveWindow(Window_t id, Int_t x, Int_t y);
174 virtual void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h);
175 virtual void ResizeWindow(Window_t id, UInt_t w, UInt_t h);
176 virtual void IconifyWindow(Window_t id);
177 virtual Bool_t NeedRedraw(ULong_t tgwindow, Bool_t force);
178 virtual void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y);
179 virtual void SetWindowBackground(Window_t id, ULong_t color);
180 virtual void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm);
181 virtual Window_t CreateWindow(Window_t parent, Int_t x, Int_t y,
182 UInt_t w, UInt_t h, UInt_t border,
183 Int_t depth, UInt_t clss,
184 void *visual, SetWindowAttributes_t *attr,
185 UInt_t wtype);
186 virtual Int_t OpenDisplay(const char *dpyName);
187 virtual void CloseDisplay();
188 virtual Display_t GetDisplay() const;
189 virtual Visual_t GetVisual() const;
190 virtual Int_t GetScreen() const;
191 virtual Int_t GetDepth() const;
192 virtual UInt_t ScreenWidthMM() const;
193 virtual Colormap_t GetColormap() const;
194 virtual Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist);
195 virtual Window_t GetDefaultRootWindow() const;
196 virtual Window_t GetParent(Window_t id) const;
197 virtual FontStruct_t LoadQueryFont(const char *font_name);
199 virtual void DeleteFont(FontStruct_t fs);
200 virtual GContext_t CreateGC(Drawable_t id, GCValues_t *gval);
201 virtual void ChangeGC(GContext_t gc, GCValues_t *gval);
202 virtual void CopyGC(GContext_t org, GContext_t dest, Mask_t mask);
203 virtual void DeleteGC(GContext_t gc);
204 virtual Cursor_t CreateCursor(ECursor cursor);
205 virtual void SetCursor(Window_t id, Cursor_t curid);
207 virtual Pixmap_t CreatePixmap(Drawable_t id, const char *bitmap, UInt_t width,
208 UInt_t height, ULong_t forecolor, ULong_t backcolor,
209 Int_t depth);
210 virtual Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap,
211 UInt_t width, UInt_t height);
212 virtual void DeletePixmap(Pixmap_t pmap);
213 virtual Bool_t CreatePictureFromFile(Drawable_t id, const char *filename,
214 Pixmap_t &pict, Pixmap_t &pict_mask,
215 PictureAttributes_t &attr);
216 virtual Bool_t CreatePictureFromData(Drawable_t id, char **data,
217 Pixmap_t &pict, Pixmap_t &pict_mask,
218 PictureAttributes_t &attr);
219 virtual Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height);
220 virtual Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data);
221 virtual void DeletePictureData(void *data);
222 virtual void SetDashes(GContext_t gc, Int_t offset, const char *dash_list,
223 Int_t n);
224 virtual Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color);
225 virtual Bool_t AllocColor(Colormap_t cmap, ColorStruct_t &color);
226 virtual void QueryColor(Colormap_t cmap, ColorStruct_t &color);
227 virtual void FreeColor(Colormap_t cmap, ULong_t pixel);
228 virtual Int_t EventsPending();
229 virtual void NextEvent(Event_t &event);
230 virtual void Bell(Int_t percent);
231 virtual void CopyArea(Drawable_t src, Drawable_t dest, GContext_t gc,
232 Int_t src_x, Int_t src_y, UInt_t width,
233 UInt_t height, Int_t dest_x, Int_t dest_y);
235 virtual void ChangeProperty(Window_t id, Atom_t property, Atom_t type,
236 UChar_t *data, Int_t len);
237 virtual void DrawLine(Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2);
238 virtual void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h);
240 virtual void SendEvent(Window_t id, Event_t *ev);
241 virtual void DispatchClientMessage(UInt_t messageID);
242 virtual void WMDeleteNotify(Window_t id);
243 virtual void SetKeyAutoRepeat(Bool_t on = kTRUE);
244 virtual void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab = kTRUE);
245 virtual void GrabButton(Window_t id, EMouseButton button, UInt_t modifier,
246 UInt_t evmask, Window_t confine, Cursor_t cursor,
247 Bool_t grab = kTRUE);
248 virtual void GrabPointer(Window_t id, UInt_t evmask, Window_t confine,
249 Cursor_t cursor, Bool_t grab = kTRUE,
250 Bool_t owner_events = kTRUE);
251 virtual void SetWindowName(Window_t id, char *name);
252 virtual void SetIconName(Window_t id, char *name);
253 virtual void SetIconPixmap(Window_t id, Pixmap_t pix);
254 virtual void SetClassHints(Window_t id, char *className, char *resourceName);
255 virtual void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input);
256 virtual void SetWMPosition(Window_t id, Int_t x, Int_t y);
257 virtual void SetWMSize(Window_t id, UInt_t w, UInt_t h);
258 virtual void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin,
259 UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc);
260 virtual void SetWMState(Window_t id, EInitialState state);
261 virtual void SetWMTransientHint(Window_t id, Window_t main_id);
262 virtual void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
263 const char *s, Int_t len);
264 virtual Int_t TextWidth(FontStruct_t font, const char *s, Int_t len);
265 virtual void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent);
266 virtual void GetGCValues(GContext_t gc, GCValues_t &gval);
269 virtual void FreeFontStruct(FontStruct_t fs);
270 virtual void ClearWindow(Window_t id);
271 virtual Int_t KeysymToKeycode(UInt_t keysym);
272 virtual void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
273 UInt_t w, UInt_t h);
274 virtual void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
275 UInt_t w, UInt_t h);
276 virtual void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg);
277 virtual void SelectInput(Window_t id, UInt_t evmask);
278 virtual Window_t GetInputFocus();
279 virtual void SetInputFocus(Window_t id);
281 virtual void SetPrimarySelectionOwner(Window_t id);
282 virtual void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when);
283 virtual void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym);
284 virtual void GetPasteBuffer(Window_t id, Atom_t atom, TString &text, Int_t &nchar,
285 Bool_t del);
286 virtual void TranslateCoordinates(Window_t src, Window_t dest, Int_t src_x,Int_t src_y,
287 Int_t &dest_x, Int_t &dest_y, Window_t &child);
288 virtual void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
289 virtual void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt);
290 virtual void QueryPointer(Window_t id, Window_t &rootw, Window_t &childw,
291 Int_t &root_x, Int_t &root_y, Int_t &win_x,
292 Int_t &win_y, UInt_t &mask);
293 virtual void SetForeground(GContext_t gc, ULong_t foreground);
294 virtual void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n);
295 virtual void Update(Int_t mode = 0);
296 virtual Region_t CreateRegion();
297 virtual void DestroyRegion(Region_t reg);
298 virtual void UnionRectWithRegion(Rectangle_t *rect, Region_t src, Region_t dest);
299 virtual Region_t PolygonRegion(Point_t *points, Int_t np, Bool_t winding);
300 virtual void UnionRegion(Region_t rega, Region_t regb, Region_t result);
301 virtual void IntersectRegion(Region_t rega, Region_t regb, Region_t result);
302 virtual void SubtractRegion(Region_t rega, Region_t regb, Region_t result);
303 virtual void XorRegion(Region_t rega, Region_t regb, Region_t result);
304 virtual Bool_t EmptyRegion(Region_t reg);
305 virtual Bool_t PointInRegion(Int_t x, Int_t y, Region_t reg);
306 virtual Bool_t EqualRegion(Region_t rega, Region_t regb);
307 virtual void GetRegionBox(Region_t reg, Rectangle_t *rect);
308 virtual char **ListFonts(const char *fontname, Int_t max, Int_t &count);
309 virtual void FreeFontNames(char **fontlist);
310 virtual Drawable_t CreateImage(UInt_t width, UInt_t height);
311 virtual void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height);
312 virtual void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel);
313 virtual void PutImage(Drawable_t id, GContext_t gc, Drawable_t img, Int_t dx, Int_t dy,
314 Int_t x, Int_t y, UInt_t w, UInt_t h);
315 virtual void DeleteImage(Drawable_t img);
316 virtual unsigned char *GetColorBits(Drawable_t wid, Int_t x = 0, Int_t y = 0, UInt_t w = 0, UInt_t h = 0);
317 virtual void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask);
318
319 //---- Drag and Drop -----
320 virtual void DeleteProperty(Window_t, Atom_t&);
322 Atom_t*, Int_t*, ULong_t*, ULong_t*, unsigned char**);
324 virtual void ConvertSelection(Window_t, Atom_t&, Atom_t&, Atom_t&, Time_t&);
326 virtual void ChangeProperties(Window_t id, Atom_t property, Atom_t type,
327 Int_t format, UChar_t *data, Int_t len);
328 virtual void SetDNDAware(Window_t, Atom_t *);
329 virtual void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist);
330 virtual Window_t FindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd);
331 virtual Bool_t IsDNDAware(Window_t win, Atom_t *typelist);
332
333 virtual void BeginModalSessionFor(Window_t window);
334
335 virtual Bool_t IsCmdThread() const { return kTRUE; }
336
337 virtual void MapGCFont(GContext_t, FontStruct_t);
338
339 static TVirtualX *&Instance();
340
341 ClassDef(TVirtualX,0) //ABC defining a generic interface to graphics system
342};
343
344#ifndef __CINT__
345#define gVirtualX (TVirtualX::Instance())
346R__EXTERN TVirtualX *(*gPtr2VirtualX)();
347#endif
349
350#endif
#define R__EXTERN
Definition: DllImport.h:27
EGEventType
Definition: GuiTypes.h:58
Handle_t Cursor_t
Definition: GuiTypes.h:33
ULong_t Handle_t
Definition: GuiTypes.h:25
Handle_t FontH_t
Definition: GuiTypes.h:34
Handle_t Visual_t
Definition: GuiTypes.h:27
Handle_t Display_t
Definition: GuiTypes.h:26
Handle_t Pixmap_t
Definition: GuiTypes.h:29
ULong_t Time_t
Definition: GuiTypes.h:41
EInitialState
Definition: GuiTypes.h:344
Handle_t Drawable_t
Definition: GuiTypes.h:30
Handle_t Colormap_t
Definition: GuiTypes.h:32
Handle_t Atom_t
Definition: GuiTypes.h:36
Handle_t GContext_t
Definition: GuiTypes.h:37
UInt_t Mask_t
Definition: GuiTypes.h:40
Handle_t Region_t
Definition: GuiTypes.h:31
Handle_t FontStruct_t
Definition: GuiTypes.h:38
EMouseButton
Definition: GuiTypes.h:213
Handle_t Window_t
Definition: GuiTypes.h:28
ROOT::R::TRInterface & r
Definition: Object.C:4
#define b(i)
Definition: RSha256.hxx:100
#define g(i)
Definition: RSha256.hxx:105
#define h(i)
Definition: RSha256.hxx:106
static const double x2[5]
static const double x1[5]
int Int_t
Definition: RtypesCore.h:41
unsigned char UChar_t
Definition: RtypesCore.h:34
unsigned int UInt_t
Definition: RtypesCore.h:42
unsigned long ULong_t
Definition: RtypesCore.h:51
long Long_t
Definition: RtypesCore.h:50
short Width_t
Definition: RtypesCore.h:78
bool Bool_t
Definition: RtypesCore.h:59
short Font_t
Definition: RtypesCore.h:75
short Short_t
Definition: RtypesCore.h:35
double Double_t
Definition: RtypesCore.h:55
short Color_t
Definition: RtypesCore.h:79
short Style_t
Definition: RtypesCore.h:76
float Float_t
Definition: RtypesCore.h:53
const Bool_t kTRUE
Definition: RtypesCore.h:87
#define ClassDef(name, id)
Definition: Rtypes.h:324
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
int type
Definition: TGX11.cxx:120
XPoint xy[kMAXMK]
Definition: TGX11.cxx:122
R__EXTERN Atom_t gROOT_MESSAGE
Definition: TVirtualX.h:41
R__EXTERN TVirtualX * gGXBatch
Definition: TVirtualX.h:348
R__EXTERN Atom_t gMOTIF_WM_HINTS
Definition: TVirtualX.h:40
ECursor
Definition: TVirtualX.h:44
@ kRightSide
Definition: TVirtualX.h:45
@ kBottomSide
Definition: TVirtualX.h:45
@ kArrowRight
Definition: TVirtualX.h:47
@ kTopLeft
Definition: TVirtualX.h:44
@ kBottomRight
Definition: TVirtualX.h:44
@ kArrowVer
Definition: TVirtualX.h:46
@ kCaret
Definition: TVirtualX.h:47
@ kTopSide
Definition: TVirtualX.h:45
@ kLeftSide
Definition: TVirtualX.h:45
@ kWatch
Definition: TVirtualX.h:47
@ kMove
Definition: TVirtualX.h:46
@ kTopRight
Definition: TVirtualX.h:44
@ kBottomLeft
Definition: TVirtualX.h:44
@ kHand
Definition: TVirtualX.h:46
@ kCross
Definition: TVirtualX.h:46
@ kRotate
Definition: TVirtualX.h:46
@ kNoDrop
Definition: TVirtualX.h:47
@ kArrowHor
Definition: TVirtualX.h:46
@ kPointer
Definition: TVirtualX.h:47
R__EXTERN Atom_t gWM_DELETE_WINDOW
Definition: TVirtualX.h:39
const int kNumCursors
Definition: TVirtualX.h:43
point * points
Definition: X3DBuffer.c:22
Fill Area Attributes class.
Definition: TAttFill.h:19
Line Attributes class.
Definition: TAttLine.h:18
Marker Attributes class.
Definition: TAttMarker.h:19
Text Attributes class.
Definition: TAttText.h:18
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
Definition: TPoint.h:31
Basic string class.
Definition: TString.h:131
Semi-Abstract base class defining a generic interface to the underlying, low level,...
Definition: TVirtualX.h:53
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:1897
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:113
virtual Int_t WriteGIF(char *name)
Writes the current window into GIF file.
Definition: TVirtualX.cxx:977
virtual void DestroyWindow(Window_t id)
Destroys the window "id" as well as all of its subwindows.
Definition: TVirtualX.cxx:1036
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:228
virtual void DispatchClientMessage(UInt_t messageID)
Force processing of event, sent by SendEvent before.
Definition: TVirtualX.cxx:1630
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:1836
virtual Handle_t GetCurrentOpenGLContext()
Asks OpenGL subsystem about the current OpenGL context.
Definition: TVirtualX.cxx:252
virtual void DrawPolyLine(Int_t n, TPoint *xy)
Draws a line through all points in the list.
Definition: TVirtualX.cxx:320
TVirtualX()
Definition: TVirtualX.h:65
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:1148
virtual Int_t KeysymToKeycode(UInt_t keysym)
Converts the "keysym" to the appropriate keycode.
Definition: TVirtualX.cxx:1882
virtual void SetPrimarySelectionOwner(Window_t id)
Makes the window "id" the current owner of the primary selection.
Definition: TVirtualX.cxx:1978
virtual void DeleteImage(Drawable_t img)
Deallocates the memory associated with the image img.
Definition: TVirtualX.cxx:2333
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:1787
virtual void SetTextMagnitude(Float_t mgn)
Sets the current text magnification factor to "mgn".
Definition: TVirtualX.cxx:925
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:1017
virtual void SetOpacity(Int_t percent)
Sets opacity of the current window.
Definition: TVirtualX.cxx:868
virtual void DeleteFont(FontStruct_t fs)
Explicitly deletes the font structure "fs" obtained via LoadQueryFont().
Definition: TVirtualX.cxx:1315
virtual Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap, UInt_t width, UInt_t height)
Creates a bitmap (i.e.
Definition: TVirtualX.cxx:1419
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:2431
virtual ~TVirtualX()
Definition: TVirtualX.h:67
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:1696
virtual Bool_t IsCmdThread() const
Definition: TVirtualX.h:335
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:561
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:2423
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:590
virtual void UnmapWindow(Window_t id)
Unmaps the specified window "id".
Definition: TVirtualX.cxx:1027
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:878
virtual void FreeFontStruct(FontStruct_t fs)
Frees the font structure "fs".
Definition: TVirtualX.cxx:1864
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:2324
EDrawMode GetDrawMode()
Definition: TVirtualX.h:98
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:2069
virtual FontStruct_t GetGCFont(GContext_t gc)
Return the font associated with the graphics context gc.
Definition: TVirtualX.cxx:1844
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:2210
virtual void SetClipOFF(Int_t wid)
Turns off the clipping for the window "wid".
Definition: TVirtualX.cxx:714
virtual void FlushOpenGLBuffer(Handle_t ctx)
Flushes OpenGL buffer.
Definition: TVirtualX.cxx:260
virtual void DeleteOpenGLContext(Int_t wid=0)
Deletes OpenGL context for window "wid".
Definition: TVirtualX.cxx:221
virtual Colormap_t GetColormap() const
Returns handle to colormap.
Definition: TVirtualX.cxx:1258
virtual void SetTextSize(Float_t textsize)
Sets the current text size to "textsize".
Definition: TVirtualX.cxx:932
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:1299
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:2462
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:2402
virtual Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
Definition: TVirtualX.cxx:520
virtual Cursor_t CreateCursor(ECursor cursor)
Creates the specified cursor.
Definition: TVirtualX.cxx:1370
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:2009
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:1684
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:1052
virtual Float_t GetTextMagnitude()
Returns the current font magnification factor.
Definition: TVirtualX.cxx:512
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:1156
virtual void GetCharacterUp(Float_t &chupx, Float_t &chupy)
Returns character up vector.
Definition: TVirtualX.cxx:387
virtual void SelectInput(Window_t id, UInt_t evmask)
Defines which input events the window is interested in.
Definition: TVirtualX.cxx:1946
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:1216
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:2234
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:1453
virtual void SetIconPixmap(Window_t id, Pixmap_t pix)
Sets the icon name pixmap.
Definition: TVirtualX.cxx:1720
virtual Bool_t SetSelectionOwner(Window_t, Atom_t &)
Changes the owner and last-change time for the specified selection.
Definition: TVirtualX.cxx:2438
virtual void SetTextColor(Color_t cindex)
Sets the color index "cindex" for text.
Definition: TVirtualX.cxx:897
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:725
virtual void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height)
Returns the width and height of the image id.
Definition: TVirtualX.cxx:2286
virtual Window_t GetDefaultRootWindow() const
Returns handle to the default root window created when calling XOpenDisplay().
Definition: TVirtualX.cxx:1267
virtual Bool_t EmptyRegion(Region_t reg)
Returns kTRUE if the region reg is empty.
Definition: TVirtualX.cxx:2218
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:2496
virtual void BeginModalSessionFor(Window_t window)
Start a modal session for a dialog window.
Definition: TVirtualX.cxx:2487
virtual void SetLineColor(Color_t cindex)
Sets color index "cindex" for drawing lines.
Definition: TVirtualX.cxx:798
virtual void DeletePixmap(Pixmap_t pmap)
Explicitly deletes the pixmap resource "pmap".
Definition: TVirtualX.cxx:1428
virtual void SetClassHints(Window_t id, char *className, char *resourceName)
Sets the windows class and resource name.
Definition: TVirtualX.cxx:1727
virtual FontH_t GetFontHandle(FontStruct_t fs)
Returns the font handle of the specified font structure "fs".
Definition: TVirtualX.cxx:1307
EDrawMode fDrawMode
Definition: TVirtualX.h:62
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:288
virtual void ResizeWindow(Int_t wid)
Resizes the window "wid" if necessary.
Definition: TVirtualX.cxx:686
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:1493
virtual void Warp(Int_t ix, Int_t iy, Window_t id=0)
Sets the pointer position.
Definition: TVirtualX.cxx:969
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:2412
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:1913
virtual Drawable_t CreateImage(UInt_t width, UInt_t height)
Allocates the memory needed for an drawable.
Definition: TVirtualX.cxx:2278
virtual Int_t GetDoubleBuffer(Int_t wid)
Queries the double buffer value for the window "wid".
Definition: TVirtualX.cxx:379
virtual void SetDoubleBuffer(Int_t wid, Int_t mode)
Sets the double buffer on/off on the window "wid".
Definition: TVirtualX.cxx:747
virtual Int_t GetScreen() const
Returns screen number.
Definition: TVirtualX.cxx:1238
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:1060
virtual void CreateOpenGLContext(Int_t wid=0)
Creates OpenGL context for window "wid".
Definition: TVirtualX.cxx:214
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:2046
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:1603
virtual void MapSubwindows(Window_t id)
Maps all subwindows for the specified window "id" in top-to-bottom stacking order.
Definition: TVirtualX.cxx:1008
virtual void FreeFontNames(char **fontlist)
Frees the specified the array of strings "fontlist".
Definition: TVirtualX.cxx:2268
virtual Window_t GetInputFocus()
Returns the window id of the window having the input focus.
Definition: TVirtualX.cxx:1953
virtual void ClosePixmap()
Deletes current pixmap.
Definition: TVirtualX.cxx:191
virtual void SetInputFocus(Window_t id)
Changes the input focus to specified window "id".
Definition: TVirtualX.cxx:1961
virtual void SetWMState(Window_t id, EInitialState state)
Sets the initial state of the window "id": either kNormalState or kIconicState.
Definition: TVirtualX.cxx:1778
virtual void Update(Int_t mode=0)
Flushes (mode = 0, default) or synchronizes (mode = 1) X output buffer.
Definition: TVirtualX.cxx:2125
virtual Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
Requests Locator position.
Definition: TVirtualX.cxx:641
virtual UInt_t ExecCommand(TGWin32Command *code)
Executes the command "code" coming from the other threads (Win32)
Definition: TVirtualX.cxx:371
virtual void SendEvent(Window_t id, Event_t *ev)
Specifies the event "ev" is to be sent to the window "id".
Definition: TVirtualX.cxx:1623
virtual Int_t GetFontAscent() const
Returns the ascent of the current font (in pixels).
Definition: TVirtualX.cxx:476
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:2105
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:273
virtual FontStruct_t GetFontStruct(FontH_t fh)
Retrieves the associated font structure of the font specified font handle "fh".
Definition: TVirtualX.cxx:1855
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:1464
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:550
virtual void UpdateWindow(Int_t mode)
Updates or synchronises client and server once (not permanent).
Definition: TVirtualX.cxx:955
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:734
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:1348
virtual void CloseWindow()
Deletes current window.
Definition: TVirtualX.cxx:184
virtual void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
Rescales the window "wid".
Definition: TVirtualX.cxx:668
virtual Int_t OpenDisplay(const char *dpyName)
Opens connection to display server (if such a thing exist on the current platform).
Definition: TVirtualX.cxx:1199
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:910
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:655
virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess)
Returns the size of the specified character string "mess".
Definition: TVirtualX.cxx:454
virtual ULong_t GetPixel(Color_t cindex)
Returns pixel value associated to specified ROOT color number "cindex".
Definition: TVirtualX.cxx:426
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:2447
virtual Bool_t Init(void *display=0)
Initializes the X system.
Definition: TVirtualX.cxx:169
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:2455
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:1768
virtual void GetWindowAttributes(Window_t id, WindowAttributes_t &attr)
The WindowAttributes_t structure is set to default.
Definition: TVirtualX.cxx:67
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:1438
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:90
virtual Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h)
Resizes the specified pixmap "wid".
Definition: TVirtualX.cxx:678
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:2470
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:2029
virtual Double_t GetOpenGLScalingFactor()
On a HiDPI resolution it can be > 1., this means glViewport should use scaled width and height.
Definition: TVirtualX.cxx:206
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:1138
virtual void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg)
Draws multiple line segments.
Definition: TVirtualX.cxx:1935
virtual void CloseDisplay()
Closes connection to display server and destroys all windows.
Definition: TVirtualX.cxx:1207
virtual void DeletePictureData(void *data)
Delete picture data created by the function ReadPictureDataFromFile.
Definition: TVirtualX.cxx:1473
static TVirtualX *& Instance()
Returns gVirtualX global.
Definition: TVirtualX.cxx:57
virtual void UnionRegion(Region_t rega, Region_t regb, Region_t result)
Computes the union of two regions.
Definition: TVirtualX.cxx:2177
virtual void SetWindowName(Window_t id, char *name)
Sets the window name.
Definition: TVirtualX.cxx:1706
virtual void Bell(Int_t percent)
Sets the sound bell. Percent is loudness from -100% to 100%.
Definition: TVirtualX.cxx:1517
virtual void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
Returns the font properties.
Definition: TVirtualX.cxx:1825
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:2226
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:198
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:1387
virtual Int_t GetFontDescent() const
Returns the descent of the current font (in pixels.
Definition: TVirtualX.cxx:495
virtual void SetDoubleBufferOFF()
Turns double buffer mode off.
Definition: TVirtualX.cxx:754
virtual void GetPlanes(Int_t &nplanes)
Returns the maximum number of planes.
Definition: TVirtualX.cxx:434
virtual void SetKeyAutoRepeat(Bool_t on=kTRUE)
Turns key auto repeat on (kTRUE) or off (kFALSE).
Definition: TVirtualX.cxx:1644
virtual void SetMarkerColor(Color_t cindex)
Sets color index "cindex" for markers.
Definition: TVirtualX.cxx:841
virtual void SetTextAlign(Short_t talign=11)
Sets the text alignment.
Definition: TVirtualX.cxx:890
virtual void DrawPolyMarker(Int_t n, TPoint *xy)
Draws "n" markers with the current attributes at position [x,y].
Definition: TVirtualX.cxx:330
virtual void SetWMSize(Window_t id, UInt_t w, UInt_t h)
Tells window manager the desired size of window "id".
Definition: TVirtualX.cxx:1754
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:1554
virtual void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b)
Returns RGB values for color "index".
Definition: TVirtualX.cxx:442
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:158
virtual Handle_t GetNativeEvent() const
Returns the current native event handle.
Definition: TVirtualX.cxx:418
virtual void SetIconName(Window_t id, char *name)
Sets the window icon name.
Definition: TVirtualX.cxx:1713
virtual void Sync(Int_t mode)
Set synchronisation on or off.
Definition: TVirtualX.cxx:943
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:2115
virtual void SetLineType(Int_t n, Int_t *dash)
Sets the line type.
Definition: TVirtualX.cxx:812
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:2164
virtual void DestroySubwindows(Window_t id)
The DestroySubwindows function destroys all inferior windows of the specified window,...
Definition: TVirtualX.cxx:1044
virtual void SetFillStyle(Style_t style)
Sets fill area style.
Definition: TVirtualX.cxx:791
virtual void SelectPixmap(Int_t qpixid)
Selects the pixmap "qpixid".
Definition: TVirtualX.cxx:700
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:1280
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:989
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:2152
virtual void SetDoubleBufferON()
Turns double buffer mode on.
Definition: TVirtualX.cxx:761
virtual void SetDrawMode(EDrawMode mode)
Sets the drawing mode.
Definition: TVirtualX.cxx:774
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:2358
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:1339
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:2385
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:345
virtual Window_t GetPrimarySelectionOwner()
Returns the window id of the current owner of the primary selection.
Definition: TVirtualX.cxx:1969
virtual void IconifyWindow(Window_t id)
Iconifies the window "id".
Definition: TVirtualX.cxx:1108
virtual Window_t GetCurrentWindow() const
pointer to the current internal window used in canvas graphics
Definition: TVirtualX.cxx:2340
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:1540
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:1087
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:2260
virtual void DeleteGC(GContext_t gc)
Deletes the specified GC "gc".
Definition: TVirtualX.cxx:1355
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:1572
virtual void NextEvent(Event_t &event)
The "event" is set to default event.
Definition: TVirtualX.cxx:137
virtual void FreeColor(Colormap_t cmap, ULong_t pixel)
Frees color cell with specified pixel value.
Definition: TVirtualX.cxx:1501
virtual void QueryPointer(Int_t &ix, Int_t &iy)
Returns the pointer position.
Definition: TVirtualX.cxx:598
virtual void SetCharacterUp(Float_t chupx, Float_t chupy)
Sets character up vector.
Definition: TVirtualX.cxx:707
virtual void QueryColor(Colormap_t cmap, ColorStruct_t &color)
Returns the current RGB value for the pixel in the "color" structure.
Definition: TVirtualX.cxx:128
virtual void RemoveWindow(ULong_t qwid)
Removes the created by Qt window "qwid".
Definition: TVirtualX.cxx:570
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:400
virtual void SetMarkerSize(Float_t markersize)
Sets marker size index.
Definition: TVirtualX.cxx:850
virtual Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height)
create pixmap from RGB data.
Definition: TVirtualX.cxx:2374
virtual void GetRegionBox(Region_t reg, Rectangle_t *rect)
Returns smallest enclosing rectangle.
Definition: TVirtualX.cxx:2242
virtual void SetMarkerStyle(Style_t markerstyle)
Sets marker style.
Definition: TVirtualX.cxx:857
virtual Window_t GetParent(Window_t id) const
Returns the parent of the window "id".
Definition: TVirtualX.cxx:1289
virtual void DrawFillArea(Int_t n, TPoint *xy)
Fills area described by the polygon.
Definition: TVirtualX.cxx:300
virtual void SetLineStyle(Style_t linestyle)
Sets the line style.
Definition: TVirtualX.cxx:825
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:1743
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:1808
virtual void MapGCFont(GContext_t, FontStruct_t)
Map the XftFont with the Graphics Context using it.
Definition: TVirtualX.cxx:2504
virtual void DestroyRegion(Region_t reg)
Destroys the region "reg".
Definition: TVirtualX.cxx:2140
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:2197
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:1673
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:1509
virtual GContext_t CreateGC(Drawable_t id, GCValues_t *gval)
Creates a graphics context using the provided GCValues_t *gval structure.
Definition: TVirtualX.cxx:1326
virtual Bool_t MakeOpenGLContextCurrent(Handle_t ctx, Window_t windowID)
Makes context ctx current OpenGL context.
Definition: TVirtualX.cxx:244
virtual UInt_t ScreenWidthMM() const
Returns the width of the screen in millimeters.
Definition: TVirtualX.cxx:2392
virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Draws a line.
Definition: TVirtualX.cxx:310
virtual void SetLineWidth(Width_t width)
Sets the line width.
Definition: TVirtualX.cxx:834
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:1180
virtual Visual_t GetVisual() const
Returns handle to visual.
Definition: TVirtualX.cxx:1227
virtual void SetFillColor(Color_t cindex)
Sets color index "cindex" for fill areas.
Definition: TVirtualX.cxx:781
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:607
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:2479
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:1816
virtual void ClearWindow()
Clears the entire area of the current window.
Definition: TVirtualX.cxx:177
virtual void SelectWindow(Int_t wid)
Selects the window "wid" to which subsequent output is directed.
Definition: TVirtualX.cxx:693
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:2299
virtual Int_t GetDepth() const
Returns depth of screen (number of bit planes).
Definition: TVirtualX.cxx:1247
virtual Window_t GetWindowID(Int_t wid)
Returns the X11 window identifier.
Definition: TVirtualX.cxx:530
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:1613
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:1992
virtual Int_t InitWindow(ULong_t window)
Creates a new window and return window number.
Definition: TVirtualX.cxx:539
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:583
virtual void WMDeleteNotify(Window_t id)
Tells WM to send message when window is closed via WM.
Definition: TVirtualX.cxx:1637
virtual const char * DisplayName(const char *=0)
Returns hostname on which the display is opened.
Definition: TVirtualX.cxx:410
virtual void IntersectRegion(Region_t rega, Region_t regb, Region_t result)
Computes the intersection of two regions.
Definition: TVirtualX.cxx:2189
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:1126
virtual Region_t CreateRegion()
Creates a new empty region.
Definition: TVirtualX.cxx:2132
virtual void MapWindow(Window_t id)
Maps the window "id" and all of its subwindows that have had map requests.
Definition: TVirtualX.cxx:1000
virtual void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
Sets decoration style.
Definition: TVirtualX.cxx:1735
TText * text
Double_t y[n]
Definition: legend1.C:17
Double_t x[n]
Definition: legend1.C:17
const Int_t n
Definition: legend1.C:16
static constexpr double s
Definition: file.py:1
TCanvas * style()
Definition: style.C:1
#define dest(otri, vertexptr)
Definition: triangle.c:1040
#define org(otri, vertexptr)
Definition: triangle.c:1037