Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TVirtualX.cxx
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/**
13\defgroup GraphicsBackends Graphics' Backends
14\ingroup Graphics
15Graphics' Backends interface classes.
16Graphics classes interfacing ROOT graphics with the low level
17native graphics backends(s) like X11, Cocoa, Win32 etc...
18These classes are not meant to be used directly by ROOT users.
19*/
20
21/** \class TVirtualX
22\ingroup GraphicsBackends
23\ingroup Base
24Semi-Abstract base class defining a generic interface to the underlying, low
25level, native graphics backend (X11, Win32, MacOS, OpenGL...).
26An instance of TVirtualX itself defines a batch interface to the graphics system.
27*/
28
29#include "TVirtualX.h"
30#include "TString.h"
31#include "TPoint.h"
32
33
37
38
39TVirtualX *gGXBatch; //Global pointer to batch graphics interface
40TVirtualX* (*gPtr2VirtualX)() = nullptr; // returns pointer to global object
41
42
43
44
45////////////////////////////////////////////////////////////////////////////////
46/// Ctor of ABC
47
48TVirtualX::TVirtualX(const char *name, const char *title) : TNamed(name, title),
49 TAttLine(1,1,1),TAttFill(1,1),TAttText(11,0,1,62,0.01), TAttMarker(1,1,1),
50 fDrawMode()
51{
52}
53
54////////////////////////////////////////////////////////////////////////////////
55/// Returns gVirtualX global
56
58{
59 static TVirtualX *instance = nullptr;
61 return instance;
62}
63
64////////////////////////////////////////////////////////////////////////////////
65/// The WindowAttributes_t structure is set to default.
66
68{
69 attr.fX = attr.fY = 0;
70 attr.fWidth = attr.fHeight = 0;
71 attr.fVisual = nullptr;
72 attr.fMapState = kIsUnmapped;
73 attr.fScreen = nullptr;
74}
75
76////////////////////////////////////////////////////////////////////////////////
77/// Looks up the string name of a color "cname" with respect to the screen
78/// associated with the specified colormap. It returns the exact color value.
79/// If the color name is not in the Host Portable Character Encoding,
80/// the result is implementation dependent.
81///
82/// \param [in] cmap the colormap
83/// \param [in] cname the color name string; use of uppercase or lowercase
84/// does not matter
85/// \param [in] color returns the exact color value for later use
86///
87/// The ColorStruct_t structure is set to default. Let system think we
88/// could parse color.
89
90Bool_t TVirtualX::ParseColor(Colormap_t /*cmap*/, const char * /*cname*/,
91 ColorStruct_t &color)
92{
93 color.fPixel = 0;
94 color.fRed = 0;
95 color.fGreen = 0;
96 color.fBlue = 0;
97 color.fMask = kDoRed | kDoGreen | kDoBlue;
98
99 return kTRUE;
100}
101
102////////////////////////////////////////////////////////////////////////////////
103/// Allocates a read-only colormap entry corresponding to the closest RGB
104/// value supported by the hardware. If no cell could be allocated it
105/// returns kFALSE, otherwise kTRUE.
106///
107/// The pixel value is set to default. Let system think we could allocate
108/// color.
109///
110/// \param [in] cmap the colormap
111/// \param [in] color specifies and returns the values actually used in the cmap
112
114{
115 color.fPixel = 0;
116 return kTRUE;
117}
118
119////////////////////////////////////////////////////////////////////////////////
120/// Returns the current RGB value for the pixel in the "color" structure
121///
122/// The color components are set to default.
123///
124/// \param [in] cmap the colormap
125/// \param [in] color specifies and returns the RGB values for the pixel specified
126/// in the structure
127
129{
130 color.fRed = color.fGreen = color.fBlue = 0;
131}
132
133////////////////////////////////////////////////////////////////////////////////
134/// The "event" is set to default event.
135/// This method however, should never be called.
136
138{
139 event.fType = kButtonPress;
140 event.fWindow = 0;
141 event.fTime = 0;
142 event.fX = 0;
143 event.fY = 0;
144 event.fXRoot = 0;
145 event.fYRoot = 0;
146 event.fState = 0;
147 event.fCode = 0;
148 event.fWidth = 0;
149 event.fHeight = 0;
150 event.fCount = 0;
151}
152
153////////////////////////////////////////////////////////////////////////////////
154/// Gets contents of the paste buffer "atom" into the string "text".
155/// (nchar = number of characters) If "del" is true deletes the paste
156/// buffer afterwards.
157
159 Int_t &nchar, Bool_t /*del*/)
160{
161 text = "";
162 nchar = 0;
163}
164
165////////////////////////////////////////////////////////////////////////////////
166/// Initializes the X system. Returns kFALSE in case of failure.
167/// It is implementation dependent.
168
169Bool_t TVirtualX::Init(void * /*display*/)
170{
171 return kFALSE;
172}
173
174////////////////////////////////////////////////////////////////////////////////
175/// Clears the entire area of the current window.
176
178{
179}
180
181////////////////////////////////////////////////////////////////////////////////
182/// Deletes current window.
183
185{
186}
187
188////////////////////////////////////////////////////////////////////////////////
189/// Deletes current pixmap.
190
192{
193}
194
195////////////////////////////////////////////////////////////////////////////////
196/// Copies the pixmap "wid" at the position [xpos,ypos] in the current window.
197
198void TVirtualX::CopyPixmap(Int_t /*wid*/, Int_t /*xpos*/, Int_t /*ypos*/)
199{
200}
201
202////////////////////////////////////////////////////////////////////////////////
203///On a HiDPI resolution it can be > 1., this means glViewport should use
204///scaled width and height.
205
210
211////////////////////////////////////////////////////////////////////////////////
212/// Creates OpenGL context for window "wid"
213
215{
216}
217
218////////////////////////////////////////////////////////////////////////////////
219/// Deletes OpenGL context for window "wid"
220
222{
223}
224
225////////////////////////////////////////////////////////////////////////////////
226///Create window with special pixel format. Noop everywhere except Cocoa.
227
228Window_t TVirtualX::CreateOpenGLWindow(Window_t /*parentID*/, UInt_t /*width*/, UInt_t /*height*/, const std::vector<std::pair<UInt_t, Int_t> > &/*format*/)
229{
230 return Window_t();
231}
232
233////////////////////////////////////////////////////////////////////////////////
234/// Creates OpenGL context for window "windowID".
235
237{
238 return Handle_t();
239}
240
241////////////////////////////////////////////////////////////////////////////////
242/// Makes context ctx current OpenGL context.
243
245{
246 return kFALSE;
247}
248
249////////////////////////////////////////////////////////////////////////////////
250/// Asks OpenGL subsystem about the current OpenGL context.
251
256
257////////////////////////////////////////////////////////////////////////////////
258/// Flushes OpenGL buffer.
259
263
264////////////////////////////////////////////////////////////////////////////////
265/// Draws a box between [x1,y1] and [x2,y2] according to the "mode".
266///
267/// \param [in] x1,y1 left down corner
268/// \param [in] x2,y2 right up corner
269/// \param [in] mode drawing mode:
270/// - mode = 0 hollow (kHollow)
271/// - mode = 1 solid (kSolid)
272
273void TVirtualX::DrawBox(Int_t /*x1*/, Int_t /*y1*/, Int_t /*x2*/, Int_t /*y2*/,
274 EBoxMode /*mode*/)
275{
276}
277
278////////////////////////////////////////////////////////////////////////////////
279/// Draws a cell array. The drawing is done with the pixel precision
280/// if (x2-x1)/nx (or y) is not a exact pixel number the position of
281/// the top right corner may be wrong.
282///
283/// \param [in] x1,y1 left down corner
284/// \param [in] x2,y2 right up corner
285/// \param [in] nx,ny array size
286/// \param [in] ic array
287
289 Int_t /*x2*/, Int_t /*y2*/,
290 Int_t /*nx*/, Int_t /*ny*/, Int_t * /*ic*/)
291{
292}
293
294////////////////////////////////////////////////////////////////////////////////
295/// Fills area described by the polygon.
296///
297/// \param [in] n number of points
298/// \param [in] xy list of points. xy(2,n)
299
301{
302}
303
304////////////////////////////////////////////////////////////////////////////////
305/// Draws a line.
306///
307/// \param [in] x1,y1 begin of line
308/// \param [in] x2,y2 end of line
309
310void TVirtualX::DrawLine(Int_t /*x1*/, Int_t /*y1*/, Int_t /*x2*/, Int_t /*y2*/)
311{
312}
313
314////////////////////////////////////////////////////////////////////////////////
315/// Draws a line through all points in the list.
316///
317/// \param [in] n number of points
318/// \param [in] xy list of points
319
321{
322}
323
324////////////////////////////////////////////////////////////////////////////////
325/// Draws N segments between provided points
326///
327/// \param [in] n number of segemtns
328/// \param [in] xy list of points, size 2*n
329
331{
332 for(Int_t i = 0; i < 2*n; i += 2)
333 DrawPolyLine(2, &xy[i]);
334}
335
336
337////////////////////////////////////////////////////////////////////////////////
338/// Draws "n" markers with the current attributes at position [x,y].
339///
340/// \param [in] n number of markers to draw
341/// \param [in] xy an array of x,y marker coordinates
342
344{
345}
346
347////////////////////////////////////////////////////////////////////////////////
348/// Draws a text string using current font.
349///
350/// \param [in] x,y text position
351/// \param [in] angle text angle
352/// \param [in] mgn magnification factor
353/// \param [in] text text string
354/// \param [in] mode drawing mode:
355/// - mode = 0 the background is not drawn (kClear)
356/// - mode = 1 the background is drawn (kOpaque)
357
358void TVirtualX::DrawText(Int_t /*x*/, Int_t /*y*/, Float_t /*angle*/,
359 Float_t /*mgn*/, const char * /*text*/,
360 ETextMode /*mode*/)
361{
362}
363
364////////////////////////////////////////////////////////////////////////////////
365/// Draws a text string using current font.
366///
367/// \param [in] x,y text position
368/// \param [in] angle text angle
369/// \param [in] mgn magnification factor
370/// \param [in] text text string
371/// \param [in] mode drawing mode:
372/// - mode = 0 the background is not drawn (kClear)
373/// - mode = 1 the background is drawn (kOpaque)
374
375void TVirtualX::DrawText(Int_t /*x*/, Int_t /*y*/, Float_t /*angle*/,
376 Float_t /*mgn*/, const wchar_t * /*text*/,
377 ETextMode /*mode*/)
378{
379}
380
381////////////////////////////////////////////////////////////////////////////////
382/// Get window drawing context
383/// Should remain valid until window exists
384
386{
387 return (WinContext_t) 0;
388}
389
390////////////////////////////////////////////////////////////////////////////////
391/// Set fill attributes for specified window
392
394{
395 SetFillColor(att.GetFillColor());
396 SetFillStyle(att.GetFillStyle());
397}
398
399////////////////////////////////////////////////////////////////////////////////
400/// Set line attributes for specified window
401
403{
404 SetLineColor(att.GetLineColor());
405 SetLineStyle(att.GetLineStyle());
406 SetLineWidth(att.GetLineWidth());
407}
408
409////////////////////////////////////////////////////////////////////////////////
410/// Set marker attributes for specified window
411
413{
414 SetMarkerColor(att.GetMarkerColor());
415 SetMarkerSize(att.GetMarkerSize());
416 SetMarkerStyle(att.GetMarkerStyle());
417}
418
419////////////////////////////////////////////////////////////////////////////////
420/// Set text attributes for specified window
421
423{
424 SetTextAlign(att.GetTextAlign());
425 SetTextAngle(att.GetTextAngle());
426 SetTextColor(att.GetTextColor());
427 SetTextSize(att.GetTextSize());
428 SetTextFont(att.GetTextFont());
429}
430
431////////////////////////////////////////////////////////////////////////////////
432/// Set window draw mode
433
438
439////////////////////////////////////////////////////////////////////////////////
440/// Returns window draw mode
441
446
447////////////////////////////////////////////////////////////////////////////////
448/// Clear specified window
449
451{
452 ClearWindow();
453}
454
455////////////////////////////////////////////////////////////////////////////////
456/// Update specified window
457
462
463////////////////////////////////////////////////////////////////////////////////
464/// Set opactity for specified window
465
470
471////////////////////////////////////////////////////////////////////////////////
472/// Copy pixmap to specified window
473
478
479////////////////////////////////////////////////////////////////////////////////
480/// Draw box on specified window
481
486
487////////////////////////////////////////////////////////////////////////////////
488/// Draw fill area on specified window
489
491{
492 DrawFillArea(n, xy);
493}
494
495////////////////////////////////////////////////////////////////////////////////
496/// Draw line on specified window
497
499{
500 DrawLine(x1, y1, x2, y2);
501}
502
503////////////////////////////////////////////////////////////////////////////////
504/// Draw poly line on specified window
505
507{
508 DrawPolyLine(n, xy);
509}
510
511////////////////////////////////////////////////////////////////////////////////
512/// Draw line segments on specified window
513
518
519////////////////////////////////////////////////////////////////////////////////
520/// Draw poly marker on specified window
521
526
527////////////////////////////////////////////////////////////////////////////////
528/// Draw text on specified window
529
531{
532 DrawText(x, y, angle, mgn, text, mode);
533}
534
535////////////////////////////////////////////////////////////////////////////////
536/// Draw wtext on specified window
537
539{
540 DrawText(x, y, angle, mgn, text, mode);
541}
542
543////////////////////////////////////////////////////////////////////////////////
544/// Executes the command "code" coming from the other threads (Win32)
545
547{
548 return 0;
549}
550
551////////////////////////////////////////////////////////////////////////////////
552/// Queries the double buffer value for the window "wid".
553
555{
556 return 0;
557}
558
559////////////////////////////////////////////////////////////////////////////////
560/// Returns character up vector.
561
566
567////////////////////////////////////////////////////////////////////////////////
568/// Returns position and size of window "wid".
569///
570/// \param [in] wid window identifier
571/// if wid < 0 the size of the display is returned
572/// \param [in] x, y returned window position
573/// \param [in] w, h returned window size
574
576 UInt_t &w, UInt_t &h)
577{
578 x = y = 0;
579 w = h = 0;
580}
581
582////////////////////////////////////////////////////////////////////////////////
583/// Returns hostname on which the display is opened.
584
585const char *TVirtualX::DisplayName(const char *)
586{
587 return "batch";
588}
589
590////////////////////////////////////////////////////////////////////////////////
591/// Returns the current native event handle.
592
594{
595 return 0;
596}
597
598////////////////////////////////////////////////////////////////////////////////
599/// Returns pixel value associated to specified ROOT color number "cindex".
600
602{
603 return 0;
604}
605
606////////////////////////////////////////////////////////////////////////////////
607/// Returns the maximum number of planes.
608
610{
611 nplanes = 0;
612}
613
614////////////////////////////////////////////////////////////////////////////////
615/// Returns RGB values for color "index".
616
618{
619 r = g = b = 0;
620}
621
622////////////////////////////////////////////////////////////////////////////////
623/// Returns the size of the specified character string "mess".
624///
625/// \param [in] w the text width
626/// \param [in] h the text height
627/// \param [in] mess the string
628
629void TVirtualX::GetTextExtent(UInt_t &w, UInt_t &h, char * /*mess*/)
630{
631 w = h = 0;
632}
633
634////////////////////////////////////////////////////////////////////////////////
635/// Returns the size of the specified character string "mess".
636///
637/// \param [in] w the text width
638/// \param [in] h the text height
639/// \param [in] mess the string
640
641void TVirtualX::GetTextExtent(UInt_t &w, UInt_t &h, wchar_t * /*mess*/)
642{
643 w = h = 0;
644}
645
646////////////////////////////////////////////////////////////////////////////////
647/// Returns the ascent of the current font (in pixels).
648/// The ascent of a font is the distance from the baseline
649/// to the highest position characters extend to
650
652{
653 return 0;
654}
655
656////////////////////////////////////////////////////////////////////////////////
657/// Default version is noop, but in principle what
658/// ROOT understands as ascent is text related.
659
660Int_t TVirtualX::GetFontAscent(const char * /*mess*/) const
661{
662 return GetFontAscent();
663}
664
665////////////////////////////////////////////////////////////////////////////////
666/// Returns the descent of the current font (in pixels.
667/// The descent is the distance from the base line
668/// to the lowest point characters extend to.
669
671{
672 return 0;
673}
674
675////////////////////////////////////////////////////////////////////////////////
676/// Default version is noop, but in principle what
677/// ROOT understands as descent requires a certain text.
678
679Int_t TVirtualX::GetFontDescent(const char * /*mess*/) const
680{
681 return GetFontDescent();
682}
683
684////////////////////////////////////////////////////////////////////////////////
685/// Returns the current font magnification factor
686
688{
689 return 0;
690}
691
692////////////////////////////////////////////////////////////////////////////////
693/// Returns True when TrueType fonts are used
694
696{
697 return kFALSE;
698}
699
700////////////////////////////////////////////////////////////////////////////////
701/// Returns the X11 window identifier.
702///
703/// \param [in] wid workstation identifier (input)
704
706{
707 return 0;
708}
709
710////////////////////////////////////////////////////////////////////////////////
711/// Creates a new window and return window number.
712/// Returns -1 if window initialization fails.
713
715{
716 return 0;
717}
718
719////////////////////////////////////////////////////////////////////////////////
720/// Registers a window created by Qt as a ROOT window
721///
722/// \param [in] qwid window identifier
723/// \param [in] w, h the width and height, which define the window size
724
726{
727 return 0;
728}
729
730////////////////////////////////////////////////////////////////////////////////
731/// Registers a pixmap created by TGLManager as a ROOT pixmap
732///
733/// \param [in] pixid pixmap identifier
734/// \param [in] w, h the width and height, which define the pixmap size
735
737{
738 return 0;
739}
740
741
742////////////////////////////////////////////////////////////////////////////////
743/// Removes the created by Qt window "qwid".
744
746{
747}
748
749////////////////////////////////////////////////////////////////////////////////
750/// Moves the window "wid" to the specified x and y coordinates.
751/// It does not change the window's size, raise the window, or change
752/// the mapping state of the window.
753///
754/// \param [in] wid window identifier
755/// \param [in] x, y coordinates, which define the new position of the window
756/// relative to its parent.
757
758void TVirtualX::MoveWindow(Int_t /*wid*/, Int_t /*x*/, Int_t /*y*/)
759{
760}
761
762////////////////////////////////////////////////////////////////////////////////
763/// Creates a pixmap of the width "w" and height "h" you specified.
764
766{
767 return 0;
768}
769
770////////////////////////////////////////////////////////////////////////////////
771/// Returns the pointer position.
772
774{
775 ix = iy = 0;
776}
777
778////////////////////////////////////////////////////////////////////////////////
779/// If id is NULL - loads the specified gif file at position [x0,y0] in the
780/// current window. Otherwise creates pixmap from gif file
781
782Pixmap_t TVirtualX::ReadGIF(Int_t /*x0*/, Int_t /*y0*/, const char * /*file*/,
783 Window_t /*id*/)
784{
785 return 0;
786}
787
788////////////////////////////////////////////////////////////////////////////////
789/// Requests Locator position.
790///
791/// \param [in] x,y cursor position at moment of button press (output)
792/// \param [in] ctyp cursor type (input)
793/// - ctyp = 1 tracking cross
794/// - ctyp = 2 cross-hair
795/// - ctyp = 3 rubber circle
796/// - ctyp = 4 rubber band
797/// - ctyp = 5 rubber rectangle
798///
799/// \param [in] mode input mode
800/// - mode = 0 request
801/// - mode = 1 sample
802///
803/// \return
804/// - in request mode:
805/// - 1 = left is pressed
806/// - 2 = middle is pressed
807/// - 3 = right is pressed
808/// - in sample mode:
809/// - 11 = left is released
810/// - 12 = middle is released
811/// - 13 = right is released
812/// - -1 = nothing is pressed or released
813/// - -2 = leave the window
814/// - else = keycode (keyboard is pressed)
815
817 Int_t &x, Int_t &y)
818{
819 x = y = 0;
820 return 0;
821}
822
823////////////////////////////////////////////////////////////////////////////////
824/// Requests string: text is displayed and can be edited with Emacs-like
825/// keybinding. Returns termination code (0 for ESC, 1 for RETURN)
826///
827/// \param [in] x,y position where text is displayed
828/// \param [in] text displayed text (as input), edited text (as output)
829
831{
832 if (text) *text = 0;
833 return 0;
834}
835
836////////////////////////////////////////////////////////////////////////////////
837/// Rescales the window "wid".
838///
839/// \param [in] wid window identifier
840/// \param [in] w the width
841/// \param [in] h the height
842
843void TVirtualX::RescaleWindow(Int_t /*wid*/, UInt_t /*w*/, UInt_t /*h*/)
844{
845}
846
847////////////////////////////////////////////////////////////////////////////////
848/// Resizes the specified pixmap "wid".
849///
850/// \param [in] wid window identifier
851/// \param [in] w, h the width and height which define the pixmap dimensions
852
854{
855 return 0;
856}
857
858////////////////////////////////////////////////////////////////////////////////
859/// Resizes the window "wid" if necessary.
860
862{
863}
864
865////////////////////////////////////////////////////////////////////////////////
866/// Selects the window "wid" to which subsequent output is directed.
867
869{
870}
871
872////////////////////////////////////////////////////////////////////////////////
873/// Selects the pixmap "qpixid".
874
876{
877}
878
879////////////////////////////////////////////////////////////////////////////////
880/// Sets character up vector.
881
882void TVirtualX::SetCharacterUp(Float_t /*chupx*/, Float_t /*chupy*/)
883{
884}
885
886////////////////////////////////////////////////////////////////////////////////
887/// Turns off the clipping for the window "wid".
888
890{
891}
892
893////////////////////////////////////////////////////////////////////////////////
894/// Sets clipping region for the window "wid".
895///
896/// \param [in] wid window identifier
897/// \param [in] x, y origin of clipping rectangle
898/// \param [in] w, h the clipping rectangle dimensions
899
900void TVirtualX::SetClipRegion(Int_t /*wid*/, Int_t /*x*/, Int_t /*y*/,
901 UInt_t /*w*/, UInt_t /*h*/)
902{
903}
904
905////////////////////////////////////////////////////////////////////////////////
906/// The cursor "cursor" will be used when the pointer is in the
907/// window "wid".
908
909void TVirtualX::SetCursor(Int_t /*win*/, ECursor /*cursor*/)
910{
911}
912
913////////////////////////////////////////////////////////////////////////////////
914/// Sets the double buffer on/off on the window "wid".
915///
916/// \param [in] wid window identifier.
917/// - 999 means all opened windows.
918/// \param [in] mode the on/off switch
919/// - mode = 1 double buffer is on
920/// - mode = 0 double buffer is off
921
923{
924}
925
926////////////////////////////////////////////////////////////////////////////////
927/// Turns double buffer mode off.
928
932
933////////////////////////////////////////////////////////////////////////////////
934/// Turns double buffer mode on.
935
939
940////////////////////////////////////////////////////////////////////////////////
941/// Sets the drawing mode.
942///
943/// \param [in] mode drawing mode.
944/// - mode = 1 copy
945/// - mode = 2 xor
946/// - mode = 3 invert
947/// - mode = 4 set the suitable mode for cursor echo according to the vendor
948
950{
951}
952
953////////////////////////////////////////////////////////////////////////////////
954/// Sets color index "cindex" for fill areas.
955
957{
958}
959
960////////////////////////////////////////////////////////////////////////////////
961/// Sets fill area style.
962///
963/// \param [in] style compound fill area interior style
964/// - style = 1000 * interiorstyle + styleindex
965
967{
968}
969
970////////////////////////////////////////////////////////////////////////////////
971/// Sets color index "cindex" for drawing lines.
972
974{
975}
976
977////////////////////////////////////////////////////////////////////////////////
978/// Sets the line type.
979///
980/// \param [in] n length of the dash list
981/// - n <= 0 use solid lines
982/// - n > 0 use dashed lines described by dash(n)
983/// e.g. n = 4,dash = (6,3,1,3) gives a dashed-dotted line
984/// with dash length 6 and a gap of 7 between dashes
985/// \param [in] dash dash segment lengths
986
987void TVirtualX::SetLineType(Int_t /*n*/, Int_t * /*dash*/)
988{
989}
990
991////////////////////////////////////////////////////////////////////////////////
992/// Sets the line style.
993///
994/// \param [in] linestyle line style.
995/// - linestyle <= 1 solid
996/// - linestyle = 2 dashed
997/// - linestyle = 3 dotted
998/// - linestyle = 4 dashed-dotted
999
1001{
1002}
1003
1004////////////////////////////////////////////////////////////////////////////////
1005/// Sets the line width.
1006///
1007/// \param [in] width the line width in pixels
1008
1010{
1011}
1012
1013////////////////////////////////////////////////////////////////////////////////
1014/// Sets color index "cindex" for markers.
1015
1017{
1018}
1019
1020////////////////////////////////////////////////////////////////////////////////
1021/// Sets marker size index.
1022///
1023/// \param [in] markersize the marker scale factor
1024
1026{
1027}
1028
1029////////////////////////////////////////////////////////////////////////////////
1030/// Sets marker style.
1031
1033{
1034}
1035
1036////////////////////////////////////////////////////////////////////////////////
1037/// Sets opacity of the current window. This image manipulation routine
1038/// works by adding to a percent amount of neutral to each pixels RGB.
1039/// Since it requires quite some additional color map entries is it
1040/// only supported on displays with more than > 8 color planes (> 256
1041/// colors).
1042
1044{
1045}
1046
1047////////////////////////////////////////////////////////////////////////////////
1048/// Sets color intensities the specified color index "cindex".
1049///
1050/// \param [in] cindex color index
1051/// \param [in] r, g, b the red, green, blue intensities between 0.0 and 1.0
1052
1053void TVirtualX::SetRGB(Int_t /*cindex*/, Float_t /*r*/, Float_t /*g*/,
1054 Float_t /*b*/)
1055{
1056}
1057
1058////////////////////////////////////////////////////////////////////////////////
1059/// Sets the text alignment.
1060///
1061/// \param [in] talign text alignment.
1062/// - talign = txalh horizontal text alignment
1063/// - talign = txalv vertical text alignment
1064
1066{
1067}
1068
1069////////////////////////////////////////////////////////////////////////////////
1070/// Sets the color index "cindex" for text.
1071
1073{
1074}
1075
1076////////////////////////////////////////////////////////////////////////////////
1077/// Sets text font to specified name "fontname".This function returns 0 if
1078/// the specified font is found, 1 if it is not.
1079///
1080/// \param [in] fontname font name
1081/// \param [in] mode loading flag
1082/// - mode = 0 search if the font exist (kCheck)
1083/// - mode = 1 search the font and load it if it exists (kLoad)
1084
1085Int_t TVirtualX::SetTextFont(char * /*fontname*/, ETextSetMode /*mode*/)
1086{
1087 return 0;
1088}
1089
1090////////////////////////////////////////////////////////////////////////////////
1091/// Sets the current text font number.
1092
1093void TVirtualX::SetTextFont(Font_t /*fontnumber*/)
1094{
1095}
1096
1097////////////////////////////////////////////////////////////////////////////////
1098/// Sets the current text magnification factor to "mgn"
1099
1101{
1102}
1103
1104////////////////////////////////////////////////////////////////////////////////
1105/// Sets the current text size to "textsize"
1106
1108{
1109}
1110
1111////////////////////////////////////////////////////////////////////////////////
1112/// Set synchronisation on or off.
1113///
1114/// \param [in] mode synchronisation on/off
1115/// - mode=1 on
1116/// - mode<>0 off
1117
1119{
1120}
1121
1122////////////////////////////////////////////////////////////////////////////////
1123/// Updates or synchronises client and server once (not permanent).
1124/// according to "mode".
1125///
1126/// \param [in] mode update mode.
1127/// - mode = 1 update
1128/// - mode = 0 sync
1129
1131{
1132}
1133
1134////////////////////////////////////////////////////////////////////////////////
1135/// Sets the pointer position.
1136///
1137/// \param [in] ix new X coordinate of pointer
1138/// \param [in] iy new Y coordinate of pointer
1139/// \param [in] id window identifier
1140///
1141/// Coordinates are relative to the origin of the window id
1142/// or to the origin of the current window if id == 0.
1143
1144void TVirtualX::Warp(Int_t /*ix*/, Int_t /*iy*/, Window_t /*id*/)
1145{
1146}
1147
1148////////////////////////////////////////////////////////////////////////////////
1149/// Writes the current window into GIF file.
1150/// Returns 1 in case of success, 0 otherwise.
1151
1153{
1154 return 0;
1155}
1156
1157////////////////////////////////////////////////////////////////////////////////
1158/// Writes the pixmap "wid" in the bitmap file "pxname".
1159///
1160/// \param [in] wid the pixmap address
1161/// \param [in] w, h the width and height of the pixmap.
1162/// \param [in] pxname the file name
1163
1164void TVirtualX::WritePixmap(Int_t /*wid*/, UInt_t /*w*/, UInt_t /*h*/,
1165 char * /*pxname*/)
1166{
1167}
1168
1169
1170//---- Methods used for GUI -----
1171////////////////////////////////////////////////////////////////////////////////
1172/// Maps the window "id" and all of its subwindows that have had map
1173/// requests. This function has no effect if the window is already mapped.
1174
1176{
1177}
1178
1179////////////////////////////////////////////////////////////////////////////////
1180/// Maps all subwindows for the specified window "id" in top-to-bottom
1181/// stacking order.
1182
1184{
1185}
1186
1187////////////////////////////////////////////////////////////////////////////////
1188/// Maps the window "id" and all of its subwindows that have had map
1189/// requests on the screen and put this window on the top of of the
1190/// stack of all windows.
1191
1193{
1194}
1195
1196////////////////////////////////////////////////////////////////////////////////
1197/// Unmaps the specified window "id". If the specified window is already
1198/// unmapped, this function has no effect. Any child window will no longer
1199/// be visible (but they are still mapped) until another map call is made
1200/// on the parent.
1201
1203{
1204}
1205
1206////////////////////////////////////////////////////////////////////////////////
1207/// Destroys the window "id" as well as all of its subwindows.
1208/// The window should never be referenced again. If the window specified
1209/// by the "id" argument is mapped, it is unmapped automatically.
1210
1212{
1213}
1214
1215////////////////////////////////////////////////////////////////////////////////
1216/// The DestroySubwindows function destroys all inferior windows of the
1217/// specified window, in bottom-to-top stacking order.
1218
1222
1223////////////////////////////////////////////////////////////////////////////////
1224/// Raises the specified window to the top of the stack so that no
1225/// sibling window obscures it.
1226
1228{
1229}
1230
1231////////////////////////////////////////////////////////////////////////////////
1232/// Lowers the specified window "id" to the bottom of the stack so
1233/// that it does not obscure any sibling windows.
1234
1236{
1237}
1238
1239////////////////////////////////////////////////////////////////////////////////
1240/// Moves the specified window to the specified x and y coordinates.
1241/// It does not change the window's size, raise the window, or change
1242/// the mapping state of the window.
1243///
1244/// \param [in] id window identifier
1245/// \param [in] x, y coordinates, which define the new position of the window
1246/// relative to its parent.
1247
1248void TVirtualX::MoveWindow(Window_t /*id*/, Int_t /*x*/, Int_t /*y*/)
1249{
1250}
1251
1252////////////////////////////////////////////////////////////////////////////////
1253/// Changes the size and location of the specified window "id" without
1254/// raising it.
1255///
1256/// \param [in] id window identifier
1257/// \param [in] x, y coordinates, which define the new position of the window
1258/// relative to its parent.
1259/// \param [in] w, h the width and height, which define the interior size of
1260/// the window
1261
1263 UInt_t /*w*/, UInt_t /*h*/)
1264{
1265}
1266
1267////////////////////////////////////////////////////////////////////////////////
1268/// Changes the width and height of the specified window "id", not
1269/// including its borders. This function does not change the window's
1270/// upper-left coordinate.
1271///
1272/// \param [in] id window identifier
1273/// \param [in] w, h the width and height, which are the interior dimensions of
1274/// the window after the call completes.
1275
1277{
1278}
1279
1280////////////////////////////////////////////////////////////////////////////////
1281/// Iconifies the window "id".
1282
1284{
1285}
1286////////////////////////////////////////////////////////////////////////////////
1287/// Notify the low level GUI layer ROOT requires "tgwindow" to be
1288/// updated
1289///
1290/// Returns kTRUE if the notification was desirable and it was sent
1291///
1292/// At the moment only Qt4 layer needs that
1293///
1294/// One needs explicitly cast the first parameter to TGWindow to make
1295/// it working in the implementation.
1296///
1297/// One needs to process the notification to confine
1298/// all paint operations within "expose" / "paint" like low level event
1299/// or equivalent
1300
1302{
1303 return kFALSE;
1304}
1305
1306////////////////////////////////////////////////////////////////////////////////
1307/// If the specified window is mapped, ReparentWindow automatically
1308/// performs an UnmapWindow request on it, removes it from its current
1309/// position in the hierarchy, and inserts it as the child of the specified
1310/// parent. The window is placed in the stacking order on top with respect
1311/// to sibling windows.
1312
1314 Int_t /*x*/, Int_t /*y*/)
1315{
1316}
1317
1318////////////////////////////////////////////////////////////////////////////////
1319/// Sets the background of the window "id" to the specified color value
1320/// "color". Changing the background does not cause the window contents
1321/// to be changed.
1322
1324{
1325}
1326
1327////////////////////////////////////////////////////////////////////////////////
1328/// Sets the background pixmap of the window "id" to the specified
1329/// pixmap "pxm".
1330
1334
1335////////////////////////////////////////////////////////////////////////////////
1336/// Creates an unmapped subwindow for a specified parent window and returns
1337/// the created window. The created window is placed on top in the stacking
1338/// order with respect to siblings. The coordinate system has the X axis
1339/// horizontal and the Y axis vertical with the origin [0,0] at the
1340/// upper-left corner. Each window and pixmap has its own coordinate system.
1341///
1342/// \param [in] parent the parent window
1343/// \param [in] x, y coordinates, the top-left outside corner of the window's
1344/// borders; relative to the inside of the parent window's borders
1345/// \param [in] w, h width and height of the created window; do not include the
1346/// created window's borders
1347/// \param [in] border the border pixel value of the window
1348/// \param [in] depth the window's depth
1349/// \param [in] clss the created window's class; can be InputOutput, InputOnly, or
1350/// CopyFromParent
1351/// \param [in] visual the visual type
1352/// \param [in] attr the structure from which the values are to be taken.
1353/// \param [in] wtype the window type
1354
1356 UInt_t /*w*/, UInt_t /*h*/,
1357 UInt_t /*border*/, Int_t /*depth*/,
1358 UInt_t /*clss*/, void * /*visual*/,
1359 SetWindowAttributes_t * /*attr*/,
1360 UInt_t /*wtype*/)
1361{
1362 return 0;
1363}
1364
1365////////////////////////////////////////////////////////////////////////////////
1366/// Opens connection to display server (if such a thing exist on the
1367/// current platform). The encoding and interpretation of the display
1368/// name.
1369///
1370/// On X11 this method returns on success the X display socket descriptor
1371/// >0, 0 in case of batch mode, and <0 in case of failure (cannot connect
1372/// to display dpyName).
1373
1374Int_t TVirtualX::OpenDisplay(const char * /*dpyName*/)
1375{
1376 return 0;
1377}
1378
1379////////////////////////////////////////////////////////////////////////////////
1380/// Closes connection to display server and destroys all windows.
1381
1383{
1384}
1385
1386////////////////////////////////////////////////////////////////////////////////
1387/// Returns handle to display (might be useful in some cases where
1388/// direct X11 manipulation outside of TVirtualX is needed, e.g. GL
1389/// interface).
1390
1392{
1393 return 0;
1394}
1395
1396////////////////////////////////////////////////////////////////////////////////
1397/// Returns handle to visual.
1398///
1399/// Might be useful in some cases where direct X11 manipulation outside
1400/// of TVirtualX is needed, e.g. GL interface.
1401
1403{
1404 return 0;
1405}
1406
1407////////////////////////////////////////////////////////////////////////////////
1408/// Returns screen number.
1409///
1410/// Might be useful in some cases where direct X11 manipulation outside
1411/// of TVirtualX is needed, e.g. GL interface.
1412
1414{
1415 return 0;
1416}
1417
1418////////////////////////////////////////////////////////////////////////////////
1419/// Returns depth of screen (number of bit planes).
1420/// Equivalent to GetPlanes().
1421
1423{
1424 return 0;
1425}
1426
1427////////////////////////////////////////////////////////////////////////////////
1428/// Returns handle to colormap.
1429///
1430/// Might be useful in some cases where direct X11 manipulation outside
1431/// of TVirtualX is needed, e.g. GL interface.
1432
1434{
1435 return 0;
1436}
1437
1438////////////////////////////////////////////////////////////////////////////////
1439/// Returns handle to the default root window created when calling
1440/// XOpenDisplay().
1441
1443{
1444 return 0;
1445}
1446
1447////////////////////////////////////////////////////////////////////////////////
1448/// Returns the atom identifier associated with the specified "atom_name"
1449/// string. If "only_if_exists" is False, the atom is created if it does
1450/// not exist. If the atom name is not in the Host Portable Character
1451/// Encoding, the result is implementation dependent. Uppercase and
1452/// lowercase matter; the strings "thing", "Thing", and "thinG" all
1453/// designate different atoms.
1454
1455Atom_t TVirtualX::InternAtom(const char * /*atom_name*/,
1456 Bool_t /*only_if_exist*/)
1457{
1458 return 0;
1459}
1460
1461////////////////////////////////////////////////////////////////////////////////
1462/// Returns the parent of the window "id".
1463
1465{
1466 return 0;
1467}
1468
1469////////////////////////////////////////////////////////////////////////////////
1470/// Provides the most common way for accessing a font: opens (loads) the
1471/// specified font and returns a pointer to the appropriate FontStruct_t
1472/// structure. If the font does not exist, it returns NULL.
1473
1474FontStruct_t TVirtualX::LoadQueryFont(const char * /*font_name*/)
1475{
1476 return 0;
1477}
1478
1479////////////////////////////////////////////////////////////////////////////////
1480/// Returns the font handle of the specified font structure "fs".
1481
1483{
1484 return 0;
1485}
1486
1487////////////////////////////////////////////////////////////////////////////////
1488/// Explicitly deletes the font structure "fs" obtained via LoadQueryFont().
1489
1491{
1492}
1493
1494////////////////////////////////////////////////////////////////////////////////
1495/// Creates a graphics context using the provided GCValues_t *gval structure.
1496/// The mask data member of gval specifies which components in the GC are
1497/// to be set using the information in the specified values structure.
1498/// It returns a graphics context handle GContext_t that can be used with any
1499/// destination drawable or O if the creation falls.
1500
1502{
1503 return 0;
1504}
1505
1506////////////////////////////////////////////////////////////////////////////////
1507/// Changes the components specified by the mask in gval for the specified GC.
1508///
1509/// \param [in] gc specifies the GC to be changed
1510/// \param [in] gval specifies the mask and the values to be set
1511///
1512/// (see also the GCValues_t structure)
1513
1515{
1516}
1517
1518////////////////////////////////////////////////////////////////////////////////
1519/// Copies the specified components from the source GC "org" to the
1520/// destination GC "dest". The "mask" defines which component to copy
1521/// and it is a data member of GCValues_t.
1522
1523void TVirtualX::CopyGC(GContext_t /*org*/, GContext_t /*dest*/, Mask_t /*mask*/)
1524{
1525}
1526
1527////////////////////////////////////////////////////////////////////////////////
1528/// Deletes the specified GC "gc".
1529
1531{
1532}
1533
1534////////////////////////////////////////////////////////////////////////////////
1535/// Creates the specified cursor. (just return cursor from cursor pool).
1536/// The cursor can be:
1537/// ~~~ {.cpp}
1538/// kBottomLeft, kBottomRight, kTopLeft, kTopRight,
1539/// kBottomSide, kLeftSide, kTopSide, kRightSide,
1540/// kMove, kCross, kArrowHor, kArrowVer,
1541/// kHand, kRotate, kPointer, kArrowRight,
1542/// kCaret, kWatch
1543/// ~~~
1544
1546{
1547 return 0;
1548}
1549
1550////////////////////////////////////////////////////////////////////////////////
1551/// Sets the cursor "curid" to be used when the pointer is in the
1552/// window "id".
1553
1555{
1556}
1557
1558////////////////////////////////////////////////////////////////////////////////
1559/// Creates a pixmap of the specified width and height and returns
1560/// a pixmap ID that identifies it.
1561
1563{
1564 return kNone;
1565}
1566////////////////////////////////////////////////////////////////////////////////
1567/// Creates a pixmap from bitmap data of the width, height, and depth you
1568/// specified and returns a pixmap that identifies it. The width and height
1569/// arguments must be nonzero. The depth argument must be one of the depths
1570/// supported by the screen of the specified drawable.
1571///
1572/// \param [in] id specifies which screen the pixmap is created on
1573/// \param [in] bitmap the data in bitmap format
1574/// \param [in] width, height define the dimensions of the pixmap
1575/// \param [in] forecolor the foreground pixel values to use
1576/// \param [in] backcolor the background pixel values to use
1577/// \param [in] depth the depth of the pixmap
1578
1579Pixmap_t TVirtualX::CreatePixmap(Drawable_t /*id*/, const char * /*bitmap*/,
1580 UInt_t /*width*/, UInt_t /*height*/,
1581 ULong_t /*forecolor*/, ULong_t /*backcolor*/,
1582 Int_t /*depth*/)
1583{
1584 return 0;
1585}
1586
1587////////////////////////////////////////////////////////////////////////////////
1588/// Creates a bitmap (i.e. pixmap with depth 1) from the bitmap data.
1589///
1590/// \param [in] id specifies which screen the pixmap is created on
1591/// \param [in] bitmap the data in bitmap format
1592/// \param [in] width, height define the dimensions of the pixmap
1593
1594Pixmap_t TVirtualX::CreateBitmap(Drawable_t /*id*/, const char * /*bitmap*/,
1595 UInt_t /*width*/, UInt_t /*height*/)
1596{
1597 return 0;
1598}
1599
1600////////////////////////////////////////////////////////////////////////////////
1601/// Explicitly deletes the pixmap resource "pmap".
1602
1604{
1605}
1606
1607////////////////////////////////////////////////////////////////////////////////
1608/// Creates a picture pict from data in file "filename". The picture
1609/// attributes "attr" are used for input and output. Returns kTRUE in
1610/// case of success, kFALSE otherwise. If the mask "pict_mask" does not
1611/// exist it is set to kNone.
1612
1614 const char * /*filename*/,
1615 Pixmap_t &/*pict*/,
1616 Pixmap_t &/*pict_mask*/,
1617 PictureAttributes_t &/*attr*/)
1618{
1619 return kFALSE;
1620}
1621
1622////////////////////////////////////////////////////////////////////////////////
1623/// Creates a picture pict from data in bitmap format. The picture
1624/// attributes "attr" are used for input and output. Returns kTRUE in
1625/// case of success, kFALSE otherwise. If the mask "pict_mask" does not
1626/// exist it is set to kNone.
1627
1629 Pixmap_t &/*pict*/,
1630 Pixmap_t &/*pict_mask*/,
1631 PictureAttributes_t & /*attr*/)
1632{
1633 return kFALSE;
1634}
1635////////////////////////////////////////////////////////////////////////////////
1636/// Reads picture data from file "filename" and store it in "ret_data".
1637/// Returns kTRUE in case of success, kFALSE otherwise.
1638
1640 char *** /*ret_data*/)
1641{
1642 return kFALSE;
1643}
1644
1645////////////////////////////////////////////////////////////////////////////////
1646/// Delete picture data created by the function ReadPictureDataFromFile.
1647
1648void TVirtualX::DeletePictureData(void * /*data*/)
1649{
1650}
1651
1652////////////////////////////////////////////////////////////////////////////////
1653/// Sets the dash-offset and dash-list attributes for dashed line styles
1654/// in the specified GC. There must be at least one element in the
1655/// specified dash_list. The initial and alternating elements (second,
1656/// fourth, and so on) of the dash_list are the even dashes, and the
1657/// others are the odd dashes. Each element in the "dash_list" array
1658/// specifies the length (in pixels) of a segment of the pattern.
1659///
1660/// \param [in] gc specifies the GC (see GCValues_t structure)
1661/// \param [in] offset the phase of the pattern for the dashed line-style you
1662/// want to set for the specified GC.
1663/// \param [in] dash_list the dash-list for the dashed line-style you want to set
1664/// for the specified GC
1665/// \param [in] n the number of elements in dash_list
1666/// (see also the GCValues_t structure)
1667
1668void TVirtualX::SetDashes(GContext_t /*gc*/, Int_t /*offset*/,
1669 const char * /*dash_list*/, Int_t /*n*/)
1670{
1671}
1672
1673////////////////////////////////////////////////////////////////////////////////
1674/// Frees color cell with specified pixel value.
1675
1676void TVirtualX::FreeColor(Colormap_t /*cmap*/, ULong_t /*pixel*/)
1677{
1678}
1679
1680////////////////////////////////////////////////////////////////////////////////
1681/// Returns the number of events that have been received from the X server
1682/// but have not been removed from the event queue.
1683
1685{
1686 return 0;
1687}
1688
1689////////////////////////////////////////////////////////////////////////////////
1690/// Sets the sound bell. Percent is loudness from -100% to 100%.
1691
1692void TVirtualX::Bell(Int_t /*percent*/)
1693{
1694}
1695
1696////////////////////////////////////////////////////////////////////////////////
1697/// Combines the specified rectangle of "src" with the specified rectangle
1698/// of "dest" according to the "gc".
1699///
1700/// \param [in] src source rectangle
1701/// \param [in] dest destination rectangle
1702/// \param [in] gc graphics context
1703/// \param [in] src_x, src_y specify the x and y coordinates, which are relative
1704/// to the origin of the source rectangle and specify
1705/// upper-left corner.
1706/// \param [in] width, height the width and height, which are the dimensions of both
1707/// the source and destination rectangles
1708/// \param [in] dest_x, dest_y specify the upper-left corner of the destination
1709/// rectangle
1710///
1711/// GC components in use: function, plane-mask, subwindow-mode,
1712/// graphics-exposure, clip-x-origin, clip-y-origin, and clip-mask.
1713/// (see also the GCValues_t structure)
1714
1716 GContext_t /*gc*/, Int_t /*src_x*/, Int_t /*src_y*/,
1717 UInt_t /*width*/, UInt_t /*height*/,
1718 Int_t /*dest_x*/, Int_t /*dest_y*/)
1719{
1720}
1721
1722////////////////////////////////////////////////////////////////////////////////
1723/// Changes the attributes of the specified window "id" according the
1724/// values provided in "attr". The mask data member of "attr" specifies
1725/// which window attributes are defined in the attributes argument.
1726/// This mask is the bitwise inclusive OR of the valid attribute mask
1727/// bits; if it is zero, the attributes are ignored.
1728
1730 SetWindowAttributes_t * /*attr*/)
1731{
1732}
1733
1734////////////////////////////////////////////////////////////////////////////////
1735/// Alters the property for the specified window and causes the X server
1736/// to generate a PropertyNotify event on that window.
1737///
1738/// \param [in] id the window whose property you want to change
1739/// \param [in] property specifies the property name
1740/// \param [in] type the type of the property; the X server does not
1741/// interpret the type but simply passes it back to
1742/// an application that might ask about the window
1743/// properties
1744/// \param [in] data the property data
1745/// \param [in] len the length of the specified data format
1746
1748 Atom_t /*type*/, UChar_t * /*data*/,
1749 Int_t /*len*/)
1750{
1751}
1752
1753////////////////////////////////////////////////////////////////////////////////
1754/// Alters the property for the specified window and causes the X server
1755/// to generate a PropertyNotify event on that window.
1756///
1757/// \param [in] id the window whose property you want to change
1758/// \param [in] hint specifies the type to be changed
1759
1761{
1762}
1763
1764////////////////////////////////////////////////////////////////////////////////
1765/// Uses the components of the specified GC to draw a line between the
1766/// specified set of points (x1, y1) and (x2, y2).
1767///
1768/// GC components in use: function, plane-mask, line-width, line-style,
1769/// cap-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin,
1770/// and clip-mask.
1771///
1772/// GC mode-dependent components: foreground, background, tile, stipple,
1773/// tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dash-list.
1774/// (see also the GCValues_t structure)
1775
1777 Int_t /*x1*/, Int_t /*y1*/, Int_t /*x2*/, Int_t /*y2*/)
1778{
1779}
1780
1781////////////////////////////////////////////////////////////////////////////////
1782/// Paints a rectangular area in the specified window "id" according to
1783/// the specified dimensions with the window's background pixel or pixmap.
1784///
1785/// \param [in] id specifies the window
1786/// \param [in] x, y coordinates, which are relative to the origin
1787/// \param [in] w, h the width and height which define the rectangle dimensions
1788
1789void TVirtualX::ClearArea(Window_t /*id*/, Int_t /*x*/, Int_t /*y*/,
1790 UInt_t /*w*/, UInt_t /*h*/)
1791{
1792}
1793
1794////////////////////////////////////////////////////////////////////////////////
1795/// Check if there is for window "id" an event of type "type". If there
1796/// is it fills in the event structure and return true. If no such event
1797/// return false.
1798
1800 Event_t &/*ev*/)
1801{
1802 return kFALSE;
1803}
1804
1805////////////////////////////////////////////////////////////////////////////////
1806/// Specifies the event "ev" is to be sent to the window "id".
1807/// This function requires you to pass an event mask.
1808
1810{
1811}
1812
1813////////////////////////////////////////////////////////////////////////////////
1814/// Force processing of event, sent by SendEvent before.
1815
1817{
1818}
1819
1820////////////////////////////////////////////////////////////////////////////////
1821/// Tells WM to send message when window is closed via WM.
1822
1824{
1825}
1826
1827////////////////////////////////////////////////////////////////////////////////
1828/// Turns key auto repeat on (kTRUE) or off (kFALSE).
1829
1831{
1832}
1833
1834////////////////////////////////////////////////////////////////////////////////
1835/// Establishes a passive grab on the keyboard. In the future, the
1836/// keyboard is actively grabbed, the last-keyboard-grab time is set
1837/// to the time at which the key was pressed (as transmitted in the
1838/// KeyPress event), and the KeyPress event is reported if all of the
1839/// following conditions are true:
1840///
1841/// - the keyboard is not grabbed and the specified key (which can
1842/// itself be a modifier key) is logically pressed when the
1843/// specified modifier keys are logically down, and no other
1844/// modifier keys are logically down;
1845/// - either the grab window "id" is an ancestor of (or is) the focus
1846/// window, or "id" is a descendant of the focus window and contains
1847/// the pointer;
1848/// - a passive grab on the same key combination does not exist on any
1849/// ancestor of grab_window
1850///
1851/// \param [in] id window id
1852/// \param [in] keycode specifies the KeyCode or AnyKey
1853/// \param [in] modifier specifies the set of keymasks or AnyModifier; the mask is
1854/// the bitwise inclusive OR of the valid keymask bits
1855/// \param [in] grab a switch between grab/ungrab key
1856/// grab = kTRUE grab the key and modifier
1857/// grab = kFALSE ungrab the key and modifier
1858
1859void TVirtualX::GrabKey(Window_t /*id*/, Int_t /*keycode*/, UInt_t /*modifier*/,
1860 Bool_t /*grab = kTRUE*/)
1861{
1862}
1863
1864////////////////////////////////////////////////////////////////////////////////
1865/// Establishes a passive grab on a certain mouse button. That is, when a
1866/// certain mouse button is hit while certain modifier's (Shift, Control,
1867/// Meta, Alt) are active then the mouse will be grabbed for window id.
1868/// When grab is false, ungrab the mouse button for this button and modifier.
1869
1871 UInt_t /*modifier*/, UInt_t /*evmask*/,
1872 Window_t /*confine*/, Cursor_t /*cursor*/,
1873 Bool_t /*grab = kTRUE*/)
1874{
1875}
1876
1877////////////////////////////////////////////////////////////////////////////////
1878/// Establishes an active pointer grab. While an active pointer grab is in
1879/// effect, further pointer events are only reported to the grabbing
1880/// client window.
1881
1883 Window_t /*confine*/, Cursor_t /*cursor*/,
1884 Bool_t /*grab = kTRUE*/,
1885 Bool_t /*owner_events = kTRUE*/)
1886{
1887}
1888
1889////////////////////////////////////////////////////////////////////////////////
1890/// Sets the window name.
1891
1892void TVirtualX::SetWindowName(Window_t /*id*/, char * /*name*/)
1893{
1894}
1895
1896////////////////////////////////////////////////////////////////////////////////
1897/// Sets the window icon name.
1898
1899void TVirtualX::SetIconName(Window_t /*id*/, char * /*name*/)
1900{
1901}
1902
1903////////////////////////////////////////////////////////////////////////////////
1904/// Sets the icon name pixmap.
1905
1907{
1908}
1909
1910////////////////////////////////////////////////////////////////////////////////
1911/// Sets the windows class and resource name.
1912
1913void TVirtualX::SetClassHints(Window_t /*id*/, char * /*className*/,
1914 char * /*resourceName*/)
1915{
1916}
1917
1918////////////////////////////////////////////////////////////////////////////////
1919/// Sets decoration style.
1920
1921void TVirtualX::SetMWMHints(Window_t /*id*/, UInt_t /*value*/, UInt_t /*funcs*/,
1922 UInt_t /*input*/)
1923{
1924}
1925
1926////////////////////////////////////////////////////////////////////////////////
1927/// Tells the window manager the desired position [x,y] of window "id".
1928
1930{
1931}
1932
1933////////////////////////////////////////////////////////////////////////////////
1934/// Tells window manager the desired size of window "id".
1935///
1936/// \param [in] id window identifier
1937/// \param [in] w the width
1938/// \param [in] h the height
1939
1940void TVirtualX::SetWMSize(Window_t /*id*/, UInt_t /*w*/, UInt_t /*h*/)
1941{
1942}
1943
1944////////////////////////////////////////////////////////////////////////////////
1945/// Gives the window manager minimum and maximum size hints of the window
1946/// "id". Also specify via "winc" and "hinc" the resize increments.
1947///
1948/// \param [in] id window identifier
1949/// \param [in] wmin, hmin specify the minimum window size
1950/// \param [in] wmax, hmax specify the maximum window size
1951/// \param [in] winc, hinc define an arithmetic progression of sizes into which
1952/// the window to be resized (minimum to maximum)
1953
1954void TVirtualX::SetWMSizeHints(Window_t /*id*/, UInt_t /*wmin*/, UInt_t /*hmin*/,
1955 UInt_t /*wmax*/, UInt_t /*hmax*/,
1956 UInt_t /*winc*/, UInt_t /*hinc*/)
1957{
1958}
1959
1960////////////////////////////////////////////////////////////////////////////////
1961/// Sets the initial state of the window "id": either kNormalState
1962/// or kIconicState.
1963
1965{
1966}
1967
1968////////////////////////////////////////////////////////////////////////////////
1969/// Tells window manager that the window "id" is a transient window
1970/// of the window "main_id". A window manager may decide not to decorate
1971/// a transient window or may treat it differently in other ways.
1972
1974{
1975}
1976
1977////////////////////////////////////////////////////////////////////////////////
1978/// Each character image, as defined by the font in the GC, is treated as an
1979/// additional mask for a fill operation on the drawable.
1980///
1981/// \param [in] id the drawable
1982/// \param [in] gc the GC
1983/// \param [in] x, y coordinates, which are relative to the origin of the specified
1984/// drawable and define the origin of the first character
1985/// \param [in] s the character string
1986/// \param [in] len the number of characters in the string argument
1987///
1988/// GC components in use: function, plane-mask, fill-style, font,
1989/// subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
1990/// GC mode-dependent components: foreground, background, tile, stipple,
1991/// tile-stipple-x-origin, and tile-stipple-y-origin.
1992/// (see also the GCValues_t structure)
1993
1995 Int_t /*y*/, const char * /*s*/, Int_t /*len*/)
1996{
1997}
1998
1999////////////////////////////////////////////////////////////////////////////////
2000/// Return length of the string "s" in pixels. Size depends on font.
2001
2002Int_t TVirtualX::TextWidth(FontStruct_t /*font*/, const char * /*s*/,
2003 Int_t /*len*/)
2004{
2005 return 5;
2006}
2007
2008////////////////////////////////////////////////////////////////////////////////
2009/// Returns the font properties.
2010
2017
2018////////////////////////////////////////////////////////////////////////////////
2019/// Returns the components specified by the mask in "gval" for the
2020/// specified GC "gc" (see also the GCValues_t structure)
2021
2023{
2024 gval.fMask = 0;
2025}
2026
2027////////////////////////////////////////////////////////////////////////////////
2028/// Return the font associated with the graphics context gc
2029
2031{
2032 return 0;
2033}
2034
2035////////////////////////////////////////////////////////////////////////////////
2036/// Retrieves the associated font structure of the font specified font
2037/// handle "fh".
2038///
2039/// Free returned FontStruct_t using FreeFontStruct().
2040
2042{
2043 return 0;
2044}
2045
2046////////////////////////////////////////////////////////////////////////////////
2047/// Frees the font structure "fs". The font itself will be freed when
2048/// no other resource references it.
2049
2053
2054////////////////////////////////////////////////////////////////////////////////
2055/// Clears the entire area in the specified window and it is equivalent to
2056/// ClearArea(id, 0, 0, 0, 0)
2057
2059{
2060}
2061
2062////////////////////////////////////////////////////////////////////////////////
2063/// Converts the "keysym" to the appropriate keycode. For example,
2064/// keysym is a letter and keycode is the matching keyboard key (which
2065/// is dependent on the current keyboard mapping). If the specified
2066/// "keysym" is not defined for any keycode, returns zero.
2067
2069{
2070 return 0;
2071}
2072
2073////////////////////////////////////////////////////////////////////////////////
2074/// Fills the specified rectangle defined by [x,y] [x+w,y] [x+w,y+h] [x,y+h].
2075/// using the GC you specify.
2076///
2077/// GC components in use are: function, plane-mask, fill-style,
2078/// subwindow-mode, clip-x-origin, clip-y-origin, clip-mask.
2079/// GC mode-dependent components: foreground, background, tile, stipple,
2080/// tile-stipple-x-origin, and tile-stipple-y-origin.
2081/// (see also the GCValues_t structure)
2082
2084 Int_t /*x*/, Int_t /*y*/,
2085 UInt_t /*w*/, UInt_t /*h*/)
2086{
2087}
2088
2089////////////////////////////////////////////////////////////////////////////////
2090/// Draws rectangle outlines of [x,y] [x+w,y] [x+w,y+h] [x,y+h]
2091///
2092/// GC components in use: function, plane-mask, line-width, line-style,
2093/// cap-style, join-style, fill-style, subwindow-mode, clip-x-origin,
2094/// clip-y-origin, clip-mask.
2095/// GC mode-dependent components: foreground, background, tile, stipple,
2096/// tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dash-list.
2097/// (see also the GCValues_t structure)
2098
2100 Int_t /*x*/, Int_t /*y*/,
2101 UInt_t /*w*/, UInt_t /*h*/)
2102{
2103}
2104
2105////////////////////////////////////////////////////////////////////////////////
2106/// Draws multiple line segments. Each line is specified by a pair of points.
2107///
2108/// \param [in] id Drawable identifier
2109/// \param [in] gc graphics context
2110/// \param [in] *seg specifies an array of segments
2111/// \param [in] nseg specifies the number of segments in the array
2112///
2113/// GC components in use: function, plane-mask, line-width, line-style,
2114/// cap-style, join-style, fill-style, subwindow-mode, clip-x-origin,
2115/// clip-y-origin, clip-mask.
2116///
2117/// GC mode-dependent components: foreground, background, tile, stipple,
2118/// tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, and dash-list.
2119/// (see also the GCValues_t structure)
2120
2122 Segment_t * /*seg*/, Int_t /*nseg*/)
2123{
2124}
2125
2126////////////////////////////////////////////////////////////////////////////////
2127/// Defines which input events the window is interested in. By default
2128/// events are propagated up the window stack. This mask can also be
2129/// set at window creation time via the SetWindowAttributes_t::fEventMask
2130/// attribute.
2131
2133{
2134}
2135
2136////////////////////////////////////////////////////////////////////////////////
2137/// Returns the window id of the window having the input focus.
2138
2140{
2141 return kNone;
2142}
2143
2144////////////////////////////////////////////////////////////////////////////////
2145/// Changes the input focus to specified window "id".
2146
2148{
2149}
2150
2151////////////////////////////////////////////////////////////////////////////////
2152/// Returns the window id of the current owner of the primary selection.
2153/// That is the window in which, for example some text is selected.
2154
2159
2160////////////////////////////////////////////////////////////////////////////////
2161/// Makes the window "id" the current owner of the primary selection.
2162/// That is the window in which, for example some text is selected.
2163
2167
2168////////////////////////////////////////////////////////////////////////////////
2169/// Causes a SelectionRequest event to be sent to the current primary
2170/// selection owner. This event specifies the selection property
2171/// (primary selection), the format into which to convert that data before
2172/// storing it (target = XA_STRING), the property in which the owner will
2173/// place the information (sel_property), the window that wants the
2174/// information (id), and the time of the conversion request (when).
2175/// The selection owner responds by sending a SelectionNotify event, which
2176/// confirms the selected atom and type.
2177
2179 Time_t /*when*/)
2180{
2181}
2182
2183////////////////////////////////////////////////////////////////////////////////
2184/// Converts the keycode from the event structure to a key symbol (according
2185/// to the modifiers specified in the event structure and the current
2186/// keyboard mapping). In "buf" a null terminated ASCII string is returned
2187/// representing the string that is currently mapped to the key code.
2188///
2189/// \param [in] event specifies the event structure to be used
2190/// \param [in] buf returns the translated characters
2191/// \param [in] buflen the length of the buffer
2192/// \param [in] keysym returns the "keysym" computed from the event
2193/// if this argument is not NULL
2194
2195void TVirtualX::LookupString(Event_t * /*event*/, char * /*buf*/,
2196 Int_t /*buflen*/, UInt_t &keysym)
2197{
2198 keysym = 0;
2199}
2200
2201////////////////////////////////////////////////////////////////////////////////
2202/// Translates coordinates in one window to the coordinate space of another
2203/// window. It takes the "src_x" and "src_y" coordinates relative to the
2204/// source window's origin and returns these coordinates to "dest_x" and
2205/// "dest_y" relative to the destination window's origin.
2206///
2207/// \param [in] src the source window
2208/// \param [in] dest the destination window
2209/// \param [in] src_x, src_y coordinates within the source window
2210/// \param [in] dest_x, dest_y coordinates within the destination window
2211/// \param [in] child returns the child of "dest" if the coordinates
2212/// are contained in a mapped child of the destination
2213/// window; otherwise, child is set to 0
2214
2216 Int_t /*src_x*/, Int_t /*src_y*/,
2218 Window_t &child)
2219{
2220 dest_x = dest_y = 0;
2221 child = 0;
2222}
2223
2224////////////////////////////////////////////////////////////////////////////////
2225/// Returns the location and the size of window "id"
2226///
2227/// \param [in] id drawable identifier
2228/// \param [in] x, y coordinates of the upper-left outer corner relative to the
2229/// parent window's origin
2230/// \param [in] w, h the inside size of the window, not including the border
2231
2233 UInt_t &w, UInt_t &h)
2234{
2235 x = y = 0;
2236 w = h = 1;
2237}
2238
2239////////////////////////////////////////////////////////////////////////////////
2240/// Fills the region closed by the specified path. The path is closed
2241/// automatically if the last point in the list does not coincide with the
2242/// first point.
2243///
2244/// \param [in] id window identifier
2245/// \param [in] gc graphics context
2246/// \param [in] *points specifies an array of points
2247/// \param [in] npnt specifies the number of points in the array
2248///
2249/// GC components in use: function, plane-mask, fill-style, fill-rule,
2250/// subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. GC
2251/// mode-dependent components: foreground, background, tile, stipple,
2252/// tile-stipple-x-origin, and tile-stipple-y-origin.
2253/// (see also the GCValues_t structure)
2254
2256 /*points*/, Int_t /*npnt*/) {
2257}
2258
2259////////////////////////////////////////////////////////////////////////////////
2260/// Returns the root window the pointer is logically on and the pointer
2261/// coordinates relative to the root window's origin.
2262///
2263/// \param [in] id specifies the window
2264/// \param [in] rootw the root window that the pointer is in
2265/// \param [in] childw the child window that the pointer is located in, if any
2266/// \param [in] root_x, root_y the pointer coordinates relative to the root window's
2267/// origin
2268/// \param [in] win_x, win_y the pointer coordinates relative to the specified
2269/// window "id"
2270/// \param [in] mask the current state of the modifier keys and pointer
2271/// buttons
2272
2276{
2277 rootw = childw = kNone;
2278 root_x = root_y = win_x = win_y = 0;
2279 mask = 0;
2280}
2281
2282////////////////////////////////////////////////////////////////////////////////
2283/// Sets the foreground color for the specified GC (shortcut for ChangeGC
2284/// with only foreground mask set).
2285///
2286/// \param [in] gc specifies the GC
2287/// \param [in] foreground the foreground you want to set
2288///
2289/// (see also the GCValues_t structure)
2290
2291void TVirtualX::SetForeground(GContext_t /*gc*/, ULong_t /*foreground*/)
2292{
2293}
2294
2295////////////////////////////////////////////////////////////////////////////////
2296/// Sets clipping rectangles in graphics context. [x,y] specify the origin
2297/// of the rectangles. "recs" specifies an array of rectangles that define
2298/// the clipping mask and "n" is the number of rectangles.
2299/// (see also the GCValues_t structure)
2300
2302 Rectangle_t * /*recs*/, Int_t /*n*/)
2303{
2304}
2305
2306////////////////////////////////////////////////////////////////////////////////
2307/// Flushes (mode = 0, default) or synchronizes (mode = 1) X output buffer.
2308/// Flush flushes output buffer. Sync flushes buffer and waits till all
2309/// requests have been processed by X server.
2310
2311void TVirtualX::Update(Int_t /*mode = 0*/)
2312{
2313}
2314
2315////////////////////////////////////////////////////////////////////////////////
2316/// Creates a new empty region.
2317
2319{
2320 return 0;
2321}
2322
2323////////////////////////////////////////////////////////////////////////////////
2324/// Destroys the region "reg".
2325
2327{
2328}
2329
2330////////////////////////////////////////////////////////////////////////////////
2331/// Updates the destination region from a union of the specified rectangle
2332/// and the specified source region.
2333///
2334/// \param [in] rect specifies the rectangle
2335/// \param [in] src specifies the source region to be used
2336/// \param [in] dest returns the destination region
2337
2339 Region_t /*dest*/)
2340{
2341}
2342
2343////////////////////////////////////////////////////////////////////////////////
2344/// Returns a region for the polygon defined by the points array.
2345///
2346/// \param [in] points specifies an array of points
2347/// \param [in] np specifies the number of points in the polygon
2348/// \param [in] winding specifies the winding-rule is set (kTRUE) or not(kFALSE)
2349
2351 Bool_t /*winding*/)
2352{
2353 return 0;
2354}
2355
2356////////////////////////////////////////////////////////////////////////////////
2357/// Computes the union of two regions.
2358///
2359/// \param [in] rega, regb specify the two regions with which you want to perform
2360/// the computation
2361/// \param [in] result returns the result of the computation
2362
2364 Region_t /*result*/)
2365{
2366}
2367
2368////////////////////////////////////////////////////////////////////////////////
2369/// Computes the intersection of two regions.
2370///
2371/// \param [in] rega, regb specify the two regions with which you want to perform
2372/// the computation
2373/// \param [in] result returns the result of the computation
2374
2376 Region_t /*result*/)
2377{
2378}
2379
2380////////////////////////////////////////////////////////////////////////////////
2381/// Subtracts regb from rega and stores the results in result.
2382
2384 Region_t /*result*/)
2385{
2386}
2387
2388////////////////////////////////////////////////////////////////////////////////
2389/// Calculates the difference between the union and intersection of
2390/// two regions.
2391///
2392/// \param [in] rega, regb specify the two regions with which you want to perform
2393/// the computation
2394/// \param [in] result returns the result of the computation
2395
2397 Region_t /*result*/)
2398{
2399}
2400
2401////////////////////////////////////////////////////////////////////////////////
2402/// Returns kTRUE if the region reg is empty.
2403
2405{
2406 return kFALSE;
2407}
2408
2409////////////////////////////////////////////////////////////////////////////////
2410/// Returns kTRUE if the point [x, y] is contained in the region reg.
2411
2413{
2414 return kFALSE;
2415}
2416
2417////////////////////////////////////////////////////////////////////////////////
2418/// Returns kTRUE if the two regions have the same offset, size, and shape.
2419
2421{
2422 return kFALSE;
2423}
2424
2425////////////////////////////////////////////////////////////////////////////////
2426/// Returns smallest enclosing rectangle.
2427
2429{
2430}
2431
2432////////////////////////////////////////////////////////////////////////////////
2433/// Returns list of font names matching fontname regexp, like "-*-times-*".
2434/// The pattern string can contain any characters, but each asterisk (*)
2435/// is a wildcard for any number of characters, and each question mark (?)
2436/// is a wildcard for a single character. If the pattern string is not in
2437/// the Host Portable Character Encoding, the result is implementation
2438/// dependent. Use of uppercase or lowercase does not matter. Each returned
2439/// string is null-terminated.
2440///
2441/// \param [in] fontname specifies the null-terminated pattern string that can
2442/// contain wildcard characters
2443/// \param [in] max specifies the maximum number of names to be returned
2444/// \param [in] count returns the actual number of font names
2445
2446char **TVirtualX::ListFonts(const char * /*fontname*/, Int_t /*max*/, Int_t & count)
2447{
2448 count=0;
2449 return nullptr;
2450}
2451
2452////////////////////////////////////////////////////////////////////////////////
2453/// Frees the specified the array of strings "fontlist".
2454
2455void TVirtualX::FreeFontNames(char ** /*fontlist*/)
2456{
2457}
2458
2459////////////////////////////////////////////////////////////////////////////////
2460/// Allocates the memory needed for an drawable.
2461///
2462/// \param [in] width the width of the image, in pixels
2463/// \param [in] height the height of the image, in pixels
2464
2466{
2467 return 0;
2468}
2469
2470////////////////////////////////////////////////////////////////////////////////
2471/// Returns the width and height of the image id
2472
2474 UInt_t &/*height*/)
2475{
2476}
2477
2478////////////////////////////////////////////////////////////////////////////////
2479/// Overwrites the pixel in the image with the specified pixel value.
2480/// The image must contain the x and y coordinates.
2481///
2482/// \param [in] id specifies the image
2483/// \param [in] x, y coordinates
2484/// \param [in] pixel the new pixel value
2485
2486void TVirtualX::PutPixel(Drawable_t /*id*/, Int_t /*x*/, Int_t /*y*/,
2487 ULong_t /*pixel*/)
2488{
2489}
2490
2491////////////////////////////////////////////////////////////////////////////////
2492/// Combines an image with a rectangle of the specified drawable. The
2493/// section of the image defined by the x, y, width, and height arguments
2494/// is drawn on the specified part of the drawable.
2495///
2496/// \param [in] id the drawable
2497/// \param [in] gc the GC
2498/// \param [in] img the image you want combined with the rectangle
2499/// \param [in] dx the offset in X from the left edge of the image
2500/// \param [in] dy the offset in Y from the top edge of the image
2501/// \param [in] x, y coordinates, which are relative to the origin of the
2502/// drawable and are the coordinates of the subimage
2503/// \param [in] w, h the width and height of the subimage, which define the
2504/// rectangle dimensions
2505///
2506/// GC components in use: function, plane-mask, subwindow-mode,
2507/// clip-x-origin, clip-y-origin, and clip-mask.
2508/// GC mode-dependent components: foreground and background.
2509/// (see also the GCValues_t structure)
2510
2512 Drawable_t /*img*/, Int_t /*dx*/, Int_t /*dy*/,
2513 Int_t /*x*/, Int_t /*y*/, UInt_t /*w*/, UInt_t /*h*/)
2514{
2515}
2516
2517////////////////////////////////////////////////////////////////////////////////
2518/// Deallocates the memory associated with the image img
2519
2521{
2522}
2523
2524////////////////////////////////////////////////////////////////////////////////
2525/// pointer to the current internal window used in canvas graphics
2526
2528{
2529 return (Window_t)0;
2530}
2531
2532////////////////////////////////////////////////////////////////////////////////
2533/// Returns an array of pixels created from a part of drawable (defined by x, y, w, h)
2534/// in format:
2535///
2536/// ~~~ {.cpp}
2537/// b1, g1, r1, 0, b2, g2, r2, 0 ... bn, gn, rn, 0 ..
2538/// ~~~
2539///
2540/// Pixels are numbered from left to right and from top to bottom.
2541/// By default all pixels from the whole drawable are returned.
2542///
2543/// Note that return array is 32-bit aligned
2544
2545unsigned char *TVirtualX::GetColorBits(Drawable_t /*wid*/, Int_t /*x*/, Int_t /*y*/,
2546 UInt_t /*w*/, UInt_t /*h*/)
2547{
2548 return nullptr;
2549}
2550
2551////////////////////////////////////////////////////////////////////////////////
2552/// create pixmap from RGB data. RGB data is in format:
2553///
2554/// ~~~ {.cpp}
2555/// b1, g1, r1, 0, b2, g2, r2, 0 ... bn, gn, rn, 0 ..
2556/// ~~~
2557///
2558/// Pixels are numbered from left to right and from top to bottom.
2559/// Note that data must be 32-bit aligned
2560
2561Pixmap_t TVirtualX::CreatePixmapFromData(unsigned char * /*bits*/, UInt_t /*width*/,
2562 UInt_t /*height*/)
2563{
2564 return (Pixmap_t)0;
2565}
2566
2567////////////////////////////////////////////////////////////////////////////////
2568/// The Non-rectangular Window Shape Extension adds non-rectangular
2569/// windows to the System.
2570/// This allows for making shaped (partially transparent) windows
2571
2575
2576////////////////////////////////////////////////////////////////////////////////
2577/// Returns the width of the screen in millimeters.
2578
2580{
2581 return 400;
2582}
2583
2584////////////////////////////////////////////////////////////////////////////////
2585/// Deletes the specified property only if the property was defined on the
2586/// specified window and causes the X server to generate a PropertyNotify
2587/// event on the window unless the property does not exist.
2588
2592
2593////////////////////////////////////////////////////////////////////////////////
2594/// Returns the actual type of the property; the actual format of the property;
2595/// the number of 8-bit, 16-bit, or 32-bit items transferred; the number of
2596/// bytes remaining to be read in the property; and a pointer to the data
2597/// actually returned.
2598
2600 Atom_t*, Int_t*, ULong_t*, ULong_t*, unsigned char**)
2601{
2602 return 0;
2603}
2604
2605////////////////////////////////////////////////////////////////////////////////
2606/// Changes the specified dynamic parameters if the pointer is actively
2607/// grabbed by the client and if the specified time is no earlier than the
2608/// last-pointer-grab time and no later than the current X server time.
2609
2613
2614////////////////////////////////////////////////////////////////////////////////
2615/// Requests that the specified selection be converted to the specified
2616/// target type.
2617
2621
2622////////////////////////////////////////////////////////////////////////////////
2623/// Changes the owner and last-change time for the specified selection.
2624
2629
2630////////////////////////////////////////////////////////////////////////////////
2631/// Alters the property for the specified window and causes the X server
2632/// to generate a PropertyNotify event on that window.
2633
2637
2638////////////////////////////////////////////////////////////////////////////////
2639/// Add XdndAware property and the list of drag and drop types to the
2640/// Window win.
2641
2645
2646////////////////////////////////////////////////////////////////////////////////
2647/// Add the list of drag and drop types to the Window win.
2648
2652
2653////////////////////////////////////////////////////////////////////////////////
2654/// Recursively search in the children of Window for a Window which is at
2655/// location x, y and is DND aware, with a maximum depth of maxd.
2656
2658{
2659 return kNone;
2660}
2661
2662////////////////////////////////////////////////////////////////////////////////
2663/// Checks if the Window is DND aware, and knows any of the DND formats
2664/// passed in argument.
2665
2670
2671////////////////////////////////////////////////////////////////////////////////
2672/// Start a modal session for a dialog window.
2673
2677
2678////////////////////////////////////////////////////////////////////////////////
2679/// Returns 1 if window system server supports extension given by the
2680/// argument, returns 0 in case extension is not supported and returns -1
2681/// in case of error (like server not initialized).
2682
2684{
2685 return -1;
2686}
2687
2688////////////////////////////////////////////////////////////////////////////////
2689/// Map the XftFont with the Graphics Context using it.
2690
2694
2695
Handle_t Atom_t
WM token.
Definition GuiTypes.h:38
Handle_t Region_t
Region handle.
Definition GuiTypes.h:33
Handle_t WinContext_t
Window drawing context.
Definition GuiTypes.h:30
EGEventType
Definition GuiTypes.h:60
@ kButtonPress
Definition GuiTypes.h:61
ECursor
Definition GuiTypes.h:373
Handle_t Pixmap_t
Pixmap handle.
Definition GuiTypes.h:31
Handle_t FontH_t
Font handle (as opposed to Font_t which is an index)
Definition GuiTypes.h:36
Handle_t Visual_t
Visual handle.
Definition GuiTypes.h:28
Handle_t Window_t
Window handle.
Definition GuiTypes.h:29
const Mask_t kDoRed
Definition GuiTypes.h:320
Handle_t Display_t
Display handle.
Definition GuiTypes.h:27
ULong_t Time_t
Event time.
Definition GuiTypes.h:43
Handle_t GContext_t
Graphics context handle.
Definition GuiTypes.h:39
EInitialState
Initial window mapping state.
Definition GuiTypes.h:346
Handle_t Drawable_t
Drawable handle.
Definition GuiTypes.h:32
Handle_t Cursor_t
Cursor handle.
Definition GuiTypes.h:35
const Handle_t kNone
Definition GuiTypes.h:89
@ kIsUnmapped
Definition GuiTypes.h:47
const Mask_t kDoGreen
Definition GuiTypes.h:321
const Mask_t kDoBlue
Definition GuiTypes.h:322
EMouseButton
Button names.
Definition GuiTypes.h:215
Handle_t Colormap_t
Colormap handle.
Definition GuiTypes.h:34
ULongptr_t Handle_t
Generic resource handle.
Definition GuiTypes.h:26
Handle_t FontStruct_t
Pointer to font structure.
Definition GuiTypes.h:40
#define b(i)
Definition RSha256.hxx:100
#define g(i)
Definition RSha256.hxx:105
#define h(i)
Definition RSha256.hxx:106
static Roo_reg_AGKInteg1D instance
short Style_t
Style number (short)
Definition RtypesCore.h:96
short Color_t
Color number (short)
Definition RtypesCore.h:99
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char)
Definition RtypesCore.h:52
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
Definition RtypesCore.h:69
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
Definition RtypesCore.h:68
unsigned long ULongptr_t
Unsigned integer large enough to hold a pointer (platform-dependent)
Definition RtypesCore.h:90
short Width_t
Line width (short)
Definition RtypesCore.h:98
short Font_t
Font number (short)
Definition RtypesCore.h:95
short Short_t
Signed Short integer 2 bytes (short)
Definition RtypesCore.h:53
constexpr Bool_t kFALSE
Definition RtypesCore.h:108
constexpr Bool_t kTRUE
Definition RtypesCore.h:107
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void chupy
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t mask
Option_t Option_t SetLineWidth
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t dest_x
Option_t Option_t SetFillStyle
Option_t Option_t SetTextSize
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize wid
Option_t Option_t DrawFillArea
Option_t Option_t mgn
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t child
Option_t Option_t SetLineColor
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void chupx
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t SetTextFont
Option_t Option_t TPoint TPoint angle
Option_t Option_t TPoint xy
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void xpos
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t dest_y
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t attr
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t nchar
Option_t Option_t TPoint DrawPolyMarker
Option_t Option_t SetFillColor
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void CopyPixmap
Option_t Option_t TPoint TPoint const char DrawLine
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void ypos
Option_t Option_t SetMarkerStyle
Option_t Option_t TPoint TPoint percent
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t gval
Option_t Option_t TPoint TPoint DrawText
Option_t Option_t TPoint TPoint SetOpacity
Option_t Option_t TPoint TPoint const char text
Option_t Option_t TPoint TPoint const char y1
char name[80]
Definition TGX11.cxx:145
Atom_t gMOTIF_WM_HINTS
Definition TVirtualX.cxx:35
TVirtualX * gGXBatch
Definition TVirtualX.cxx:39
Atom_t gROOT_MESSAGE
Definition TVirtualX.cxx:36
Atom_t gWM_DELETE_WINDOW
Definition TVirtualX.cxx:34
R__EXTERN TVirtualX *(* gPtr2VirtualX)()
Definition TVirtualX.h:370
Fill Area Attributes class.
Definition TAttFill.h:21
Line Attributes class.
Definition TAttLine.h:21
Marker Attributes class.
Definition TAttMarker.h:21
Text Attributes class.
Definition TAttText.h:21
virtual void SetTextAngle(Float_t tangle=0)
Set the text angle.
Definition TAttText.h:47
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
SCoord_t fY
Definition TPoint.h:36
SCoord_t fX
Definition TPoint.h:35
Basic string class.
Definition TString.h:138
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].
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...
virtual Int_t WriteGIF(char *name)
Writes the current window into GIF file.
virtual void DestroyWindow(Window_t id)
Destroys the window "id" as well as all of its subwindows.
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.
virtual void CopyPixmapW(WinContext_t wctxt, Int_t wid, Int_t xpos, Int_t ypos)
Copy pixmap to specified window.
virtual void DispatchClientMessage(UInt_t messageID)
Force processing of event, sent by SendEvent before.
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...
virtual Handle_t GetCurrentOpenGLContext()
Asks OpenGL subsystem about the current OpenGL context.
virtual void DrawPolyLine(Int_t n, TPoint *xy)
Draws a line through all points in the list.
virtual void SetWindowHint(Window_t id, EWindowHint hint)
Alters the property for the specified window and causes the X server to generate a PropertyNotify eve...
virtual void SetWindowBackground(Window_t id, ULong_t color)
Sets the background of the window "id" to the specified color value "color".
virtual Int_t KeysymToKeycode(UInt_t keysym)
Converts the "keysym" to the appropriate keycode.
virtual void SetPrimarySelectionOwner(Window_t id)
Makes the window "id" the current owner of the primary selection.
virtual void DeleteImage(Drawable_t img)
Deallocates the memory associated with the image img.
void SetFillColor(Color_t cindex) override
Sets color index "cindex" for fill areas.
void SetMarkerStyle(Style_t markerstyle) override
Sets marker style.
virtual void DrawLinesSegments(Int_t n, TPoint *xy)
Draws N segments between provided points.
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".
virtual void SetTextMagnitude(Float_t mgn)
Sets the current text magnification factor to "mgn".
virtual void GetWindowSize(Drawable_t id, Int_t &x, Int_t &overridey, UInt_t &w, UInt_t &h)
Returns the location and the size of window "id".
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 ...
virtual void SetOpacity(Int_t percent)
Sets opacity of the current window.
virtual void DeleteFont(FontStruct_t fs)
Explicitly deletes the font structure "fs" obtained via LoadQueryFont().
virtual Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap, UInt_t width, UInt_t height)
Creates a bitmap (i.e.
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.
virtual void DrawLineW(WinContext_t wctxt, Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Draw line on specified window.
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.
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 ...
virtual EDrawMode GetDrawModeW(WinContext_t wctxt)
Returns window draw mode.
virtual Int_t OpenPixmap(UInt_t w, UInt_t h)
Creates a pixmap of the width "w" and height "h" you specified.
virtual void UnmapWindow(Window_t id)
Unmaps the specified window "id".
virtual void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
Sets color intensities the specified color index "cindex".
virtual void FreeFontStruct(FontStruct_t fs)
Frees the font structure "fs".
virtual Int_t AddPixmap(ULongptr_t pixid, UInt_t w, UInt_t h)
Registers a pixmap created by TGLManager as a ROOT pixmap.
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.
EDrawMode GetDrawMode()
Definition TVirtualX.h:139
virtual void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt)
Fills the region closed by the specified path.
virtual FontStruct_t GetGCFont(GContext_t gc)
Return the font associated with the graphics context gc.
virtual void XorRegion(Region_t rega, Region_t regb, Region_t result)
Calculates the difference between the union and intersection of two regions.
virtual void SetClipOFF(Int_t wid)
Turns off the clipping for the window "wid".
virtual void FlushOpenGLBuffer(Handle_t ctx)
Flushes OpenGL buffer.
virtual void DeleteOpenGLContext(Int_t wid=0)
Deletes OpenGL context for window "wid".
virtual Colormap_t GetColormap() const
Returns handle to colormap.
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...
virtual void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist)
Add the list of drag and drop types to the Window win.
virtual void DeleteProperty(Window_t, Atom_t &)
Deletes the specified property only if the property was defined on the specified window and causes th...
virtual Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
virtual Cursor_t CreateCursor(ECursor cursor)
Creates the specified cursor.
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...
virtual void DrawLinesSegmentsW(WinContext_t wctxt, Int_t n, TPoint *xy)
Draw line segments on specified window.
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.
virtual void DrawFillAreaW(WinContext_t wctxt, Int_t n, TPoint *xy)
Draw fill area on specified window.
virtual void RaiseWindow(Window_t id)
Raises the specified window to the top of the stack so that no sibling window obscures it.
virtual Float_t GetTextMagnitude()
Returns the current font magnification factor.
virtual void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
Sets the background pixmap of the window "id" to the specified pixmap "pxm".
virtual void GetCharacterUp(Float_t &chupx, Float_t &chupy)
Returns character up vector.
virtual void DrawPolyMarkerW(WinContext_t wctxt, Int_t n, TPoint *xy)
Draw poly marker on specified window.
virtual void SelectInput(Window_t id, UInt_t evmask)
Defines which input events the window is interested in.
virtual Display_t GetDisplay() const
Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVi...
virtual Bool_t EqualRegion(Region_t rega, Region_t regb)
Returns kTRUE if the two regions have the same offset, size, and shape.
virtual void SetAttMarker(WinContext_t wctxt, const TAttMarker &att)
Set marker attributes for specified window.
virtual void SetAttLine(WinContext_t wctxt, const TAttLine &att)
Set line attributes for specified window.
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.
virtual void SetIconPixmap(Window_t id, Pixmap_t pix)
Sets the icon name pixmap.
virtual Bool_t SetSelectionOwner(Window_t, Atom_t &)
Changes the owner and last-change time for the specified selection.
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".
virtual void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height)
Returns the width and height of the image id.
virtual Window_t GetDefaultRootWindow() const
Returns handle to the default root window created when calling XOpenDisplay().
virtual Bool_t EmptyRegion(Region_t reg)
Returns kTRUE if the region reg is empty.
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...
virtual void BeginModalSessionFor(Window_t window)
Start a modal session for a dialog window.
virtual void DeletePixmap(Pixmap_t pmap)
Explicitly deletes the pixmap resource "pmap".
virtual void SetClassHints(Window_t id, char *className, char *resourceName)
Sets the windows class and resource name.
virtual FontH_t GetFontHandle(FontStruct_t fs)
Returns the font handle of the specified font structure "fs".
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.
virtual Bool_t Init(void *display=nullptr)
Initializes the X system.
virtual void ResizeWindow(Int_t wid)
Resizes the window "wid" if necessary.
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.
virtual void SetAttFill(WinContext_t wctxt, const TAttFill &att)
Set fill attributes for specified window.
virtual void Warp(Int_t ix, Int_t iy, Window_t id=0)
Sets the pointer position.
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,...
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].
virtual Drawable_t CreateImage(UInt_t width, UInt_t height)
Allocates the memory needed for an drawable.
virtual Int_t GetDoubleBuffer(Int_t wid)
Queries the double buffer value for the window "wid".
virtual void SetDoubleBuffer(Int_t wid, Int_t mode)
Sets the double buffer on/off on the window "wid".
virtual Int_t GetScreen() const
Returns screen number.
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...
virtual void CreateOpenGLContext(Int_t wid=0)
Creates OpenGL context for window "wid".
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...
virtual void MapSubwindows(Window_t id)
Maps all subwindows for the specified window "id" in top-to-bottom stacking order.
virtual void FreeFontNames(char **fontlist)
Frees the specified the array of strings "fontlist".
virtual Window_t GetInputFocus()
Returns the window id of the window having the input focus.
virtual void ClosePixmap()
Deletes current pixmap.
virtual void SetInputFocus(Window_t id)
Changes the input focus to specified window "id".
virtual void SetWMState(Window_t id, EInitialState state)
Sets the initial state of the window "id": either kNormalState or kIconicState.
virtual void Update(Int_t mode=0)
Flushes (mode = 0, default) or synchronizes (mode = 1) X output buffer.
virtual Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
Requests Locator position.
virtual UInt_t ExecCommand(TGWin32Command *code)
Executes the command "code" coming from the other threads (Win32)
virtual void SendEvent(Window_t id, Event_t *ev)
Specifies the event "ev" is to be sent to the window "id".
virtual Int_t AddWindow(ULongptr_t qwid, UInt_t w, UInt_t h)
Registers a window created by Qt as a ROOT window.
virtual Int_t GetFontAscent() const
Returns the ascent of the current font (in pixels).
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).
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".
virtual FontStruct_t GetFontStruct(FontH_t fh)
Retrieves the associated font structure of the font specified font handle "fh".
virtual Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data)
Reads picture data from file "filename" and store it in "ret_data".
virtual void SetDrawModeW(WinContext_t wctxt, EDrawMode mode)
Set window draw mode.
virtual void UpdateWindow(Int_t mode)
Updates or synchronises client and server once (not permanent).
virtual void SetCursor(Int_t win, ECursor cursor)
The cursor "cursor" will be used when the pointer is in the window "wid".
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".
void SetFillStyle(Style_t style) override
Sets fill area style.
virtual void CloseWindow()
Deletes current window.
virtual void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
Rescales the window "wid".
virtual Int_t OpenDisplay(const char *dpyName)
Opens connection to display server (if such a thing exist on the current platform).
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,...
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.
virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess)
Returns the size of the specified character string "mess".
virtual ULong_t GetPixel(Color_t cindex)
Returns pixel value associated to specified ROOT color number "cindex".
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...
virtual void SetDNDAware(Window_t, Atom_t *)
Add XdndAware property and the list of drag and drop types to the Window win.
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".
virtual void GetWindowAttributes(Window_t id, WindowAttributes_t &attr)
The WindowAttributes_t structure is set to default.
Definition TVirtualX.cxx:67
void SetTextSize(Float_t textsize) override
Sets the current text size to "textsize".
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".
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".
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,...
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.
virtual Double_t GetOpenGLScalingFactor()
On a HiDPI resolution it can be > 1., this means glViewport should use scaled width and height.
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...
virtual void DrawTextW(WinContext_t wctxt, Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
Draw text on specified window.
virtual void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg)
Draws multiple line segments.
virtual void CloseDisplay()
Closes connection to display server and destroys all windows.
virtual void DeletePictureData(void *data)
Delete picture data created by the function ReadPictureDataFromFile.
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.
virtual void SetWindowName(Window_t id, char *name)
Sets the window name.
virtual void Bell(Int_t percent)
Sets the sound bell. Percent is loudness from -100% to 100%.
virtual void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
Returns the font properties.
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.
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.
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.
virtual void SetOpacityW(WinContext_t wctxt, Int_t percent)
Set opactity for specified window.
virtual Int_t GetFontDescent() const
Returns the descent of the current font (in pixels.
virtual void SetDoubleBufferOFF()
Turns double buffer mode off.
void SetLineColor(Color_t cindex) override
Sets color index "cindex" for drawing lines.
virtual void GetPlanes(Int_t &nplanes)
Returns the maximum number of planes.
virtual void SetKeyAutoRepeat(Bool_t on=kTRUE)
Turns key auto repeat on (kTRUE) or off (kFALSE).
void SetLineStyle(Style_t linestyle) override
Sets the line style.
virtual void DrawPolyMarker(Int_t n, TPoint *xy)
Draws "n" markers with the current attributes at position [x,y].
virtual void UpdateWindowW(WinContext_t wctxt, Int_t mode)
Update specified window.
virtual void SetWMSize(Window_t id, UInt_t w, UInt_t h)
Tells window manager the desired size of window "id".
virtual void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t *attr)
Changes the attributes of the specified window "id" according the values provided in "attr".
virtual void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b)
Returns RGB values for color "index".
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".
virtual Handle_t GetNativeEvent() const
Returns the current native event handle.
virtual void DrawBoxW(WinContext_t wctxt, Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
Draw box on specified window.
virtual void SetIconName(Window_t id, char *name)
Sets the window icon name.
virtual void Sync(Int_t mode)
Set synchronisation on or off.
virtual void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
Sets clipping rectangles in graphics context.
void SetMarkerColor(Color_t cindex) override
Sets color index "cindex" for markers.
virtual void SetLineType(Int_t n, Int_t *dash)
Sets the line type.
virtual Region_t PolygonRegion(Point_t *points, Int_t np, Bool_t winding)
Returns a region for the polygon defined by the points array.
virtual void DestroySubwindows(Window_t id)
The DestroySubwindows function destroys all inferior windows of the specified window,...
virtual void SelectPixmap(Int_t qpixid)
Selects the pixmap "qpixid".
void SetTextAlign(Short_t talign=11) override
Sets the text alignment.
virtual Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist)
Returns the atom identifier associated with the specified "atom_name" string.
virtual void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname)
Writes the pixmap "wid" in the bitmap file "pxname".
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...
virtual void SetDoubleBufferON()
Turns double buffer mode on.
virtual void SetDrawMode(EDrawMode mode)
Sets the drawing mode.
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:
virtual void ChangeGC(GContext_t gc, GCValues_t *gval)
Changes the components specified by the mask in gval for the specified GC.
virtual const char * DisplayName(const char *=nullptr)
Returns hostname on which the display is opened.
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.
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.
virtual Window_t GetPrimarySelectionOwner()
Returns the window id of the current owner of the primary selection.
virtual void IconifyWindow(Window_t id)
Iconifies the window "id".
virtual Window_t GetCurrentWindow() const
pointer to the current internal window used in canvas graphics
void SetLineWidth(Width_t width) override
Sets the line width.
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...
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.
virtual char ** ListFonts(const char *fontname, Int_t max, Int_t &count)
Returns list of font names matching fontname regexp, like "-*-times-*".
virtual void DeleteGC(GContext_t gc)
Deletes the specified GC "gc".
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...
virtual void NextEvent(Event_t &event)
The "event" is set to default event.
virtual void FreeColor(Colormap_t cmap, ULong_t pixel)
Frees color cell with specified pixel value.
virtual void QueryPointer(Int_t &ix, Int_t &iy)
Returns the pointer position.
virtual WinContext_t GetWindowContext(Int_t wid)
Get window drawing context Should remain valid until window exists.
virtual void SetCharacterUp(Float_t chupx, Float_t chupy)
Sets character up vector.
virtual void QueryColor(Colormap_t cmap, ColorStruct_t &color)
Returns the current RGB value for the pixel in the "color" structure.
void SetTextColor(Color_t cindex) override
Sets the color index "cindex" for text.
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".
virtual Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height)
create pixmap from RGB data.
virtual void GetRegionBox(Region_t reg, Rectangle_t *rect)
Returns smallest enclosing rectangle.
virtual void RemoveWindow(ULongptr_t qwid)
Removes the created by Qt window "qwid".
virtual Window_t GetParent(Window_t id) const
Returns the parent of the window "id".
virtual void DrawFillArea(Int_t n, TPoint *xy)
Fills area described by the polygon.
virtual void SetWMPosition(Window_t id, Int_t x, Int_t y)
Tells the window manager the desired position [x,y] of window "id".
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...
virtual void MapGCFont(GContext_t, FontStruct_t)
Map the XftFont with the Graphics Context using it.
virtual void DrawPolyLineW(WinContext_t wctxt, Int_t n, TPoint *xy)
Draw poly line on specified window.
virtual void DestroyRegion(Region_t reg)
Destroys the region "reg".
virtual void SubtractRegion(Region_t rega, Region_t regb, Region_t result)
Subtracts regb from rega and stores the results in result.
virtual void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
Establishes a passive grab on the keyboard.
virtual Int_t EventsPending()
Returns the number of events that have been received from the X server but have not been removed from...
virtual GContext_t CreateGC(Drawable_t id, GCValues_t *gval)
Creates a graphics context using the provided GCValues_t *gval structure.
virtual Int_t InitWindow(ULongptr_t window)
Creates a new window and return window number.
virtual Bool_t MakeOpenGLContextCurrent(Handle_t ctx, Window_t windowID)
Makes context ctx current OpenGL context.
void SetMarkerSize(Float_t markersize) override
Sets marker size index.
virtual UInt_t ScreenWidthMM() const
Returns the width of the screen in millimeters.
virtual void SetAttText(WinContext_t wctxt, const TAttText &att)
Set text attributes for specified window.
virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Draws a line.
virtual void ClearWindowW(WinContext_t wctxt)
Clear specified window.
virtual Bool_t NeedRedraw(ULongptr_t tgwindow, Bool_t force)
Notify the low level GUI layer ROOT requires "tgwindow" to be updated.
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.
virtual Visual_t GetVisual() const
Returns handle to visual.
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.
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.
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.
virtual void ClearWindow()
Clears the entire area of the current window.
virtual void SelectWindow(Int_t wid)
Selects the window "wid" to which subsequent output is directed.
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.
virtual Int_t GetDepth() const
Returns depth of screen (number of bit planes).
virtual Window_t GetWindowID(Int_t wid)
Returns the X11 window identifier.
virtual Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
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.
virtual void MoveWindow(Int_t wid, Int_t x, Int_t y)
Moves the window "wid" to the specified x and y coordinates.
virtual void WMDeleteNotify(Window_t id)
Tells WM to send message when window is closed via WM.
virtual void IntersectRegion(Region_t rega, Region_t regb, Region_t result)
Computes the intersection of two regions.
virtual Region_t CreateRegion()
Creates a new empty region.
virtual void MapWindow(Window_t id)
Maps the window "id" and all of its subwindows that have had map requests.
virtual void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
Sets decoration style.
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
const Int_t n
Definition legend1.C:16
ULong_t fPixel
color pixel value (index in color table)
Definition GuiTypes.h:312
UShort_t fRed
red component (0..65535)
Definition GuiTypes.h:313
UShort_t fGreen
green component (0..65535)
Definition GuiTypes.h:314
UShort_t fBlue
blue component (0..65535)
Definition GuiTypes.h:315
UShort_t fMask
mask telling which color components are valid
Definition GuiTypes.h:316
Event structure.
Definition GuiTypes.h:175
Graphics context structure.
Definition GuiTypes.h:225
Point structure (maps to the X11 XPoint structure)
Definition GuiTypes.h:357
Rectangle structure (maps to the X11 XRectangle structure)
Definition GuiTypes.h:362
Used for drawing line segments (maps to the X11 XSegments structure)
Definition GuiTypes.h:352
Attributes that can be used when creating or changing a window.
Definition GuiTypes.h:94
Window attributes that can be inquired.
Definition GuiTypes.h:115