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