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#include "TColor.h"
33#include "TError.h"
34#include "TROOT.h"
35#include "TApplication.h"
36
37
41
42
43TVirtualX *gGXBatch; //Global pointer to batch graphics interface
44TVirtualX* (*gPtr2VirtualX)() = nullptr; // returns pointer to global object
45
46
47
48
49////////////////////////////////////////////////////////////////////////////////
50/// Ctor of ABC
51
52TVirtualX::TVirtualX(const char *name, const char *title) : TNamed(name, title),
53 TAttLine(1,1,1),TAttFill(1,1),TAttText(11,0,1,62,0.01), TAttMarker(1,1,1),
54 fDrawMode()
55{
56}
57
58////////////////////////////////////////////////////////////////////////////////
59/// Returns gVirtualX global
60
62{
63 static TVirtualX *instance = nullptr;
65 return instance;
66}
67
68////////////////////////////////////////////////////////////////////////////////
69/// The WindowAttributes_t structure is set to default.
70
72{
73 attr.fX = attr.fY = 0;
74 attr.fWidth = attr.fHeight = 0;
75 attr.fVisual = nullptr;
76 attr.fMapState = kIsUnmapped;
77 attr.fScreen = nullptr;
78}
79
80////////////////////////////////////////////////////////////////////////////////
81/// Looks up the string name of a color "cname" with respect to the screen
82/// associated with the specified colormap. It returns the exact color value.
83/// If the color name is not in the Host Portable Character Encoding,
84/// the result is implementation dependent.
85///
86/// \param [in] cmap the colormap
87/// \param [in] cname the color name string; use of uppercase or lowercase
88/// does not matter
89/// \param [in] color returns the exact color value for later use
90///
91/// The ColorStruct_t structure is set to default. Let system think we
92/// could parse color.
93
94Bool_t TVirtualX::ParseColor(Colormap_t /*cmap*/, const char * /*cname*/,
95 ColorStruct_t &color)
96{
97 color.fPixel = 0;
98 color.fRed = 0;
99 color.fGreen = 0;
100 color.fBlue = 0;
101 color.fMask = kDoRed | kDoGreen | kDoBlue;
102
103 return kTRUE;
104}
105
106////////////////////////////////////////////////////////////////////////////////
107/// Allocates a read-only colormap entry corresponding to the closest RGB
108/// value supported by the hardware. If no cell could be allocated it
109/// returns kFALSE, otherwise kTRUE.
110///
111/// The pixel value is set to default. Let system think we could allocate
112/// color.
113///
114/// \param [in] cmap the colormap
115/// \param [in] color specifies and returns the values actually used in the cmap
116
118{
119 color.fPixel = 0;
120 return kTRUE;
121}
122
123////////////////////////////////////////////////////////////////////////////////
124/// Returns the current RGB value for the pixel in the "color" structure
125///
126/// The color components are set to default.
127///
128/// \param [in] cmap the colormap
129/// \param [in] color specifies and returns the RGB values for the pixel specified
130/// in the structure
131
133{
134 color.fRed = color.fGreen = color.fBlue = 0;
135}
136
137////////////////////////////////////////////////////////////////////////////////
138/// The "event" is set to default event.
139/// This method however, should never be called.
140
142{
143 event.fType = kButtonPress;
144 event.fWindow = 0;
145 event.fTime = 0;
146 event.fX = 0;
147 event.fY = 0;
148 event.fXRoot = 0;
149 event.fYRoot = 0;
150 event.fState = 0;
151 event.fCode = 0;
152 event.fWidth = 0;
153 event.fHeight = 0;
154 event.fCount = 0;
155}
156
157////////////////////////////////////////////////////////////////////////////////
158/// Gets contents of the paste buffer "atom" into the string "text".
159/// (nchar = number of characters) If "del" is true deletes the paste
160/// buffer afterwards.
161
163 Int_t &nchar, Bool_t /*del*/)
164{
165 text = "";
166 nchar = 0;
167}
168
169////////////////////////////////////////////////////////////////////////////////
170/// Initializes the X system. Returns kFALSE in case of failure.
171/// It is implementation dependent.
172
173Bool_t TVirtualX::Init(void * /*display*/)
174{
175 return kFALSE;
176}
177
178////////////////////////////////////////////////////////////////////////////////
179/// Clears the entire area of the current window.
180
182{
183}
184
185////////////////////////////////////////////////////////////////////////////////
186/// Deletes current window.
187
189{
190}
191
192////////////////////////////////////////////////////////////////////////////////
193/// Deletes current pixmap.
194
196{
197}
198
199////////////////////////////////////////////////////////////////////////////////
200/// Copies the pixmap "wid" at the position [xpos,ypos] in the current window.
201
202void TVirtualX::CopyPixmap(Int_t /*wid*/, Int_t /*xpos*/, Int_t /*ypos*/)
203{
204}
205
206////////////////////////////////////////////////////////////////////////////////
207///On a HiDPI resolution it can be > 1., this means glViewport should use
208///scaled width and height.
209
214
215////////////////////////////////////////////////////////////////////////////////
216/// Creates OpenGL context for window "wid"
217
219{
220}
221
222////////////////////////////////////////////////////////////////////////////////
223/// Deletes OpenGL context for window "wid"
224
226{
227}
228
229////////////////////////////////////////////////////////////////////////////////
230///Create window with special pixel format. Noop everywhere except Cocoa.
231
232Window_t TVirtualX::CreateOpenGLWindow(Window_t /*parentID*/, UInt_t /*width*/, UInt_t /*height*/, const std::vector<std::pair<UInt_t, Int_t> > &/*format*/)
233{
234 return Window_t();
235}
236
237////////////////////////////////////////////////////////////////////////////////
238/// Creates OpenGL context for window "windowID".
239
241{
242 return Handle_t();
243}
244
245////////////////////////////////////////////////////////////////////////////////
246/// Makes context ctx current OpenGL context.
247
249{
250 return kFALSE;
251}
252
253////////////////////////////////////////////////////////////////////////////////
254/// Asks OpenGL subsystem about the current OpenGL context.
255
260
261////////////////////////////////////////////////////////////////////////////////
262/// Flushes OpenGL buffer.
263
267
268////////////////////////////////////////////////////////////////////////////////
269/// Draws a box between [x1,y1] and [x2,y2] according to the "mode".
270///
271/// \param [in] x1,y1 left down corner
272/// \param [in] x2,y2 right up corner
273/// \param [in] mode drawing mode:
274/// - mode = 0 hollow (kHollow)
275/// - mode = 1 solid (kSolid)
276
277void TVirtualX::DrawBox(Int_t /*x1*/, Int_t /*y1*/, Int_t /*x2*/, Int_t /*y2*/,
278 EBoxMode /*mode*/)
279{
280}
281
282////////////////////////////////////////////////////////////////////////////////
283/// Draws a cell array. The drawing is done with the pixel precision
284/// if (x2-x1)/nx (or y) is not a exact pixel number the position of
285/// the top right corner may be wrong.
286///
287/// \param [in] x1,y1 left down corner
288/// \param [in] x2,y2 right up corner
289/// \param [in] nx,ny array size
290/// \param [in] ic array
291
293 Int_t /*x2*/, Int_t /*y2*/,
294 Int_t /*nx*/, Int_t /*ny*/, Int_t * /*ic*/)
295{
296}
297
298////////////////////////////////////////////////////////////////////////////////
299/// Fills area described by the polygon.
300///
301/// \param [in] n number of points
302/// \param [in] xy list of points. xy(2,n)
303
305{
306}
307
308////////////////////////////////////////////////////////////////////////////////
309/// Draws a line.
310///
311/// \param [in] x1,y1 begin of line
312/// \param [in] x2,y2 end of line
313
314void TVirtualX::DrawLine(Int_t /*x1*/, Int_t /*y1*/, Int_t /*x2*/, Int_t /*y2*/)
315{
316}
317
318////////////////////////////////////////////////////////////////////////////////
319/// Draws a line through all points in the list.
320///
321/// \param [in] n number of points
322/// \param [in] xy list of points
323
325{
326}
327
328////////////////////////////////////////////////////////////////////////////////
329/// Draws N segments between provided points
330///
331/// \param [in] n number of segemtns
332/// \param [in] xy list of points, size 2*n
333
335{
336 for(Int_t i = 0; i < 2*n; i += 2)
337 DrawPolyLine(2, &xy[i]);
338}
339
340
341////////////////////////////////////////////////////////////////////////////////
342/// Draws "n" markers with the current attributes at position [x,y].
343///
344/// \param [in] n number of markers to draw
345/// \param [in] xy an array of x,y marker coordinates
346
348{
349}
350
351////////////////////////////////////////////////////////////////////////////////
352/// Draws a text string using current font.
353///
354/// \param [in] x,y text position
355/// \param [in] angle text angle
356/// \param [in] mgn magnification factor
357/// \param [in] text text string
358/// \param [in] mode drawing mode:
359/// - mode = 0 the background is not drawn (kClear)
360/// - mode = 1 the background is drawn (kOpaque)
361
362void TVirtualX::DrawText(Int_t /*x*/, Int_t /*y*/, Float_t /*angle*/,
363 Float_t /*mgn*/, const char * /*text*/,
364 ETextMode /*mode*/)
365{
366}
367
368////////////////////////////////////////////////////////////////////////////////
369/// Draws a text string using current font.
370///
371/// \param [in] x,y text position
372/// \param [in] angle text angle
373/// \param [in] mgn magnification factor
374/// \param [in] text text string
375/// \param [in] mode drawing mode:
376/// - mode = 0 the background is not drawn (kClear)
377/// - mode = 1 the background is drawn (kOpaque)
378
379void TVirtualX::DrawText(Int_t /*x*/, Int_t /*y*/, Float_t /*angle*/,
380 Float_t /*mgn*/, const wchar_t * /*text*/,
381 ETextMode /*mode*/)
382{
383}
384
385////////////////////////////////////////////////////////////////////////////////
386/// Get window drawing context
387/// Should remain valid until window exists
388
390{
391 return (WinContext_t) 0;
392}
393
394////////////////////////////////////////////////////////////////////////////////
395/// Set fill attributes for specified window
396
397void TVirtualX::SetAttFill(WinContext_t /* wctxt */, const TAttFill &att)
398{
401}
402
403////////////////////////////////////////////////////////////////////////////////
404/// Set line attributes for specified window
405
406void TVirtualX::SetAttLine(WinContext_t /* wctxt */, const TAttLine &att)
407{
411}
412
413////////////////////////////////////////////////////////////////////////////////
414/// Set marker attributes for specified window
415
422
423////////////////////////////////////////////////////////////////////////////////
424/// Set text attributes for specified window
425
426void TVirtualX::SetAttText(WinContext_t /* wctxt */, const TAttText &att)
427{
433}
434
435////////////////////////////////////////////////////////////////////////////////
436/// Set window draw mode
437
442
443////////////////////////////////////////////////////////////////////////////////
444/// Returns window draw mode
445
450
451////////////////////////////////////////////////////////////////////////////////
452/// Clear specified window
453
455{
456 ClearWindow();
457}
458
459////////////////////////////////////////////////////////////////////////////////
460/// Update specified window
461
466
467////////////////////////////////////////////////////////////////////////////////
468/// Set opactity for specified window
469
474
475////////////////////////////////////////////////////////////////////////////////
476/// Copy pixmap to specified window
477
482
483////////////////////////////////////////////////////////////////////////////////
484/// Draw box on specified window
485
490
491////////////////////////////////////////////////////////////////////////////////
492/// Draw fill area on specified window
493
495{
496 DrawFillArea(n, xy);
497}
498
499////////////////////////////////////////////////////////////////////////////////
500/// Draw line on specified window
501
503{
504 DrawLine(x1, y1, x2, y2);
505}
506
507////////////////////////////////////////////////////////////////////////////////
508/// Draw poly line on specified window
509
511{
512 DrawPolyLine(n, xy);
513}
514
515////////////////////////////////////////////////////////////////////////////////
516/// Draw line segments on specified window
517
522
523////////////////////////////////////////////////////////////////////////////////
524/// Draw poly marker on specified window
525
530
531////////////////////////////////////////////////////////////////////////////////
532/// Draw text on specified window
533
535{
536 DrawText(x, y, angle, mgn, text, mode);
537}
538
539////////////////////////////////////////////////////////////////////////////////
540/// Draw wtext on specified window
541
543{
544 DrawText(x, y, angle, mgn, text, mode);
545}
546
547////////////////////////////////////////////////////////////////////////////////
548/// Draw TTFglyphs on specified window
549/// Will be invoked only if HasTTFonts method returns true
550
551void TVirtualX::DrawTTFglyphsW(WinContext_t /* wctxt */, Int_t /* x */, Int_t /* y */, TTFhandle &/* handle */, ETextMode /* mode */)
552{
553}
554
555
556////////////////////////////////////////////////////////////////////////////////
557/// Save specified window as GIF image
558
560{
561 return WriteGIF((char *) name);
562}
563
564////////////////////////////////////////////////////////////////////////////////
565/// Executes the command "code" coming from the other threads (Win32)
566
567UInt_t TVirtualX::ExecCommand(TGWin32Command * /*code*/)
568{
569 return 0;
570}
571
572////////////////////////////////////////////////////////////////////////////////
573/// Queries the double buffer value for the window "wid".
574
576{
577 return 0;
578}
579
580////////////////////////////////////////////////////////////////////////////////
581/// Returns character up vector.
582
587
588////////////////////////////////////////////////////////////////////////////////
589/// Returns position and size of window "wid".
590///
591/// \param [in] wid window identifier
592/// if wid < 0 the size of the display is returned
593/// \param [in] x, y returned window position
594/// \param [in] w, h returned window size
595
597 UInt_t &w, UInt_t &h)
598{
599 x = y = 0;
600 w = h = 0;
601}
602
603////////////////////////////////////////////////////////////////////////////////
604/// Returns hostname on which the display is opened.
605
606const char *TVirtualX::DisplayName(const char *)
607{
608 return "batch";
609}
610
611////////////////////////////////////////////////////////////////////////////////
612/// Returns the current native event handle.
613
615{
616 return 0;
617}
618
619////////////////////////////////////////////////////////////////////////////////
620/// Returns pixel value associated to specified ROOT color number "cindex".
621
623{
624 return 0;
625}
626
627////////////////////////////////////////////////////////////////////////////////
628/// Returns the maximum number of planes.
629
631{
632 nplanes = 0;
633}
634
635////////////////////////////////////////////////////////////////////////////////
636/// Returns RGB values for color "index".
637
639{
640 r = g = b = 0;
641}
642
643////////////////////////////////////////////////////////////////////////////////
644/// Returns the size of the specified character string "mess".
645///
646/// \param [in] w the text width
647/// \param [in] h the text height
648/// \param [in] mess the string
649
650void TVirtualX::GetTextExtent(UInt_t &w, UInt_t &h, char * /*mess*/)
651{
652 w = h = 0;
653}
654
655////////////////////////////////////////////////////////////////////////////////
656/// Returns the size of the specified character string "mess".
657///
658/// \param [in] w the text width
659/// \param [in] h the text height
660/// \param [in] mess the string
661
662void TVirtualX::GetTextExtent(UInt_t &w, UInt_t &h, wchar_t * /*mess*/)
663{
664 w = h = 0;
665}
666
667////////////////////////////////////////////////////////////////////////////////
668/// Returns the size of the specified character string "mess" for font and size.
669
671{
672 w = h = 0;
673 return kFALSE;
674}
675
676////////////////////////////////////////////////////////////////////////////////
677/// Returns the size of the specified character string "mess" for font and size.
678
680{
681 w = h = 0;
682 return kFALSE;
683}
684
685////////////////////////////////////////////////////////////////////////////////
686/// Returns ascent/descent for specified character string "mess" with font and size.
687
688
690{
691 a = d = 0;
692 return kFALSE;
693}
694
695////////////////////////////////////////////////////////////////////////////////
696/// Returns the ascent of the current font (in pixels).
697/// The ascent of a font is the distance from the baseline
698/// to the highest position characters extend to
699
701{
702 return 0;
703}
704
705////////////////////////////////////////////////////////////////////////////////
706/// Default version is noop, but in principle what
707/// ROOT understands as ascent is text related.
708
709Int_t TVirtualX::GetFontAscent(const char * /*mess*/) const
710{
711 return GetFontAscent();
712}
713
714////////////////////////////////////////////////////////////////////////////////
715/// Returns the descent of the current font (in pixels.
716/// The descent is the distance from the base line
717/// to the lowest point characters extend to.
718
720{
721 return 0;
722}
723
724////////////////////////////////////////////////////////////////////////////////
725/// Default version is noop, but in principle what
726/// ROOT understands as descent requires a certain text.
727
728Int_t TVirtualX::GetFontDescent(const char * /*mess*/) const
729{
730 return GetFontDescent();
731}
732
733////////////////////////////////////////////////////////////////////////////////
734/// Returns the current font magnification factor
735
737{
738 return 0;
739}
740
741////////////////////////////////////////////////////////////////////////////////
742/// Returns True when TrueType fonts are used
743
745{
746 return kFALSE;
747}
748
749////////////////////////////////////////////////////////////////////////////////
750/// Returns the X11 window identifier.
751///
752/// \param [in] wid workstation identifier (input)
753
755{
756 return 0;
757}
758
759////////////////////////////////////////////////////////////////////////////////
760/// Creates a new window and return window number.
761/// Returns -1 if window initialization fails.
762
764{
765 return 0;
766}
767
768////////////////////////////////////////////////////////////////////////////////
769/// Registers a window created by Qt as a ROOT window
770///
771/// \param [in] qwid window identifier
772/// \param [in] w, h the width and height, which define the window size
773
775{
776 return 0;
777}
778
779////////////////////////////////////////////////////////////////////////////////
780/// Registers a pixmap created by TGLManager as a ROOT pixmap
781///
782/// \param [in] pixid pixmap identifier
783/// \param [in] w, h the width and height, which define the pixmap size
784
786{
787 return 0;
788}
789
790
791////////////////////////////////////////////////////////////////////////////////
792/// Removes the created by Qt window "qwid".
793
795{
796}
797
798////////////////////////////////////////////////////////////////////////////////
799/// Moves the window "wid" to the specified x and y coordinates.
800/// It does not change the window's size, raise the window, or change
801/// the mapping state of the window.
802///
803/// \param [in] wid window identifier
804/// \param [in] x, y coordinates, which define the new position of the window
805/// relative to its parent.
806
807void TVirtualX::MoveWindow(Int_t /*wid*/, Int_t /*x*/, Int_t /*y*/)
808{
809}
810
811////////////////////////////////////////////////////////////////////////////////
812/// Creates a pixmap of the width "w" and height "h" you specified.
813
815{
816 return 0;
817}
818
819////////////////////////////////////////////////////////////////////////////////
820/// Returns the pointer position.
821
823{
824 ix = iy = 0;
825}
826
827////////////////////////////////////////////////////////////////////////////////
828/// If id is NULL - loads the specified gif file at position [x0,y0] in the
829/// current window. Otherwise creates pixmap from gif file
830
831Pixmap_t TVirtualX::ReadGIF(Int_t /*x0*/, Int_t /*y0*/, const char * /*file*/,
832 Window_t /*id*/)
833{
834 return 0;
835}
836
837////////////////////////////////////////////////////////////////////////////////
838/// Requests Locator position.
839///
840/// \param [in] x,y cursor position at moment of button press (output)
841/// \param [in] ctyp cursor type (input)
842/// - ctyp = 1 tracking cross
843/// - ctyp = 2 cross-hair
844/// - ctyp = 3 rubber circle
845/// - ctyp = 4 rubber band
846/// - ctyp = 5 rubber rectangle
847///
848/// \param [in] mode input mode
849/// - mode = 0 request
850/// - mode = 1 sample
851///
852/// \return
853/// - in request mode:
854/// - 1 = left is pressed
855/// - 2 = middle is pressed
856/// - 3 = right is pressed
857/// - in sample mode:
858/// - 11 = left is released
859/// - 12 = middle is released
860/// - 13 = right is released
861/// - -1 = nothing is pressed or released
862/// - -2 = leave the window
863/// - else = keycode (keyboard is pressed)
864
866 Int_t &x, Int_t &y)
867{
868 x = y = 0;
869 return 0;
870}
871
872////////////////////////////////////////////////////////////////////////////////
873/// Requests string: text is displayed and can be edited with Emacs-like
874/// keybinding. Returns termination code (0 for ESC, 1 for RETURN)
875///
876/// \param [in] x,y position where text is displayed
877/// \param [in] text displayed text (as input), edited text (as output)
878
880{
881 if (text) *text = 0;
882 return 0;
883}
884
885////////////////////////////////////////////////////////////////////////////////
886/// Rescales the window "wid".
887///
888/// \param [in] wid window identifier
889/// \param [in] w the width
890/// \param [in] h the height
891
892void TVirtualX::RescaleWindow(Int_t /*wid*/, UInt_t /*w*/, UInt_t /*h*/)
893{
894}
895
896////////////////////////////////////////////////////////////////////////////////
897/// Resizes the specified pixmap "wid".
898///
899/// \param [in] wid window identifier
900/// \param [in] w, h the width and height which define the pixmap dimensions
901
903{
904 return 0;
905}
906
907////////////////////////////////////////////////////////////////////////////////
908/// Resizes the window "wid" if necessary.
909
911{
912}
913
914////////////////////////////////////////////////////////////////////////////////
915/// Selects the window "wid" to which subsequent output is directed.
916
918{
919}
920
921////////////////////////////////////////////////////////////////////////////////
922/// Selects the pixmap "qpixid".
923
925{
926}
927
928////////////////////////////////////////////////////////////////////////////////
929/// Sets character up vector.
930
931void TVirtualX::SetCharacterUp(Float_t /*chupx*/, Float_t /*chupy*/)
932{
933}
934
935////////////////////////////////////////////////////////////////////////////////
936/// Turns off the clipping for the window "wid".
937
939{
940}
941
942////////////////////////////////////////////////////////////////////////////////
943/// Sets clipping region for the window "wid".
944///
945/// \param [in] wid window identifier
946/// \param [in] x, y origin of clipping rectangle
947/// \param [in] w, h the clipping rectangle dimensions
948
949void TVirtualX::SetClipRegion(Int_t /*wid*/, Int_t /*x*/, Int_t /*y*/,
950 UInt_t /*w*/, UInt_t /*h*/)
951{
952}
953
954////////////////////////////////////////////////////////////////////////////////
955/// The cursor "cursor" will be used when the pointer is in the
956/// window "wid".
957
958void TVirtualX::SetCursor(Int_t /*win*/, ECursor /*cursor*/)
959{
960}
961
962////////////////////////////////////////////////////////////////////////////////
963/// Sets the double buffer on/off on the window "wid".
964///
965/// \param [in] wid window identifier.
966/// - 999 means all opened windows.
967/// \param [in] mode the on/off switch
968/// - mode = 1 double buffer is on
969/// - mode = 0 double buffer is off
970
972{
973}
974
975////////////////////////////////////////////////////////////////////////////////
976/// Turns double buffer mode off.
977
981
982////////////////////////////////////////////////////////////////////////////////
983/// Turns double buffer mode on.
984
988
989////////////////////////////////////////////////////////////////////////////////
990/// Sets the drawing mode.
991///
992/// \param [in] mode drawing mode.
993/// - mode = 1 copy
994/// - mode = 2 xor
995/// - mode = 3 invert
996/// - mode = 4 set the suitable mode for cursor echo according to the vendor
997
999{
1000}
1001
1002////////////////////////////////////////////////////////////////////////////////
1003/// Sets color index "cindex" for fill areas.
1004
1006{
1007}
1008
1009////////////////////////////////////////////////////////////////////////////////
1010/// Sets fill area style.
1011///
1012/// \param [in] style compound fill area interior style
1013/// - style = 1000 * interiorstyle + styleindex
1014
1016{
1017}
1018
1019////////////////////////////////////////////////////////////////////////////////
1020/// Sets color index "cindex" for drawing lines.
1021
1023{
1024}
1025
1026////////////////////////////////////////////////////////////////////////////////
1027/// Sets the line type.
1028///
1029/// \param [in] n length of the dash list
1030/// - n <= 0 use solid lines
1031/// - n > 0 use dashed lines described by dash(n)
1032/// e.g. n = 4,dash = (6,3,1,3) gives a dashed-dotted line
1033/// with dash length 6 and a gap of 7 between dashes
1034/// \param [in] dash dash segment lengths
1035
1036void TVirtualX::SetLineType(Int_t /*n*/, Int_t * /*dash*/)
1037{
1038}
1039
1040////////////////////////////////////////////////////////////////////////////////
1041/// Sets the line style.
1042///
1043/// \param [in] linestyle line style.
1044/// - linestyle <= 1 solid
1045/// - linestyle = 2 dashed
1046/// - linestyle = 3 dotted
1047/// - linestyle = 4 dashed-dotted
1048
1050{
1051}
1052
1053////////////////////////////////////////////////////////////////////////////////
1054/// Sets the line width.
1055///
1056/// \param [in] width the line width in pixels
1057
1059{
1060}
1061
1062////////////////////////////////////////////////////////////////////////////////
1063/// Sets color index "cindex" for markers.
1064
1066{
1067}
1068
1069////////////////////////////////////////////////////////////////////////////////
1070/// Sets marker size index.
1071///
1072/// \param [in] markersize the marker scale factor
1073
1075{
1076}
1077
1078////////////////////////////////////////////////////////////////////////////////
1079/// Sets marker style.
1080
1082{
1083}
1084
1085////////////////////////////////////////////////////////////////////////////////
1086/// Sets opacity of the current window. This image manipulation routine
1087/// works by adding to a percent amount of neutral to each pixels RGB.
1088/// Since it requires quite some additional color map entries is it
1089/// only supported on displays with more than > 8 color planes (> 256
1090/// colors).
1091
1093{
1094}
1095
1096////////////////////////////////////////////////////////////////////////////////
1097/// Sets color intensities the specified color index "cindex".
1098///
1099/// \param [in] cindex color index
1100/// \param [in] r, g, b the red, green, blue intensities between 0.0 and 1.0
1101
1102void TVirtualX::SetRGB(Int_t /*cindex*/, Float_t /*r*/, Float_t /*g*/,
1103 Float_t /*b*/)
1104{
1105}
1106
1107////////////////////////////////////////////////////////////////////////////////
1108/// Sets the text alignment.
1109///
1110/// \param [in] talign text alignment.
1111/// - talign = txalh horizontal text alignment
1112/// - talign = txalv vertical text alignment
1113
1115{
1116}
1117
1118////////////////////////////////////////////////////////////////////////////////
1119/// Sets the color index "cindex" for text.
1120
1122{
1123}
1124
1125////////////////////////////////////////////////////////////////////////////////
1126/// Sets text font to specified name "fontname".This function returns 0 if
1127/// the specified font is found, 1 if it is not.
1128///
1129/// \param [in] fontname font name
1130/// \param [in] mode loading flag
1131/// - mode = 0 search if the font exist (kCheck)
1132/// - mode = 1 search the font and load it if it exists (kLoad)
1133
1134Int_t TVirtualX::SetTextFont(char * /*fontname*/, ETextSetMode /*mode*/)
1135{
1136 return 0;
1137}
1138
1139////////////////////////////////////////////////////////////////////////////////
1140/// Sets the current text font number.
1141
1142void TVirtualX::SetTextFont(Font_t /*fontnumber*/)
1143{
1144}
1145
1146////////////////////////////////////////////////////////////////////////////////
1147/// Sets the current text magnification factor to "mgn"
1148
1150{
1151}
1152
1153////////////////////////////////////////////////////////////////////////////////
1154/// Sets the current text size to "textsize"
1155
1157{
1158}
1159
1160////////////////////////////////////////////////////////////////////////////////
1161/// Set synchronisation on or off.
1162///
1163/// \param [in] mode synchronisation on/off
1164/// - mode=1 on
1165/// - mode<>0 off
1166
1168{
1169}
1170
1171////////////////////////////////////////////////////////////////////////////////
1172/// Updates or synchronises client and server once (not permanent).
1173/// according to "mode".
1174///
1175/// \param [in] mode update mode.
1176/// - mode = 1 update
1177/// - mode = 0 sync
1178
1180{
1181}
1182
1183////////////////////////////////////////////////////////////////////////////////
1184/// Sets the pointer position.
1185///
1186/// \param [in] ix new X coordinate of pointer
1187/// \param [in] iy new Y coordinate of pointer
1188/// \param [in] id window identifier
1189///
1190/// Coordinates are relative to the origin of the window id
1191/// or to the origin of the current window if id == 0.
1192
1193void TVirtualX::Warp(Int_t /*ix*/, Int_t /*iy*/, Window_t /*id*/)
1194{
1195}
1196
1197////////////////////////////////////////////////////////////////////////////////
1198/// Writes the current window into GIF file.
1199/// Returns 1 in case of success, 0 otherwise.
1200
1202{
1203 return 0;
1204}
1205
1206////////////////////////////////////////////////////////////////////////////////
1207/// Writes the pixmap "wid" in the bitmap file "pxname".
1208///
1209/// \param [in] wid the pixmap address
1210/// \param [in] w, h the width and height of the pixmap.
1211/// \param [in] pxname the file name
1212
1213void TVirtualX::WritePixmap(Int_t /*wid*/, UInt_t /*w*/, UInt_t /*h*/,
1214 char * /*pxname*/)
1215{
1216}
1217
1218
1219//---- Methods used for GUI -----
1220////////////////////////////////////////////////////////////////////////////////
1221/// Maps the window "id" and all of its subwindows that have had map
1222/// requests. This function has no effect if the window is already mapped.
1223
1225{
1226}
1227
1228////////////////////////////////////////////////////////////////////////////////
1229/// Maps all subwindows for the specified window "id" in top-to-bottom
1230/// stacking order.
1231
1233{
1234}
1235
1236////////////////////////////////////////////////////////////////////////////////
1237/// Maps the window "id" and all of its subwindows that have had map
1238/// requests on the screen and put this window on the top of of the
1239/// stack of all windows.
1240
1242{
1243}
1244
1245////////////////////////////////////////////////////////////////////////////////
1246/// Unmaps the specified window "id". If the specified window is already
1247/// unmapped, this function has no effect. Any child window will no longer
1248/// be visible (but they are still mapped) until another map call is made
1249/// on the parent.
1250
1252{
1253}
1254
1255////////////////////////////////////////////////////////////////////////////////
1256/// Destroys the window "id" as well as all of its subwindows.
1257/// The window should never be referenced again. If the window specified
1258/// by the "id" argument is mapped, it is unmapped automatically.
1259
1261{
1262}
1263
1264////////////////////////////////////////////////////////////////////////////////
1265/// The DestroySubwindows function destroys all inferior windows of the
1266/// specified window, in bottom-to-top stacking order.
1267
1271
1272////////////////////////////////////////////////////////////////////////////////
1273/// Raises the specified window to the top of the stack so that no
1274/// sibling window obscures it.
1275
1277{
1278}
1279
1280////////////////////////////////////////////////////////////////////////////////
1281/// Lowers the specified window "id" to the bottom of the stack so
1282/// that it does not obscure any sibling windows.
1283
1285{
1286}
1287
1288////////////////////////////////////////////////////////////////////////////////
1289/// Moves the specified window to the specified x and y coordinates.
1290/// It does not change the window's size, raise the window, or change
1291/// the mapping state of the window.
1292///
1293/// \param [in] id window identifier
1294/// \param [in] x, y coordinates, which define the new position of the window
1295/// relative to its parent.
1296
1297void TVirtualX::MoveWindow(Window_t /*id*/, Int_t /*x*/, Int_t /*y*/)
1298{
1299}
1300
1301////////////////////////////////////////////////////////////////////////////////
1302/// Changes the size and location of the specified window "id" without
1303/// raising it.
1304///
1305/// \param [in] id window identifier
1306/// \param [in] x, y coordinates, which define the new position of the window
1307/// relative to its parent.
1308/// \param [in] w, h the width and height, which define the interior size of
1309/// the window
1310
1312 UInt_t /*w*/, UInt_t /*h*/)
1313{
1314}
1315
1316////////////////////////////////////////////////////////////////////////////////
1317/// Changes the width and height of the specified window "id", not
1318/// including its borders. This function does not change the window's
1319/// upper-left coordinate.
1320///
1321/// \param [in] id window identifier
1322/// \param [in] w, h the width and height, which are the interior dimensions of
1323/// the window after the call completes.
1324
1326{
1327}
1328
1329////////////////////////////////////////////////////////////////////////////////
1330/// Iconifies the window "id".
1331
1333{
1334}
1335////////////////////////////////////////////////////////////////////////////////
1336/// Notify the low level GUI layer ROOT requires "tgwindow" to be
1337/// updated
1338///
1339/// Returns kTRUE if the notification was desirable and it was sent
1340///
1341/// At the moment only Qt4 layer needs that
1342///
1343/// One needs explicitly cast the first parameter to TGWindow to make
1344/// it working in the implementation.
1345///
1346/// One needs to process the notification to confine
1347/// all paint operations within "expose" / "paint" like low level event
1348/// or equivalent
1349
1351{
1352 return kFALSE;
1353}
1354
1355////////////////////////////////////////////////////////////////////////////////
1356/// If the specified window is mapped, ReparentWindow automatically
1357/// performs an UnmapWindow request on it, removes it from its current
1358/// position in the hierarchy, and inserts it as the child of the specified
1359/// parent. The window is placed in the stacking order on top with respect
1360/// to sibling windows.
1361
1363 Int_t /*x*/, Int_t /*y*/)
1364{
1365}
1366
1367////////////////////////////////////////////////////////////////////////////////
1368/// Sets the background of the window "id" to the specified color value
1369/// "color". Changing the background does not cause the window contents
1370/// to be changed.
1371
1373{
1374}
1375
1376////////////////////////////////////////////////////////////////////////////////
1377/// Sets the background pixmap of the window "id" to the specified
1378/// pixmap "pxm".
1379
1383
1384////////////////////////////////////////////////////////////////////////////////
1385/// Creates an unmapped subwindow for a specified parent window and returns
1386/// the created window. The created window is placed on top in the stacking
1387/// order with respect to siblings. The coordinate system has the X axis
1388/// horizontal and the Y axis vertical with the origin [0,0] at the
1389/// upper-left corner. Each window and pixmap has its own coordinate system.
1390///
1391/// \param [in] parent the parent window
1392/// \param [in] x, y coordinates, the top-left outside corner of the window's
1393/// borders; relative to the inside of the parent window's borders
1394/// \param [in] w, h width and height of the created window; do not include the
1395/// created window's borders
1396/// \param [in] border the border pixel value of the window
1397/// \param [in] depth the window's depth
1398/// \param [in] clss the created window's class; can be InputOutput, InputOnly, or
1399/// CopyFromParent
1400/// \param [in] visual the visual type
1401/// \param [in] attr the structure from which the values are to be taken.
1402/// \param [in] wtype the window type
1403
1405 UInt_t /*w*/, UInt_t /*h*/,
1406 UInt_t /*border*/, Int_t /*depth*/,
1407 UInt_t /*clss*/, void * /*visual*/,
1408 SetWindowAttributes_t * /*attr*/,
1409 UInt_t /*wtype*/)
1410{
1411 return 0;
1412}
1413
1414////////////////////////////////////////////////////////////////////////////////
1415/// Opens connection to display server (if such a thing exist on the
1416/// current platform). The encoding and interpretation of the display
1417/// name.
1418///
1419/// On X11 this method returns on success the X display socket descriptor
1420/// >0, 0 in case of batch mode, and <0 in case of failure (cannot connect
1421/// to display dpyName).
1422
1423Int_t TVirtualX::OpenDisplay(const char * /*dpyName*/)
1424{
1425 return 0;
1426}
1427
1428////////////////////////////////////////////////////////////////////////////////
1429/// Closes connection to display server and destroys all windows.
1430
1432{
1433}
1434
1435////////////////////////////////////////////////////////////////////////////////
1436/// Returns handle to display (might be useful in some cases where
1437/// direct X11 manipulation outside of TVirtualX is needed, e.g. GL
1438/// interface).
1439
1441{
1442 return 0;
1443}
1444
1445////////////////////////////////////////////////////////////////////////////////
1446/// Returns handle to visual.
1447///
1448/// Might be useful in some cases where direct X11 manipulation outside
1449/// of TVirtualX is needed, e.g. GL interface.
1450
1452{
1453 return 0;
1454}
1455
1456////////////////////////////////////////////////////////////////////////////////
1457/// Returns screen number.
1458///
1459/// Might be useful in some cases where direct X11 manipulation outside
1460/// of TVirtualX is needed, e.g. GL interface.
1461
1463{
1464 return 0;
1465}
1466
1467////////////////////////////////////////////////////////////////////////////////
1468/// Returns depth of screen (number of bit planes).
1469/// Equivalent to GetPlanes().
1470
1472{
1473 return 0;
1474}
1475
1476////////////////////////////////////////////////////////////////////////////////
1477/// Returns handle to colormap.
1478///
1479/// Might be useful in some cases where direct X11 manipulation outside
1480/// of TVirtualX is needed, e.g. GL interface.
1481
1483{
1484 return 0;
1485}
1486
1487////////////////////////////////////////////////////////////////////////////////
1488/// Returns handle to the default root window created when calling
1489/// XOpenDisplay().
1490
1492{
1493 return 0;
1494}
1495
1496////////////////////////////////////////////////////////////////////////////////
1497/// Returns the atom identifier associated with the specified "atom_name"
1498/// string. If "only_if_exists" is False, the atom is created if it does
1499/// not exist. If the atom name is not in the Host Portable Character
1500/// Encoding, the result is implementation dependent. Uppercase and
1501/// lowercase matter; the strings "thing", "Thing", and "thinG" all
1502/// designate different atoms.
1503
1504Atom_t TVirtualX::InternAtom(const char * /*atom_name*/,
1505 Bool_t /*only_if_exist*/)
1506{
1507 return 0;
1508}
1509
1510////////////////////////////////////////////////////////////////////////////////
1511/// Returns the parent of the window "id".
1512
1514{
1515 return 0;
1516}
1517
1518////////////////////////////////////////////////////////////////////////////////
1519/// Provides the most common way for accessing a font: opens (loads) the
1520/// specified font and returns a pointer to the appropriate FontStruct_t
1521/// structure. If the font does not exist, it returns NULL.
1522
1523FontStruct_t TVirtualX::LoadQueryFont(const char * /*font_name*/)
1524{
1525 return 0;
1526}
1527
1528////////////////////////////////////////////////////////////////////////////////
1529/// Returns the font handle of the specified font structure "fs".
1530
1532{
1533 return 0;
1534}
1535
1536////////////////////////////////////////////////////////////////////////////////
1537/// Explicitly deletes the font structure "fs" obtained via LoadQueryFont().
1538
1540{
1541}
1542
1543////////////////////////////////////////////////////////////////////////////////
1544/// Creates a graphics context using the provided GCValues_t *gval structure.
1545/// The mask data member of gval specifies which components in the GC are
1546/// to be set using the information in the specified values structure.
1547/// It returns a graphics context handle GContext_t that can be used with any
1548/// destination drawable or O if the creation falls.
1549
1551{
1552 return 0;
1553}
1554
1555////////////////////////////////////////////////////////////////////////////////
1556/// Changes the components specified by the mask in gval for the specified GC.
1557///
1558/// \param [in] gc specifies the GC to be changed
1559/// \param [in] gval specifies the mask and the values to be set
1560///
1561/// (see also the GCValues_t structure)
1562
1564{
1565}
1566
1567////////////////////////////////////////////////////////////////////////////////
1568/// Copies the specified components from the source GC "org" to the
1569/// destination GC "dest". The "mask" defines which component to copy
1570/// and it is a data member of GCValues_t.
1571
1572void TVirtualX::CopyGC(GContext_t /*org*/, GContext_t /*dest*/, Mask_t /*mask*/)
1573{
1574}
1575
1576////////////////////////////////////////////////////////////////////////////////
1577/// Deletes the specified GC "gc".
1578
1580{
1581}
1582
1583////////////////////////////////////////////////////////////////////////////////
1584/// Creates the specified cursor. (just return cursor from cursor pool).
1585/// The cursor can be:
1586/// ~~~ {.cpp}
1587/// kBottomLeft, kBottomRight, kTopLeft, kTopRight,
1588/// kBottomSide, kLeftSide, kTopSide, kRightSide,
1589/// kMove, kCross, kArrowHor, kArrowVer,
1590/// kHand, kRotate, kPointer, kArrowRight,
1591/// kCaret, kWatch
1592/// ~~~
1593
1595{
1596 return 0;
1597}
1598
1599////////////////////////////////////////////////////////////////////////////////
1600/// Sets the cursor "curid" to be used when the pointer is in the
1601/// window "id".
1602
1604{
1605}
1606
1607////////////////////////////////////////////////////////////////////////////////
1608/// Creates a pixmap of the specified width and height and returns
1609/// a pixmap ID that identifies it.
1610
1612{
1613 return kNone;
1614}
1615////////////////////////////////////////////////////////////////////////////////
1616/// Creates a pixmap from bitmap data of the width, height, and depth you
1617/// specified and returns a pixmap that identifies it. The width and height
1618/// arguments must be nonzero. The depth argument must be one of the depths
1619/// supported by the screen of the specified drawable.
1620///
1621/// \param [in] id specifies which screen the pixmap is created on
1622/// \param [in] bitmap the data in bitmap format
1623/// \param [in] width, height define the dimensions of the pixmap
1624/// \param [in] forecolor the foreground pixel values to use
1625/// \param [in] backcolor the background pixel values to use
1626/// \param [in] depth the depth of the pixmap
1627
1628Pixmap_t TVirtualX::CreatePixmap(Drawable_t /*id*/, const char * /*bitmap*/,
1629 UInt_t /*width*/, UInt_t /*height*/,
1630 ULong_t /*forecolor*/, ULong_t /*backcolor*/,
1631 Int_t /*depth*/)
1632{
1633 return 0;
1634}
1635
1636////////////////////////////////////////////////////////////////////////////////
1637/// Creates a bitmap (i.e. pixmap with depth 1) from the bitmap data.
1638///
1639/// \param [in] id specifies which screen the pixmap is created on
1640/// \param [in] bitmap the data in bitmap format
1641/// \param [in] width, height define the dimensions of the pixmap
1642
1643Pixmap_t TVirtualX::CreateBitmap(Drawable_t /*id*/, const char * /*bitmap*/,
1644 UInt_t /*width*/, UInt_t /*height*/)
1645{
1646 return 0;
1647}
1648
1649////////////////////////////////////////////////////////////////////////////////
1650/// Explicitly deletes the pixmap resource "pmap".
1651
1653{
1654}
1655
1656////////////////////////////////////////////////////////////////////////////////
1657/// Creates a picture pict from data in file "filename". The picture
1658/// attributes "attr" are used for input and output. Returns kTRUE in
1659/// case of success, kFALSE otherwise. If the mask "pict_mask" does not
1660/// exist it is set to kNone.
1661
1663 const char * /*filename*/,
1664 Pixmap_t &/*pict*/,
1665 Pixmap_t &/*pict_mask*/,
1666 PictureAttributes_t &/*attr*/)
1667{
1668 return kFALSE;
1669}
1670
1671////////////////////////////////////////////////////////////////////////////////
1672/// Creates a picture pict from data in bitmap format. The picture
1673/// attributes "attr" are used for input and output. Returns kTRUE in
1674/// case of success, kFALSE otherwise. If the mask "pict_mask" does not
1675/// exist it is set to kNone.
1676
1678 Pixmap_t &/*pict*/,
1679 Pixmap_t &/*pict_mask*/,
1680 PictureAttributes_t & /*attr*/)
1681{
1682 return kFALSE;
1683}
1684////////////////////////////////////////////////////////////////////////////////
1685/// Reads picture data from file "filename" and store it in "ret_data".
1686/// Returns kTRUE in case of success, kFALSE otherwise.
1687
1689 char *** /*ret_data*/)
1690{
1691 return kFALSE;
1692}
1693
1694////////////////////////////////////////////////////////////////////////////////
1695/// Delete picture data created by the function ReadPictureDataFromFile.
1696
1697void TVirtualX::DeletePictureData(void * /*data*/)
1698{
1699}
1700
1701////////////////////////////////////////////////////////////////////////////////
1702/// Sets the dash-offset and dash-list attributes for dashed line styles
1703/// in the specified GC. There must be at least one element in the
1704/// specified dash_list. The initial and alternating elements (second,
1705/// fourth, and so on) of the dash_list are the even dashes, and the
1706/// others are the odd dashes. Each element in the "dash_list" array
1707/// specifies the length (in pixels) of a segment of the pattern.
1708///
1709/// \param [in] gc specifies the GC (see GCValues_t structure)
1710/// \param [in] offset the phase of the pattern for the dashed line-style you
1711/// want to set for the specified GC.
1712/// \param [in] dash_list the dash-list for the dashed line-style you want to set
1713/// for the specified GC
1714/// \param [in] n the number of elements in dash_list
1715/// (see also the GCValues_t structure)
1716
1717void TVirtualX::SetDashes(GContext_t /*gc*/, Int_t /*offset*/,
1718 const char * /*dash_list*/, Int_t /*n*/)
1719{
1720}
1721
1722////////////////////////////////////////////////////////////////////////////////
1723/// Frees color cell with specified pixel value.
1724
1725void TVirtualX::FreeColor(Colormap_t /*cmap*/, ULong_t /*pixel*/)
1726{
1727}
1728
1729////////////////////////////////////////////////////////////////////////////////
1730/// Returns the number of events that have been received from the X server
1731/// but have not been removed from the event queue.
1732
1734{
1735 return 0;
1736}
1737
1738////////////////////////////////////////////////////////////////////////////////
1739/// Sets the sound bell. Percent is loudness from -100% to 100%.
1740
1741void TVirtualX::Bell(Int_t /*percent*/)
1742{
1743}
1744
1745////////////////////////////////////////////////////////////////////////////////
1746/// Combines the specified rectangle of "src" with the specified rectangle
1747/// of "dest" according to the "gc".
1748///
1749/// \param [in] src source rectangle
1750/// \param [in] dest destination rectangle
1751/// \param [in] gc graphics context
1752/// \param [in] src_x, src_y specify the x and y coordinates, which are relative
1753/// to the origin of the source rectangle and specify
1754/// upper-left corner.
1755/// \param [in] width, height the width and height, which are the dimensions of both
1756/// the source and destination rectangles
1757/// \param [in] dest_x, dest_y specify the upper-left corner of the destination
1758/// rectangle
1759///
1760/// GC components in use: function, plane-mask, subwindow-mode,
1761/// graphics-exposure, clip-x-origin, clip-y-origin, and clip-mask.
1762/// (see also the GCValues_t structure)
1763
1765 GContext_t /*gc*/, Int_t /*src_x*/, Int_t /*src_y*/,
1766 UInt_t /*width*/, UInt_t /*height*/,
1767 Int_t /*dest_x*/, Int_t /*dest_y*/)
1768{
1769}
1770
1771////////////////////////////////////////////////////////////////////////////////
1772/// Changes the attributes of the specified window "id" according the
1773/// values provided in "attr". The mask data member of "attr" specifies
1774/// which window attributes are defined in the attributes argument.
1775/// This mask is the bitwise inclusive OR of the valid attribute mask
1776/// bits; if it is zero, the attributes are ignored.
1777
1779 SetWindowAttributes_t * /*attr*/)
1780{
1781}
1782
1783////////////////////////////////////////////////////////////////////////////////
1784/// Alters the property for the specified window and causes the X server
1785/// to generate a PropertyNotify event on that window.
1786///
1787/// \param [in] id the window whose property you want to change
1788/// \param [in] property specifies the property name
1789/// \param [in] type the type of the property; the X server does not
1790/// interpret the type but simply passes it back to
1791/// an application that might ask about the window
1792/// properties
1793/// \param [in] data the property data
1794/// \param [in] len the length of the specified data format
1795
1797 Atom_t /*type*/, UChar_t * /*data*/,
1798 Int_t /*len*/)
1799{
1800}
1801
1802////////////////////////////////////////////////////////////////////////////////
1803/// Alters the property for the specified window and causes the X server
1804/// to generate a PropertyNotify event on that window.
1805///
1806/// \param [in] id the window whose property you want to change
1807/// \param [in] hint specifies the type to be changed
1808
1810{
1811}
1812
1813////////////////////////////////////////////////////////////////////////////////
1814/// Uses the components of the specified GC to draw a line between the
1815/// specified set of points (x1, y1) and (x2, y2).
1816///
1817/// GC components in use: function, plane-mask, line-width, line-style,
1818/// cap-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin,
1819/// and clip-mask.
1820///
1821/// GC mode-dependent components: foreground, background, tile, stipple,
1822/// tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dash-list.
1823/// (see also the GCValues_t structure)
1824
1826 Int_t /*x1*/, Int_t /*y1*/, Int_t /*x2*/, Int_t /*y2*/)
1827{
1828}
1829
1830////////////////////////////////////////////////////////////////////////////////
1831/// Paints a rectangular area in the specified window "id" according to
1832/// the specified dimensions with the window's background pixel or pixmap.
1833///
1834/// \param [in] id specifies the window
1835/// \param [in] x, y coordinates, which are relative to the origin
1836/// \param [in] w, h the width and height which define the rectangle dimensions
1837
1838void TVirtualX::ClearArea(Window_t /*id*/, Int_t /*x*/, Int_t /*y*/,
1839 UInt_t /*w*/, UInt_t /*h*/)
1840{
1841}
1842
1843////////////////////////////////////////////////////////////////////////////////
1844/// Check if there is for window "id" an event of type "type". If there
1845/// is it fills in the event structure and return true. If no such event
1846/// return false.
1847
1849 Event_t &/*ev*/)
1850{
1851 return kFALSE;
1852}
1853
1854////////////////////////////////////////////////////////////////////////////////
1855/// Specifies the event "ev" is to be sent to the window "id".
1856/// This function requires you to pass an event mask.
1857
1859{
1860}
1861
1862////////////////////////////////////////////////////////////////////////////////
1863/// Force processing of event, sent by SendEvent before.
1864
1866{
1867}
1868
1869////////////////////////////////////////////////////////////////////////////////
1870/// Tells WM to send message when window is closed via WM.
1871
1873{
1874}
1875
1876////////////////////////////////////////////////////////////////////////////////
1877/// Turns key auto repeat on (kTRUE) or off (kFALSE).
1878
1880{
1881}
1882
1883////////////////////////////////////////////////////////////////////////////////
1884/// Establishes a passive grab on the keyboard. In the future, the
1885/// keyboard is actively grabbed, the last-keyboard-grab time is set
1886/// to the time at which the key was pressed (as transmitted in the
1887/// KeyPress event), and the KeyPress event is reported if all of the
1888/// following conditions are true:
1889///
1890/// - the keyboard is not grabbed and the specified key (which can
1891/// itself be a modifier key) is logically pressed when the
1892/// specified modifier keys are logically down, and no other
1893/// modifier keys are logically down;
1894/// - either the grab window "id" is an ancestor of (or is) the focus
1895/// window, or "id" is a descendant of the focus window and contains
1896/// the pointer;
1897/// - a passive grab on the same key combination does not exist on any
1898/// ancestor of grab_window
1899///
1900/// \param [in] id window id
1901/// \param [in] keycode specifies the KeyCode or AnyKey
1902/// \param [in] modifier specifies the set of keymasks or AnyModifier; the mask is
1903/// the bitwise inclusive OR of the valid keymask bits
1904/// \param [in] grab a switch between grab/ungrab key
1905/// grab = kTRUE grab the key and modifier
1906/// grab = kFALSE ungrab the key and modifier
1907
1908void TVirtualX::GrabKey(Window_t /*id*/, Int_t /*keycode*/, UInt_t /*modifier*/,
1909 Bool_t /*grab = kTRUE*/)
1910{
1911}
1912
1913////////////////////////////////////////////////////////////////////////////////
1914/// Establishes a passive grab on a certain mouse button. That is, when a
1915/// certain mouse button is hit while certain modifier's (Shift, Control,
1916/// Meta, Alt) are active then the mouse will be grabbed for window id.
1917/// When grab is false, ungrab the mouse button for this button and modifier.
1918
1920 UInt_t /*modifier*/, UInt_t /*evmask*/,
1921 Window_t /*confine*/, Cursor_t /*cursor*/,
1922 Bool_t /*grab = kTRUE*/)
1923{
1924}
1925
1926////////////////////////////////////////////////////////////////////////////////
1927/// Establishes an active pointer grab. While an active pointer grab is in
1928/// effect, further pointer events are only reported to the grabbing
1929/// client window.
1930
1932 Window_t /*confine*/, Cursor_t /*cursor*/,
1933 Bool_t /*grab = kTRUE*/,
1934 Bool_t /*owner_events = kTRUE*/)
1935{
1936}
1937
1938////////////////////////////////////////////////////////////////////////////////
1939/// Sets the window name.
1940
1941void TVirtualX::SetWindowName(Window_t /*id*/, char * /*name*/)
1942{
1943}
1944
1945////////////////////////////////////////////////////////////////////////////////
1946/// Sets the window icon name.
1947
1948void TVirtualX::SetIconName(Window_t /*id*/, char * /*name*/)
1949{
1950}
1951
1952////////////////////////////////////////////////////////////////////////////////
1953/// Sets the icon name pixmap.
1954
1956{
1957}
1958
1959////////////////////////////////////////////////////////////////////////////////
1960/// Sets the windows class and resource name.
1961
1962void TVirtualX::SetClassHints(Window_t /*id*/, char * /*className*/,
1963 char * /*resourceName*/)
1964{
1965}
1966
1967////////////////////////////////////////////////////////////////////////////////
1968/// Sets decoration style.
1969
1970void TVirtualX::SetMWMHints(Window_t /*id*/, UInt_t /*value*/, UInt_t /*funcs*/,
1971 UInt_t /*input*/)
1972{
1973}
1974
1975////////////////////////////////////////////////////////////////////////////////
1976/// Tells the window manager the desired position [x,y] of window "id".
1977
1979{
1980}
1981
1982////////////////////////////////////////////////////////////////////////////////
1983/// Tells window manager the desired size of window "id".
1984///
1985/// \param [in] id window identifier
1986/// \param [in] w the width
1987/// \param [in] h the height
1988
1989void TVirtualX::SetWMSize(Window_t /*id*/, UInt_t /*w*/, UInt_t /*h*/)
1990{
1991}
1992
1993////////////////////////////////////////////////////////////////////////////////
1994/// Gives the window manager minimum and maximum size hints of the window
1995/// "id". Also specify via "winc" and "hinc" the resize increments.
1996///
1997/// \param [in] id window identifier
1998/// \param [in] wmin, hmin specify the minimum window size
1999/// \param [in] wmax, hmax specify the maximum window size
2000/// \param [in] winc, hinc define an arithmetic progression of sizes into which
2001/// the window to be resized (minimum to maximum)
2002
2003void TVirtualX::SetWMSizeHints(Window_t /*id*/, UInt_t /*wmin*/, UInt_t /*hmin*/,
2004 UInt_t /*wmax*/, UInt_t /*hmax*/,
2005 UInt_t /*winc*/, UInt_t /*hinc*/)
2006{
2007}
2008
2009////////////////////////////////////////////////////////////////////////////////
2010/// Sets the initial state of the window "id": either kNormalState
2011/// or kIconicState.
2012
2014{
2015}
2016
2017////////////////////////////////////////////////////////////////////////////////
2018/// Tells window manager that the window "id" is a transient window
2019/// of the window "main_id". A window manager may decide not to decorate
2020/// a transient window or may treat it differently in other ways.
2021
2023{
2024}
2025
2026////////////////////////////////////////////////////////////////////////////////
2027/// Each character image, as defined by the font in the GC, is treated as an
2028/// additional mask for a fill operation on the drawable.
2029///
2030/// \param [in] id the drawable
2031/// \param [in] gc the GC
2032/// \param [in] x, y coordinates, which are relative to the origin of the specified
2033/// drawable and define the origin of the first character
2034/// \param [in] s the character string
2035/// \param [in] len the number of characters in the string argument
2036///
2037/// GC components in use: function, plane-mask, fill-style, font,
2038/// subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
2039/// GC mode-dependent components: foreground, background, tile, stipple,
2040/// tile-stipple-x-origin, and tile-stipple-y-origin.
2041/// (see also the GCValues_t structure)
2042
2044 Int_t /*y*/, const char * /*s*/, Int_t /*len*/)
2045{
2046}
2047
2048////////////////////////////////////////////////////////////////////////////////
2049/// Return length of the string "s" in pixels. Size depends on font.
2050
2051Int_t TVirtualX::TextWidth(FontStruct_t /*font*/, const char * /*s*/,
2052 Int_t /*len*/)
2053{
2054 return 5;
2055}
2056
2057////////////////////////////////////////////////////////////////////////////////
2058/// Returns the font properties.
2059
2061 Int_t &max_descent)
2062{
2063 max_ascent = 5;
2064 max_descent = 5;
2065}
2066
2067////////////////////////////////////////////////////////////////////////////////
2068/// Returns the components specified by the mask in "gval" for the
2069/// specified GC "gc" (see also the GCValues_t structure)
2070
2072{
2073 gval.fMask = 0;
2074}
2075
2076////////////////////////////////////////////////////////////////////////////////
2077/// Return the font associated with the graphics context gc
2078
2080{
2081 return 0;
2082}
2083
2084////////////////////////////////////////////////////////////////////////////////
2085/// Retrieves the associated font structure of the font specified font
2086/// handle "fh".
2087///
2088/// Free returned FontStruct_t using FreeFontStruct().
2089
2091{
2092 return 0;
2093}
2094
2095////////////////////////////////////////////////////////////////////////////////
2096/// Frees the font structure "fs". The font itself will be freed when
2097/// no other resource references it.
2098
2102
2103////////////////////////////////////////////////////////////////////////////////
2104/// Clears the entire area in the specified window and it is equivalent to
2105/// ClearArea(id, 0, 0, 0, 0)
2106
2108{
2109}
2110
2111////////////////////////////////////////////////////////////////////////////////
2112/// Converts the "keysym" to the appropriate keycode. For example,
2113/// keysym is a letter and keycode is the matching keyboard key (which
2114/// is dependent on the current keyboard mapping). If the specified
2115/// "keysym" is not defined for any keycode, returns zero.
2116
2118{
2119 return 0;
2120}
2121
2122////////////////////////////////////////////////////////////////////////////////
2123/// Fills the specified rectangle defined by [x,y] [x+w,y] [x+w,y+h] [x,y+h].
2124/// using the GC you specify.
2125///
2126/// GC components in use are: function, plane-mask, fill-style,
2127/// subwindow-mode, clip-x-origin, clip-y-origin, clip-mask.
2128/// GC mode-dependent components: foreground, background, tile, stipple,
2129/// tile-stipple-x-origin, and tile-stipple-y-origin.
2130/// (see also the GCValues_t structure)
2131
2133 Int_t /*x*/, Int_t /*y*/,
2134 UInt_t /*w*/, UInt_t /*h*/)
2135{
2136}
2137
2138////////////////////////////////////////////////////////////////////////////////
2139/// Draws rectangle outlines of [x,y] [x+w,y] [x+w,y+h] [x,y+h]
2140///
2141/// GC components in use: function, plane-mask, line-width, line-style,
2142/// cap-style, join-style, fill-style, subwindow-mode, clip-x-origin,
2143/// clip-y-origin, clip-mask.
2144/// GC mode-dependent components: foreground, background, tile, stipple,
2145/// tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dash-list.
2146/// (see also the GCValues_t structure)
2147
2149 Int_t /*x*/, Int_t /*y*/,
2150 UInt_t /*w*/, UInt_t /*h*/)
2151{
2152}
2153
2154////////////////////////////////////////////////////////////////////////////////
2155/// Draws multiple line segments. Each line is specified by a pair of points.
2156///
2157/// \param [in] id Drawable identifier
2158/// \param [in] gc graphics context
2159/// \param [in] *seg specifies an array of segments
2160/// \param [in] nseg specifies the number of segments in the array
2161///
2162/// GC components in use: function, plane-mask, line-width, line-style,
2163/// cap-style, join-style, fill-style, subwindow-mode, clip-x-origin,
2164/// clip-y-origin, clip-mask.
2165///
2166/// GC mode-dependent components: foreground, background, tile, stipple,
2167/// tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, and dash-list.
2168/// (see also the GCValues_t structure)
2169
2171 Segment_t * /*seg*/, Int_t /*nseg*/)
2172{
2173}
2174
2175////////////////////////////////////////////////////////////////////////////////
2176/// Defines which input events the window is interested in. By default
2177/// events are propagated up the window stack. This mask can also be
2178/// set at window creation time via the SetWindowAttributes_t::fEventMask
2179/// attribute.
2180
2182{
2183}
2184
2185////////////////////////////////////////////////////////////////////////////////
2186/// Returns the window id of the window having the input focus.
2187
2189{
2190 return kNone;
2191}
2192
2193////////////////////////////////////////////////////////////////////////////////
2194/// Changes the input focus to specified window "id".
2195
2197{
2198}
2199
2200////////////////////////////////////////////////////////////////////////////////
2201/// Returns the window id of the current owner of the primary selection.
2202/// That is the window in which, for example some text is selected.
2203
2208
2209////////////////////////////////////////////////////////////////////////////////
2210/// Makes the window "id" the current owner of the primary selection.
2211/// That is the window in which, for example some text is selected.
2212
2216
2217////////////////////////////////////////////////////////////////////////////////
2218/// Causes a SelectionRequest event to be sent to the current primary
2219/// selection owner. This event specifies the selection property
2220/// (primary selection), the format into which to convert that data before
2221/// storing it (target = XA_STRING), the property in which the owner will
2222/// place the information (sel_property), the window that wants the
2223/// information (id), and the time of the conversion request (when).
2224/// The selection owner responds by sending a SelectionNotify event, which
2225/// confirms the selected atom and type.
2226
2228 Time_t /*when*/)
2229{
2230}
2231
2232////////////////////////////////////////////////////////////////////////////////
2233/// Converts the keycode from the event structure to a key symbol (according
2234/// to the modifiers specified in the event structure and the current
2235/// keyboard mapping). In "buf" a null terminated ASCII string is returned
2236/// representing the string that is currently mapped to the key code.
2237///
2238/// \param [in] event specifies the event structure to be used
2239/// \param [in] buf returns the translated characters
2240/// \param [in] buflen the length of the buffer
2241/// \param [in] keysym returns the "keysym" computed from the event
2242/// if this argument is not NULL
2243
2244void TVirtualX::LookupString(Event_t * /*event*/, char * /*buf*/,
2245 Int_t /*buflen*/, UInt_t &keysym)
2246{
2247 keysym = 0;
2248}
2249
2250////////////////////////////////////////////////////////////////////////////////
2251/// Translates coordinates in one window to the coordinate space of another
2252/// window. It takes the "src_x" and "src_y" coordinates relative to the
2253/// source window's origin and returns these coordinates to "dest_x" and
2254/// "dest_y" relative to the destination window's origin.
2255///
2256/// \param [in] src the source window
2257/// \param [in] dest the destination window
2258/// \param [in] src_x, src_y coordinates within the source window
2259/// \param [in] dest_x, dest_y coordinates within the destination window
2260/// \param [in] child returns the child of "dest" if the coordinates
2261/// are contained in a mapped child of the destination
2262/// window; otherwise, child is set to 0
2263
2265 Int_t /*src_x*/, Int_t /*src_y*/,
2267 Window_t &child)
2268{
2269 dest_x = dest_y = 0;
2270 child = 0;
2271}
2272
2273////////////////////////////////////////////////////////////////////////////////
2274/// Returns the location and the size of window "id"
2275///
2276/// \param [in] id drawable identifier
2277/// \param [in] x, y coordinates of the upper-left outer corner relative to the
2278/// parent window's origin
2279/// \param [in] w, h the inside size of the window, not including the border
2280
2282 UInt_t &w, UInt_t &h)
2283{
2284 x = y = 0;
2285 w = h = 1;
2286}
2287
2288////////////////////////////////////////////////////////////////////////////////
2289/// Fills the region closed by the specified path. The path is closed
2290/// automatically if the last point in the list does not coincide with the
2291/// first point.
2292///
2293/// \param [in] id window identifier
2294/// \param [in] gc graphics context
2295/// \param [in] *points specifies an array of points
2296/// \param [in] npnt specifies the number of points in the array
2297///
2298/// GC components in use: function, plane-mask, fill-style, fill-rule,
2299/// subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. GC
2300/// mode-dependent components: foreground, background, tile, stipple,
2301/// tile-stipple-x-origin, and tile-stipple-y-origin.
2302/// (see also the GCValues_t structure)
2303
2305 /*points*/, Int_t /*npnt*/) {
2306}
2307
2308////////////////////////////////////////////////////////////////////////////////
2309/// Returns the root window the pointer is logically on and the pointer
2310/// coordinates relative to the root window's origin.
2311///
2312/// \param [in] id specifies the window
2313/// \param [in] rootw the root window that the pointer is in
2314/// \param [in] childw the child window that the pointer is located in, if any
2315/// \param [in] root_x, root_y the pointer coordinates relative to the root window's
2316/// origin
2317/// \param [in] win_x, win_y the pointer coordinates relative to the specified
2318/// window "id"
2319/// \param [in] mask the current state of the modifier keys and pointer
2320/// buttons
2321
2323 Int_t &root_x, Int_t &root_y, Int_t &win_x,
2324 Int_t &win_y, UInt_t &mask)
2325{
2326 rootw = childw = kNone;
2327 root_x = root_y = win_x = win_y = 0;
2328 mask = 0;
2329}
2330
2331////////////////////////////////////////////////////////////////////////////////
2332/// Sets the foreground color for the specified GC (shortcut for ChangeGC
2333/// with only foreground mask set).
2334///
2335/// \param [in] gc specifies the GC
2336/// \param [in] foreground the foreground you want to set
2337///
2338/// (see also the GCValues_t structure)
2339
2340void TVirtualX::SetForeground(GContext_t /*gc*/, ULong_t /*foreground*/)
2341{
2342}
2343
2344////////////////////////////////////////////////////////////////////////////////
2345/// Sets clipping rectangles in graphics context. [x,y] specify the origin
2346/// of the rectangles. "recs" specifies an array of rectangles that define
2347/// the clipping mask and "n" is the number of rectangles.
2348/// (see also the GCValues_t structure)
2349
2351 Rectangle_t * /*recs*/, Int_t /*n*/)
2352{
2353}
2354
2355////////////////////////////////////////////////////////////////////////////////
2356/// Flushes (mode = 0, default) or synchronizes (mode = 1) X output buffer.
2357/// Flush flushes output buffer. Sync flushes buffer and waits till all
2358/// requests have been processed by X server.
2359
2360void TVirtualX::Update(Int_t /*mode = 0*/)
2361{
2362}
2363
2364////////////////////////////////////////////////////////////////////////////////
2365/// Creates a new empty region.
2366
2368{
2369 return 0;
2370}
2371
2372////////////////////////////////////////////////////////////////////////////////
2373/// Destroys the region "reg".
2374
2376{
2377}
2378
2379////////////////////////////////////////////////////////////////////////////////
2380/// Updates the destination region from a union of the specified rectangle
2381/// and the specified source region.
2382///
2383/// \param [in] rect specifies the rectangle
2384/// \param [in] src specifies the source region to be used
2385/// \param [in] dest returns the destination region
2386
2388 Region_t /*dest*/)
2389{
2390}
2391
2392////////////////////////////////////////////////////////////////////////////////
2393/// Returns a region for the polygon defined by the points array.
2394///
2395/// \param [in] points specifies an array of points
2396/// \param [in] np specifies the number of points in the polygon
2397/// \param [in] winding specifies the winding-rule is set (kTRUE) or not(kFALSE)
2398
2400 Bool_t /*winding*/)
2401{
2402 return 0;
2403}
2404
2405////////////////////////////////////////////////////////////////////////////////
2406/// Computes the union of two regions.
2407///
2408/// \param [in] rega, regb specify the two regions with which you want to perform
2409/// the computation
2410/// \param [in] result returns the result of the computation
2411
2413 Region_t /*result*/)
2414{
2415}
2416
2417////////////////////////////////////////////////////////////////////////////////
2418/// Computes the intersection of two regions.
2419///
2420/// \param [in] rega, regb specify the two regions with which you want to perform
2421/// the computation
2422/// \param [in] result returns the result of the computation
2423
2425 Region_t /*result*/)
2426{
2427}
2428
2429////////////////////////////////////////////////////////////////////////////////
2430/// Subtracts regb from rega and stores the results in result.
2431
2433 Region_t /*result*/)
2434{
2435}
2436
2437////////////////////////////////////////////////////////////////////////////////
2438/// Calculates the difference between the union and intersection of
2439/// two regions.
2440///
2441/// \param [in] rega, regb specify the two regions with which you want to perform
2442/// the computation
2443/// \param [in] result returns the result of the computation
2444
2446 Region_t /*result*/)
2447{
2448}
2449
2450////////////////////////////////////////////////////////////////////////////////
2451/// Returns kTRUE if the region reg is empty.
2452
2454{
2455 return kFALSE;
2456}
2457
2458////////////////////////////////////////////////////////////////////////////////
2459/// Returns kTRUE if the point [x, y] is contained in the region reg.
2460
2462{
2463 return kFALSE;
2464}
2465
2466////////////////////////////////////////////////////////////////////////////////
2467/// Returns kTRUE if the two regions have the same offset, size, and shape.
2468
2470{
2471 return kFALSE;
2472}
2473
2474////////////////////////////////////////////////////////////////////////////////
2475/// Returns smallest enclosing rectangle.
2476
2478{
2479}
2480
2481////////////////////////////////////////////////////////////////////////////////
2482/// Returns list of font names matching fontname regexp, like "-*-times-*".
2483/// The pattern string can contain any characters, but each asterisk (*)
2484/// is a wildcard for any number of characters, and each question mark (?)
2485/// is a wildcard for a single character. If the pattern string is not in
2486/// the Host Portable Character Encoding, the result is implementation
2487/// dependent. Use of uppercase or lowercase does not matter. Each returned
2488/// string is null-terminated.
2489///
2490/// \param [in] fontname specifies the null-terminated pattern string that can
2491/// contain wildcard characters
2492/// \param [in] max specifies the maximum number of names to be returned
2493/// \param [in] count returns the actual number of font names
2494
2495char **TVirtualX::ListFonts(const char * /*fontname*/, Int_t /*max*/, Int_t & count)
2496{
2497 count=0;
2498 return nullptr;
2499}
2500
2501////////////////////////////////////////////////////////////////////////////////
2502/// Frees the specified the array of strings "fontlist".
2503
2504void TVirtualX::FreeFontNames(char ** /*fontlist*/)
2505{
2506}
2507
2508////////////////////////////////////////////////////////////////////////////////
2509/// Allocates the memory needed for an drawable.
2510///
2511/// \param [in] width the width of the image, in pixels
2512/// \param [in] height the height of the image, in pixels
2513
2515{
2516 return 0;
2517}
2518
2519////////////////////////////////////////////////////////////////////////////////
2520/// Returns the width and height of the image id
2521
2523 UInt_t &/*height*/)
2524{
2525}
2526
2527////////////////////////////////////////////////////////////////////////////////
2528/// Overwrites the pixel in the image with the specified pixel value.
2529/// The image must contain the x and y coordinates.
2530///
2531/// \param [in] id specifies the image
2532/// \param [in] x, y coordinates
2533/// \param [in] pixel the new pixel value
2534
2535void TVirtualX::PutPixel(Drawable_t /*id*/, Int_t /*x*/, Int_t /*y*/,
2536 ULong_t /*pixel*/)
2537{
2538}
2539
2540////////////////////////////////////////////////////////////////////////////////
2541/// Combines an image with a rectangle of the specified drawable. The
2542/// section of the image defined by the x, y, width, and height arguments
2543/// is drawn on the specified part of the drawable.
2544///
2545/// \param [in] id the drawable
2546/// \param [in] gc the GC
2547/// \param [in] img the image you want combined with the rectangle
2548/// \param [in] dx the offset in X from the left edge of the image
2549/// \param [in] dy the offset in Y from the top edge of the image
2550/// \param [in] x, y coordinates, which are relative to the origin of the
2551/// drawable and are the coordinates of the subimage
2552/// \param [in] w, h the width and height of the subimage, which define the
2553/// rectangle dimensions
2554///
2555/// GC components in use: function, plane-mask, subwindow-mode,
2556/// clip-x-origin, clip-y-origin, and clip-mask.
2557/// GC mode-dependent components: foreground and background.
2558/// (see also the GCValues_t structure)
2559
2561 Drawable_t /*img*/, Int_t /*dx*/, Int_t /*dy*/,
2562 Int_t /*x*/, Int_t /*y*/, UInt_t /*w*/, UInt_t /*h*/)
2563{
2564}
2565
2566////////////////////////////////////////////////////////////////////////////////
2567/// Deallocates the memory associated with the image img
2568
2570{
2571}
2572
2573////////////////////////////////////////////////////////////////////////////////
2574/// pointer to the current internal window used in canvas graphics
2575
2577{
2578 return (Window_t)0;
2579}
2580
2581////////////////////////////////////////////////////////////////////////////////
2582/// Returns an array of pixels created from a part of drawable (defined by x, y, w, h)
2583/// in format:
2584///
2585/// ~~~ {.cpp}
2586/// b1, g1, r1, 0, b2, g2, r2, 0 ... bn, gn, rn, 0 ..
2587/// ~~~
2588///
2589/// Pixels are numbered from left to right and from top to bottom.
2590/// By default all pixels from the whole drawable are returned.
2591///
2592/// Note that return array is 32-bit aligned
2593
2594unsigned char *TVirtualX::GetColorBits(Drawable_t /*wid*/, Int_t /*x*/, Int_t /*y*/,
2595 UInt_t /*w*/, UInt_t /*h*/)
2596{
2597 return nullptr;
2598}
2599
2600////////////////////////////////////////////////////////////////////////////////
2601/// create pixmap from RGB data. RGB data is in format:
2602///
2603/// ~~~ {.cpp}
2604/// b1, g1, r1, 0, b2, g2, r2, 0 ... bn, gn, rn, 0 ..
2605/// ~~~
2606///
2607/// Pixels are numbered from left to right and from top to bottom.
2608/// Note that data must be 32-bit aligned
2609
2610Pixmap_t TVirtualX::CreatePixmapFromData(unsigned char * /*bits*/, UInt_t /*width*/,
2611 UInt_t /*height*/)
2612{
2613 return (Pixmap_t)0;
2614}
2615
2616////////////////////////////////////////////////////////////////////////////////
2617/// The Non-rectangular Window Shape Extension adds non-rectangular
2618/// windows to the System.
2619/// This allows for making shaped (partially transparent) windows
2620
2624
2625////////////////////////////////////////////////////////////////////////////////
2626/// Returns the width of the screen in millimeters.
2627
2629{
2630 return 400;
2631}
2632
2633////////////////////////////////////////////////////////////////////////////////
2634/// Deletes the specified property only if the property was defined on the
2635/// specified window and causes the X server to generate a PropertyNotify
2636/// event on the window unless the property does not exist.
2637
2641
2642////////////////////////////////////////////////////////////////////////////////
2643/// Returns the actual type of the property; the actual format of the property;
2644/// the number of 8-bit, 16-bit, or 32-bit items transferred; the number of
2645/// bytes remaining to be read in the property; and a pointer to the data
2646/// actually returned.
2647
2649 Atom_t*, Int_t*, ULong_t*, ULong_t*, unsigned char**)
2650{
2651 return 0;
2652}
2653
2654////////////////////////////////////////////////////////////////////////////////
2655/// Changes the specified dynamic parameters if the pointer is actively
2656/// grabbed by the client and if the specified time is no earlier than the
2657/// last-pointer-grab time and no later than the current X server time.
2658
2662
2663////////////////////////////////////////////////////////////////////////////////
2664/// Requests that the specified selection be converted to the specified
2665/// target type.
2666
2670
2671////////////////////////////////////////////////////////////////////////////////
2672/// Changes the owner and last-change time for the specified selection.
2673
2678
2679////////////////////////////////////////////////////////////////////////////////
2680/// Alters the property for the specified window and causes the X server
2681/// to generate a PropertyNotify event on that window.
2682
2686
2687////////////////////////////////////////////////////////////////////////////////
2688/// Add XdndAware property and the list of drag and drop types to the
2689/// Window win.
2690
2694
2695////////////////////////////////////////////////////////////////////////////////
2696/// Add the list of drag and drop types to the Window win.
2697
2701
2702////////////////////////////////////////////////////////////////////////////////
2703/// Recursively search in the children of Window for a Window which is at
2704/// location x, y and is DND aware, with a maximum depth of maxd.
2705
2707{
2708 return kNone;
2709}
2710
2711////////////////////////////////////////////////////////////////////////////////
2712/// Checks if the Window is DND aware, and knows any of the DND formats
2713/// passed in argument.
2714
2719
2720////////////////////////////////////////////////////////////////////////////////
2721/// Start a modal session for a dialog window.
2722
2726
2727////////////////////////////////////////////////////////////////////////////////
2728/// Returns 1 if window system server supports extension given by the
2729/// argument, returns 0 in case extension is not supported and returns -1
2730/// in case of error (like server not initialized).
2731
2733{
2734 return -1;
2735}
2736
2737////////////////////////////////////////////////////////////////////////////////
2738/// Map the XftFont with the Graphics Context using it.
2739
2743
2744
2745////////////////////////////////////////////////////////////////////////////////
2746/// Convert r,g,b to graphics system dependent pixel value.
2747/// The r,g,b triplet must be [0,1].
2748
2750{
2751 if (r < 0) r = 0;
2752 if (g < 0) g = 0;
2753 if (b < 0) b = 0;
2754 if (r > 1) r = 1;
2755 if (g > 1) g = 1;
2756 if (b > 1) b = 1;
2757
2758 ColorStruct_t color;
2759 color.fRed = UShort_t(r * 65535);
2760 color.fGreen = UShort_t(g * 65535);
2761 color.fBlue = UShort_t(b * 65535);
2762 color.fMask = kDoRed | kDoGreen | kDoBlue;
2763 gVirtualX->AllocColor(gVirtualX->GetColormap(), color);
2764 return color.fPixel;
2765}
2766
2767////////////////////////////////////////////////////////////////////////////////
2768/// Convert r,g,b to graphics system dependent pixel value.
2769/// The r,g,b triplet must be [0,255].
2770
2772{
2773 if (r < 0) r = 0;
2774 if (g < 0) g = 0;
2775 if (b < 0) b = 0;
2776 if (r > 255) r = 255;
2777 if (g > 255) g = 255;
2778 if (b > 255) b = 255;
2779
2780 ColorStruct_t color;
2781 color.fRed = UShort_t(r * 256); // 65536/256
2782 color.fGreen = UShort_t(g * 256);
2783 color.fBlue = UShort_t(b * 256);
2784 color.fMask = kDoRed | kDoGreen | kDoBlue;
2785 gVirtualX->AllocColor(gVirtualX->GetColormap(), color);
2786 return color.fPixel;
2787}
2788
2789////////////////////////////////////////////////////////////////////////////////
2790/// Convert machine dependent pixel value (obtained via RGB2Pixel or
2791/// via Number2Pixel() or via TColor::GetPixel()) to r,g,b triplet.
2792/// The r,g,b triplet will be [0,1].
2793
2795{
2796 ColorStruct_t color;
2797 color.fPixel = pixel;
2798 gVirtualX->QueryColor(gVirtualX->GetColormap(), color);
2799 r = (Float_t)color.fRed / 65535.0f;
2800 g = (Float_t)color.fGreen / 65535.0f;
2801 b = (Float_t)color.fBlue / 65535.0f;
2802}
2803
2804////////////////////////////////////////////////////////////////////////////////
2805/// Convert machine dependent pixel value (obtained via RGB2Pixel or
2806/// via Number2Pixel() or via TColor::GetPixel()) to r,g,b triplet.
2807/// The r,g,b triplet will be [0,255].
2808
2810{
2811 ColorStruct_t color;
2812 color.fPixel = pixel;
2813 gVirtualX->QueryColor(gVirtualX->GetColormap(), color);
2814 // color is between 0 and 65535 inclusive.
2815 // We need to move it to the 0 to 255 range (inclusive).
2816 // So we need to resample the 65536 values into 256 indices.
2817 // This would mean equal blocks of 256 high-res values per color index.
2818 r = color.fRed / 256;
2819 g = color.fGreen / 256;
2820 b = color.fBlue / 256;
2821}
2822
2823////////////////////////////////////////////////////////////////////////////////
2824/// Convert machine dependent pixel value (obtained via RGB2Pixel or
2825/// via Number2Pixel() or via TColor::GetPixel()) to a hexadecimal string.
2826/// This string can be directly passed to, for example,
2827/// TGClient::GetColorByName(). String will be reused so copy immediately
2828/// if needed.
2829
2831{
2832 Int_t r, g, b;
2833 Pixel2RGB(pixel, r, g, b);
2834 return TString::Format("#%02x%02x%02x", r, g, b);
2835}
2836
2837////////////////////////////////////////////////////////////////////////////////
2838/// Static method that given a color index number, returns the corresponding
2839/// pixel value. This pixel value can be used in the GUI classes. This call
2840/// does not work in batch mode since it needs to communicate with the
2841/// graphics system.
2842
2844{
2846 auto color = gROOT->GetColor(ci);
2847 if (!color) {
2848 ::Warning("TVirtualX::Number2Pixel", "color with index %d not defined", ci);
2849 return 0;
2850 }
2851
2852 if (!gVirtualX || gROOT->IsBatch())
2853 return 0;
2854
2855 if (gApplication) {
2857 gApplication->InitializeGraphics(gROOT->IsWebDisplay());
2858 }
2859
2860 return gVirtualX->GetPixel(color->GetNumber());
2861}
2862
2863////////////////////////////////////////////////////////////////////////////////
2864/// Static method returning color number for color specified by
2865/// system dependent pixel value. Pixel values can be obtained, e.g.,
2866/// from the GUI color picker.
2867///
2868/// The color retrieval is done using a threshold defined by TColor::SetColorThreshold.
2869
2871{
2872 Int_t r, g, b;
2873
2874 Pixel2RGB(pixel, r, g, b);
2875
2876 return TColor::GetColor(r, g, b);
2877}
2878
2879namespace {
2880 void updateTColorInstance(TColor *color)
2881 {
2882 if (gVirtualX && color)
2883 gVirtualX->SetRGB(color->GetNumber(), color->GetRed(), color->GetGreen(), color->GetBlue());
2884 }
2885}
2886
2887////////////////////////////////////////////////////////////////////////////////
2888/// Protected method to configure handler when color is modified and need to be updated
2889/// system dependent pixel value. Pixel values can be obtained, e.g.,
2890
2892{
2893 Int_t nplanes = 0;
2894 gVirtualX->GetPlanes(nplanes);
2895 TColor::ConfigureColorsHandler(nplanes, updateTColorInstance);
2896}
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 d(i)
Definition RSha256.hxx:102
#define b(i)
Definition RSha256.hxx:100
#define g(i)
Definition RSha256.hxx:105
#define a(i)
Definition RSha256.hxx:99
#define h(i)
Definition RSha256.hxx:106
static Roo_reg_AGKInteg1D instance
cudaEvent_t event
short Style_t
Style number (short)
Definition RtypesCore.h:97
unsigned short UShort_t
Unsigned Short integer 2 bytes (unsigned short)
Definition RtypesCore.h:55
short Color_t
Color number (short)
Definition RtypesCore.h:100
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char)
Definition RtypesCore.h:53
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
Definition RtypesCore.h:70
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
Definition RtypesCore.h:69
unsigned long ULongptr_t
Unsigned integer large enough to hold a pointer (platform-dependent)
Definition RtypesCore.h:91
short Width_t
Line width (short)
Definition RtypesCore.h:99
float Float_t
Float 4 bytes (float)
Definition RtypesCore.h:72
short Font_t
Font number (short)
Definition RtypesCore.h:96
short Short_t
Signed Short integer 2 bytes (short)
Definition RtypesCore.h:54
constexpr Bool_t kFALSE
Definition RtypesCore.h:109
constexpr Bool_t kTRUE
Definition RtypesCore.h:108
R__EXTERN TApplication * gApplication
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 void pixel
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:142
#define gROOT
Definition TROOT.h:417
Atom_t gMOTIF_WM_HINTS
Definition TVirtualX.cxx:39
TVirtualX * gGXBatch
Definition TVirtualX.cxx:43
Atom_t gROOT_MESSAGE
Definition TVirtualX.cxx:40
Atom_t gWM_DELETE_WINDOW
Definition TVirtualX.cxx:38
#define gVirtualX
Definition TVirtualX.h:391
R__EXTERN TVirtualX *(* gPtr2VirtualX)()
Definition TVirtualX.h:392
void InitializeGraphics(Bool_t only_web=kFALSE)
Initialize the graphics environment.
static void NeedGraphicsLibs()
Static method.
Fill Area Attributes class.
Definition TAttFill.h:21
virtual Color_t GetFillColor() const
Return the fill area color.
Definition TAttFill.h:32
virtual Style_t GetFillStyle() const
Return the fill area style.
Definition TAttFill.h:33
Line Attributes class.
Definition TAttLine.h:21
virtual Color_t GetLineColor() const
Return the line color.
Definition TAttLine.h:36
virtual Width_t GetLineWidth() const
Return the line width.
Definition TAttLine.h:38
virtual Style_t GetLineStyle() const
Return the line style.
Definition TAttLine.h:37
Marker Attributes class.
Definition TAttMarker.h:22
virtual Style_t GetMarkerStyle() const
Return the marker style.
Definition TAttMarker.h:35
virtual Color_t GetMarkerColor() const
Return the marker color.
Definition TAttMarker.h:34
virtual Size_t GetMarkerSize() const
Return the marker size.
Definition TAttMarker.h:36
Text Attributes class.
Definition TAttText.h:21
virtual Float_t GetTextSize() const
Return the text size.
Definition TAttText.h:39
virtual Short_t GetTextAlign() const
Return the text alignment.
Definition TAttText.h:35
virtual Font_t GetTextFont() const
Return the text font.
Definition TAttText.h:38
virtual Color_t GetTextColor() const
Return the text color.
Definition TAttText.h:37
virtual void SetTextAngle(Float_t tangle=0)
Set the text angle.
Definition TAttText.h:49
virtual Float_t GetTextAngle() const
Return the text angle.
Definition TAttText.h:36
The color creation and management class.
Definition TColor.h:23
Float_t GetRed() const
Definition TColor.h:65
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
Definition TColor.cxx:1941
static void InitializeColors()
Initialize colors used by the TCanvas based graphics (via TColor objects).
Definition TColor.cxx:1186
static void ConfigureColorsHandler(Int_t depth, void(*colorfuncptr)(TColor *))
This method defines number of color planes in the current graphic display.
Definition TColor.cxx:2019
Int_t GetNumber() const
Definition TColor.h:63
Float_t GetBlue() const
Definition TColor.h:67
Float_t GetGreen() const
Definition TColor.h:66
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
Definition TObject.cxx:1082
SCoord_t fY
Definition TPoint.h:36
SCoord_t fX
Definition TPoint.h:35
Basic string class.
Definition TString.h:137
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Definition TString.cxx:2460
Dynamic handle to work with freetype 2 library.
Definition TTFhandle.h:22
Semi-Abstract base class defining a generic interface to the underlying, low level,...
Definition TVirtualX.h:47
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:157
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.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
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.
static Int_t Pixel2Number(ULong_t pixel)
Static method returning color number for color specified by system dependent pixel value.
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.
static void Pixel2RGB(ULong_t pixel, Int_t &r, Int_t &g, Int_t &b)
Convert machine dependent pixel value (obtained via RGB2Pixel or via Number2Pixel() or via TColor::Ge...
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 Int_t WriteGIFW(WinContext_t wctxt, const char *name)
Save specified window as GIF image.
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:71
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:94
static TString PixelAsHexString(ULong_t pixel)
Convert machine dependent pixel value (obtained via RGB2Pixel or via Number2Pixel() or via TColor::Ge...
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:61
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).
virtual Bool_t GetFontAscentDescent(Font_t font, Double_t size, UInt_t &a, UInt_t &d, const char *mess)
Returns ascent/descent for specified character string "mess" with font and size.
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 DrawTTFglyphsW(WinContext_t wctxt, Int_t x, Int_t y, TTFhandle &handle, ETextMode mode)
Draw TTFglyphs on specified window Will be invoked only if HasTTFonts method returns true.
virtual Bool_t GetTextExtentA(Font_t font, Double_t size, UInt_t &w, UInt_t &h, const char *mess)
Returns the size of the specified character string "mess" for font and size.
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.
static ULong_t RGB2Pixel(Int_t r, Int_t g, Int_t b)
Convert r,g,b to graphics system dependent pixel value.
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".
static void ConfigureColorsHandler()
Protected method to configure handler when color is modified and need to be updated system dependent ...
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