Logo ROOT  
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 <vector>
28
29#include "TNamed.h"
30#include "TAttLine.h"
31#include "TAttFill.h"
32#include "TAttText.h"
33#include "TAttMarker.h"
34#include "GuiTypes.h"
35
36
37// WM Atoms are initialized in TGClient
41
42class TPoint;
43class TString;
44class TGWin32Command;
45
46class TVirtualX : public TNamed, public TAttLine, public TAttFill, public TAttText, public TAttMarker {
47
48public:
49 enum EDrawMode { kCopy = 1, kXor, kInvert };
53
54protected:
55 EDrawMode fDrawMode; //Drawing mode
56
57public:
59 TVirtualX(const char *name, const char *title);
60 virtual ~TVirtualX() { }
61
62 virtual Bool_t Init(void *display=0);
63 virtual void ClearWindow();
64 virtual void ClosePixmap();
65 virtual void CloseWindow();
66 virtual void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos);
67 virtual void CreateOpenGLContext(Int_t wid=0);
68 virtual void DeleteOpenGLContext(Int_t wid=0);
69
70 //---- OpenGL related stuff, required only with R__HAS_COCOA ----
72 virtual Window_t CreateOpenGLWindow(Window_t parentID, UInt_t width, UInt_t height, const std::vector<std::pair<UInt_t, Int_t> > &format);
73 virtual Handle_t CreateOpenGLContext(Window_t windowID, Handle_t sharedContext);
74 virtual Bool_t MakeOpenGLContextCurrent(Handle_t ctx, Window_t windowID);
76 virtual void FlushOpenGLBuffer(Handle_t ctx);
77
78 virtual void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode);
79 virtual void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2,
80 Int_t nx, Int_t ny, Int_t *ic);
81 virtual void DrawFillArea(Int_t n, TPoint *xy);
82 virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2);
83 virtual void DrawPolyLine(Int_t n, TPoint *xy);
84 virtual void DrawPolyMarker(Int_t n, TPoint *xy);
85 virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text,
86 ETextMode mode);
87 virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const wchar_t *text,
88 ETextMode mode);
89 virtual UInt_t ExecCommand(TGWin32Command *code);
90 virtual void GetCharacterUp(Float_t &chupx, Float_t &chupy);
92 virtual Int_t GetDoubleBuffer(Int_t wid);
93 virtual void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
94 virtual const char *DisplayName(const char * = 0);
95 virtual Handle_t GetNativeEvent() const;
96 virtual ULong_t GetPixel(Color_t cindex);
97 virtual void GetPlanes(Int_t &nplanes);
98 virtual void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b);
99 virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess);
100 virtual void GetTextExtent(UInt_t &w, UInt_t &h, wchar_t *mess);
101 virtual Int_t GetFontAscent() const;
102 virtual Int_t GetFontAscent(const char *mess) const;
103 virtual Int_t GetFontDescent() const;
104 virtual Int_t GetFontDescent(const char *mess) const;
105 virtual Float_t GetTextMagnitude();
106 virtual Window_t GetWindowID(Int_t wid);
107 virtual Bool_t HasTTFonts() const;
108 virtual Int_t InitWindow(ULong_t window);
109 virtual Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h);
110 virtual Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h);
111 virtual void RemoveWindow(ULong_t qwid);
112 virtual void MoveWindow(Int_t wid, Int_t x, Int_t y);
113 virtual Int_t OpenPixmap(UInt_t w, UInt_t h);
114 virtual void QueryPointer(Int_t &ix, Int_t &iy);
115 virtual Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char *file, Window_t id=0);
116 virtual Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y);
117 virtual Int_t RequestString(Int_t x, Int_t y, char *text);
118 virtual void RescaleWindow(Int_t wid, UInt_t w, UInt_t h);
119 virtual Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h);
120 virtual void ResizeWindow(Int_t wid);
121 virtual void SelectWindow(Int_t wid);
122 virtual void SelectPixmap(Int_t qpixid);
123 virtual void SetCharacterUp(Float_t chupx, Float_t chupy);
124 virtual void SetClipOFF(Int_t wid);
125 virtual void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h);
126 virtual void SetCursor(Int_t win, ECursor cursor);
127 virtual void SetDoubleBuffer(Int_t wid, Int_t mode);
128 virtual void SetDoubleBufferOFF();
129 virtual void SetDoubleBufferON();
130 virtual void SetDrawMode(EDrawMode mode);
131 virtual void SetFillColor(Color_t cindex);
132 virtual void SetFillStyle(Style_t style);
133 virtual void SetLineColor(Color_t cindex);
134 virtual void SetLineType(Int_t n, Int_t *dash);
135 virtual void SetLineStyle(Style_t linestyle);
136 virtual void SetLineWidth(Width_t width);
137 virtual void SetMarkerColor(Color_t cindex);
138 virtual void SetMarkerSize(Float_t markersize);
139 virtual void SetMarkerStyle(Style_t markerstyle);
140 virtual void SetOpacity(Int_t percent);
141 virtual void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b);
142 virtual void SetTextAlign(Short_t talign=11);
143 virtual void SetTextColor(Color_t cindex);
144 virtual Int_t SetTextFont(char *fontname, ETextSetMode mode);
145 virtual void SetTextFont(Font_t fontnumber);
146 virtual void SetTextMagnitude(Float_t mgn);
147 virtual void SetTextSize(Float_t textsize);
148 virtual void Sync(Int_t mode);
149 virtual void UpdateWindow(Int_t mode);
150 virtual void Warp(Int_t ix, Int_t iy, Window_t id = 0);
151 virtual Int_t WriteGIF(char *name);
152 virtual void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname);
153 virtual Window_t GetCurrentWindow() const;
154 virtual Int_t SupportsExtension(const char *ext) const;
155
156 //---- Methods used for GUI -----
157 virtual void GetWindowAttributes(Window_t id, WindowAttributes_t &attr);
158 virtual void MapWindow(Window_t id);
159 virtual void MapSubwindows(Window_t id);
160 virtual void MapRaised(Window_t id);
161 virtual void UnmapWindow(Window_t id);
162 virtual void DestroyWindow(Window_t id);
163 virtual void DestroySubwindows(Window_t id);
164 virtual void RaiseWindow(Window_t id);
165 virtual void LowerWindow(Window_t id);
166 virtual void MoveWindow(Window_t id, Int_t x, Int_t y);
167 virtual void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h);
168 virtual void ResizeWindow(Window_t id, UInt_t w, UInt_t h);
169 virtual void IconifyWindow(Window_t id);
170 virtual Bool_t NeedRedraw(ULong_t tgwindow, Bool_t force);
171 virtual void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y);
172 virtual void SetWindowBackground(Window_t id, ULong_t color);
173 virtual void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm);
174 virtual Window_t CreateWindow(Window_t parent, Int_t x, Int_t y,
175 UInt_t w, UInt_t h, UInt_t border,
176 Int_t depth, UInt_t clss,
177 void *visual, SetWindowAttributes_t *attr,
178 UInt_t wtype);
179 virtual Int_t OpenDisplay(const char *dpyName);
180 virtual void CloseDisplay();
181 virtual Display_t GetDisplay() const;
182 virtual Visual_t GetVisual() const;
183 virtual Int_t GetScreen() const;
184 virtual Int_t GetDepth() const;
185 virtual UInt_t ScreenWidthMM() const;
186 virtual Colormap_t GetColormap() const;
187 virtual Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist);
188 virtual Window_t GetDefaultRootWindow() const;
189 virtual Window_t GetParent(Window_t id) const;
190 virtual FontStruct_t LoadQueryFont(const char *font_name);
192 virtual void DeleteFont(FontStruct_t fs);
193 virtual GContext_t CreateGC(Drawable_t id, GCValues_t *gval);
194 virtual void ChangeGC(GContext_t gc, GCValues_t *gval);
195 virtual void CopyGC(GContext_t org, GContext_t dest, Mask_t mask);
196 virtual void DeleteGC(GContext_t gc);
197 virtual Cursor_t CreateCursor(ECursor cursor);
198 virtual void SetCursor(Window_t id, Cursor_t curid);
200 virtual Pixmap_t CreatePixmap(Drawable_t id, const char *bitmap, UInt_t width,
201 UInt_t height, ULong_t forecolor, ULong_t backcolor,
202 Int_t depth);
203 virtual Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap,
204 UInt_t width, UInt_t height);
205 virtual void DeletePixmap(Pixmap_t pmap);
206 virtual Bool_t CreatePictureFromFile(Drawable_t id, const char *filename,
207 Pixmap_t &pict, Pixmap_t &pict_mask,
208 PictureAttributes_t &attr);
209 virtual Bool_t CreatePictureFromData(Drawable_t id, char **data,
210 Pixmap_t &pict, Pixmap_t &pict_mask,
211 PictureAttributes_t &attr);
212 virtual Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height);
213 virtual Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data);
214 virtual void DeletePictureData(void *data);
215 virtual void SetDashes(GContext_t gc, Int_t offset, const char *dash_list,
216 Int_t n);
217 virtual Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color);
218 virtual Bool_t AllocColor(Colormap_t cmap, ColorStruct_t &color);
219 virtual void QueryColor(Colormap_t cmap, ColorStruct_t &color);
220 virtual void FreeColor(Colormap_t cmap, ULong_t pixel);
221 virtual Int_t EventsPending();
222 virtual void NextEvent(Event_t &event);
223 virtual void Bell(Int_t percent);
224 virtual void CopyArea(Drawable_t src, Drawable_t dest, GContext_t gc,
225 Int_t src_x, Int_t src_y, UInt_t width,
226 UInt_t height, Int_t dest_x, Int_t dest_y);
228 virtual void ChangeProperty(Window_t id, Atom_t property, Atom_t type,
229 UChar_t *data, Int_t len);
230 virtual void DrawLine(Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2);
231 virtual void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h);
233 virtual void SendEvent(Window_t id, Event_t *ev);
234 virtual void DispatchClientMessage(UInt_t messageID);
235 virtual void WMDeleteNotify(Window_t id);
236 virtual void SetKeyAutoRepeat(Bool_t on = kTRUE);
237 virtual void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab = kTRUE);
238 virtual void GrabButton(Window_t id, EMouseButton button, UInt_t modifier,
239 UInt_t evmask, Window_t confine, Cursor_t cursor,
240 Bool_t grab = kTRUE);
241 virtual void GrabPointer(Window_t id, UInt_t evmask, Window_t confine,
242 Cursor_t cursor, Bool_t grab = kTRUE,
243 Bool_t owner_events = kTRUE);
244 virtual void SetWindowName(Window_t id, char *name);
245 virtual void SetIconName(Window_t id, char *name);
246 virtual void SetIconPixmap(Window_t id, Pixmap_t pix);
247 virtual void SetClassHints(Window_t id, char *className, char *resourceName);
248 virtual void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input);
249 virtual void SetWMPosition(Window_t id, Int_t x, Int_t y);
250 virtual void SetWMSize(Window_t id, UInt_t w, UInt_t h);
251 virtual void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin,
252 UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc);
253 virtual void SetWMState(Window_t id, EInitialState state);
254 virtual void SetWMTransientHint(Window_t id, Window_t main_id);
255 virtual void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
256 const char *s, Int_t len);
257 virtual Int_t TextWidth(FontStruct_t font, const char *s, Int_t len);
258 virtual void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent);
259 virtual void GetGCValues(GContext_t gc, GCValues_t &gval);
262 virtual void FreeFontStruct(FontStruct_t fs);
263 virtual void ClearWindow(Window_t id);
264 virtual Int_t KeysymToKeycode(UInt_t keysym);
265 virtual void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
266 UInt_t w, UInt_t h);
267 virtual void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
268 UInt_t w, UInt_t h);
269 virtual void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg);
270 virtual void SelectInput(Window_t id, UInt_t evmask);
271 virtual Window_t GetInputFocus();
272 virtual void SetInputFocus(Window_t id);
274 virtual void SetPrimarySelectionOwner(Window_t id);
275 virtual void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when);
276 virtual void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym);
277 virtual void GetPasteBuffer(Window_t id, Atom_t atom, TString &text, Int_t &nchar,
278 Bool_t del);
279 virtual void TranslateCoordinates(Window_t src, Window_t dest, Int_t src_x,Int_t src_y,
280 Int_t &dest_x, Int_t &dest_y, Window_t &child);
281 virtual void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
282 virtual void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt);
283 virtual void QueryPointer(Window_t id, Window_t &rootw, Window_t &childw,
284 Int_t &root_x, Int_t &root_y, Int_t &win_x,
285 Int_t &win_y, UInt_t &mask);
286 virtual void SetForeground(GContext_t gc, ULong_t foreground);
287 virtual void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n);
288 virtual void Update(Int_t mode = 0);
289 virtual Region_t CreateRegion();
290 virtual void DestroyRegion(Region_t reg);
291 virtual void UnionRectWithRegion(Rectangle_t *rect, Region_t src, Region_t dest);
292 virtual Region_t PolygonRegion(Point_t *points, Int_t np, Bool_t winding);
293 virtual void UnionRegion(Region_t rega, Region_t regb, Region_t result);
294 virtual void IntersectRegion(Region_t rega, Region_t regb, Region_t result);
295 virtual void SubtractRegion(Region_t rega, Region_t regb, Region_t result);
296 virtual void XorRegion(Region_t rega, Region_t regb, Region_t result);
297 virtual Bool_t EmptyRegion(Region_t reg);
298 virtual Bool_t PointInRegion(Int_t x, Int_t y, Region_t reg);
299 virtual Bool_t EqualRegion(Region_t rega, Region_t regb);
300 virtual void GetRegionBox(Region_t reg, Rectangle_t *rect);
301 virtual char **ListFonts(const char *fontname, Int_t max, Int_t &count);
302 virtual void FreeFontNames(char **fontlist);
303 virtual Drawable_t CreateImage(UInt_t width, UInt_t height);
304 virtual void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height);
305 virtual void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel);
306 virtual void PutImage(Drawable_t id, GContext_t gc, Drawable_t img, Int_t dx, Int_t dy,
307 Int_t x, Int_t y, UInt_t w, UInt_t h);
308 virtual void DeleteImage(Drawable_t img);
309 virtual unsigned char *GetColorBits(Drawable_t wid, Int_t x = 0, Int_t y = 0, UInt_t w = 0, UInt_t h = 0);
310 virtual void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask);
311
312 //---- Drag and Drop -----
313 virtual void DeleteProperty(Window_t, Atom_t&);
315 Atom_t*, Int_t*, ULong_t*, ULong_t*, unsigned char**);
317 virtual void ConvertSelection(Window_t, Atom_t&, Atom_t&, Atom_t&, Time_t&);
319 virtual void ChangeProperties(Window_t id, Atom_t property, Atom_t type,
320 Int_t format, UChar_t *data, Int_t len);
321 virtual void SetDNDAware(Window_t, Atom_t *);
322 virtual void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist);
323 virtual Window_t FindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd);
324 virtual Bool_t IsDNDAware(Window_t win, Atom_t *typelist);
325
326 virtual void BeginModalSessionFor(Window_t window);
327
328 virtual Bool_t IsCmdThread() const { return kTRUE; }
329
330 virtual void MapGCFont(GContext_t, FontStruct_t);
331
332 static TVirtualX *&Instance();
333
334 ClassDef(TVirtualX,0) //ABC defining a generic interface to graphics system
335};
336
337#ifndef __CINT__
338#define gVirtualX (TVirtualX::Instance())
339R__EXTERN TVirtualX *(*gPtr2VirtualX)();
340#endif
342
343#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
ECursor
Definition: GuiTypes.h:371
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:43
unsigned char UChar_t
Definition: RtypesCore.h:36
unsigned int UInt_t
Definition: RtypesCore.h:44
unsigned long ULong_t
Definition: RtypesCore.h:53
long Long_t
Definition: RtypesCore.h:52
short Width_t
Definition: RtypesCore.h:80
bool Bool_t
Definition: RtypesCore.h:61
short Font_t
Definition: RtypesCore.h:77
short Short_t
Definition: RtypesCore.h:37
double Double_t
Definition: RtypesCore.h:57
short Color_t
Definition: RtypesCore.h:81
short Style_t
Definition: RtypesCore.h:78
float Float_t
Definition: RtypesCore.h:55
const Bool_t kTRUE
Definition: RtypesCore.h:89
#define ClassDef(name, id)
Definition: Rtypes.h:322
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
char name[80]
Definition: TGX11.cxx:109
int type
Definition: TGX11.cxx:120
XPoint xy[kMAXMK]
Definition: TGX11.cxx:122
R__EXTERN Atom_t gROOT_MESSAGE
Definition: TVirtualX.h:40
R__EXTERN TVirtualX * gGXBatch
Definition: TVirtualX.h:341
R__EXTERN Atom_t gMOTIF_WM_HINTS
Definition: TVirtualX.h:39
R__EXTERN Atom_t gWM_DELETE_WINDOW
Definition: TVirtualX.h:38
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:46
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:58
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:60
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:328
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:91
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:55
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