Logo ROOT  
Reference Guide
TGWin32VirtualXProxy.cxx
Go to the documentation of this file.
1 // @(#)root/win32gdk:$Id$
2 // Author: Valeriy Onuchin 08/08/2003
3 
4 
5 /*************************************************************************
6  * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. *
7  * All rights reserved. *
8  * *
9  * For the licensing terms see $ROOTSYS/LICENSE. *
10  * For the list of contributors see $ROOTSYS/README/CREDITS. *
11  *************************************************************************/
12 
13 
14 //////////////////////////////////////////////////////////////////////////
15 // //
16 // TGWin32Proxy //
17 // //
18 // This class is the proxy interface to the Win32 graphics system. //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #include "TGWin32ProxyDefs.h"
23 #include "TGWin32VirtualXProxy.h"
24 #include "TGWin32.h"
25 #include "TList.h"
26 
28 
29 ////////////////////////////////////////////////////////////////////////////////
30 ////////////////////////////////////////////////////////////////////////////////
31 
33 {
34  return fgRealObject;
35 }
36 
37 RETURN_PROXY_OBJECT(VirtualX)
38 VOID_METHOD_ARG0(VirtualX,SetFillAttributes,1)
39 VOID_METHOD_ARG0(VirtualX,SetMarkerAttributes,1)
40 VOID_METHOD_ARG0(VirtualX,SetLineAttributes,1)
41 VOID_METHOD_ARG0(VirtualX,SetTextAttributes,1)
42 VOID_METHOD_ARG1(VirtualX,ResetAttMarker,Option_t*,toption,1)
43 VOID_METHOD_ARG1(VirtualX,ResetAttFill,Option_t*,option,1)
44 VOID_METHOD_ARG1(VirtualX,ResetAttLine,Option_t*,option,1)
45 VOID_METHOD_ARG1(VirtualX,ResetAttText,Option_t*,option,1)
47 VOID_METHOD_ARG1(VirtualX,SetTextAngle,Float_t,tangle,1)
48 VOID_METHOD_ARG1(VirtualX,SetTextMagnitude,Float_t,mgn,1)
49 VOID_METHOD_ARG1(VirtualX,SetTextSizePixels,Int_t,npixels,1)
50 VOID_METHOD_ARG1(VirtualX,SetFillColor,Color_t,cindex,1)
51 VOID_METHOD_ARG1(VirtualX,SetMarkerSize,Float_t,markersize,1)
52 VOID_METHOD_ARG1(VirtualX,SetMarkerStyle,Style_t,markerstyle,1)
53 VOID_METHOD_ARG1(VirtualX,SetMarkerColor,Color_t,cindex,1)
54 VOID_METHOD_ARG1(VirtualX,SetLineColor,Color_t,cindex,1)
55 VOID_METHOD_ARG1(VirtualX,SetLineStyle,Style_t,linestyle,1)
57 VOID_METHOD_ARG1(VirtualX,SetTextAlign,Short_t,talign,1)
58 VOID_METHOD_ARG1(VirtualX,SetTextSize,Float_t,textsize,1)
59 VOID_METHOD_ARG1(VirtualX,SetTextColor,Color_t,cindex,1)
60 VOID_METHOD_ARG1(VirtualX,SetTextFont,Font_t,fontnumber,1)
61 VOID_METHOD_ARG1(VirtualX,SelectWindow,Int_t,wid,0)
65 VOID_METHOD_ARG1(VirtualX,UpdateWindow,Int_t,mode,1)
66 VOID_METHOD_ARG1(VirtualX,SetOpacity,Int_t,percent,1)
67 VOID_METHOD_ARG5(VirtualX,DrawBox,Int_t,x1,Int_t,y1,Int_t,x2,Int_t,y2,TVirtualX::EBoxMode,mode,1)
68 VOID_METHOD_ARG6(VirtualX,DrawText,Int_t,x,Int_t,y,Float_t,angle,Float_t,mgn,const char*,text,TVirtualX::ETextMode,mode,1)
69 VOID_METHOD_ARG1(VirtualX,Update,Int_t,mode,1)
71 VOID_METHOD_ARG2(VirtualX,GetCharacterUp,Float_t&,chupx,Float_t&,chupy,1)
72 RETURN_METHOD_ARG0(VirtualX,Float_t,GetTextMagnitude)
73 RETURN_METHOD_ARG0_CONST(VirtualX,Color_t,GetFillColor)
74 RETURN_METHOD_ARG0_CONST(VirtualX,Style_t,GetFillStyle)
75 RETURN_METHOD_ARG0_CONST(VirtualX,Bool_t,IsTransparent)
76 RETURN_METHOD_ARG0_CONST(VirtualX,Color_t,GetLineColor)
77 RETURN_METHOD_ARG0_CONST(VirtualX,Style_t,GetLineStyle)
78 RETURN_METHOD_ARG0_CONST(VirtualX,Width_t,GetLineWidth)
79 RETURN_METHOD_ARG0_CONST(VirtualX,Color_t,GetMarkerColor)
80 RETURN_METHOD_ARG0_CONST(VirtualX,Style_t,GetMarkerStyle)
81 RETURN_METHOD_ARG0_CONST(VirtualX,Size_t,GetMarkerSize)
82 RETURN_METHOD_ARG0_CONST(VirtualX,Short_t,GetTextAlign)
83 RETURN_METHOD_ARG0_CONST(VirtualX,Float_t,GetTextAngle)
84 RETURN_METHOD_ARG0_CONST(VirtualX,Color_t,GetTextColor)
85 RETURN_METHOD_ARG0_CONST(VirtualX,Font_t,GetTextFont)
86 RETURN_METHOD_ARG0_CONST(VirtualX,Float_t,GetTextSize)
87 VOID_METHOD_ARG1(VirtualX,Bell,Int_t,percent,1)
88 VOID_METHOD_ARG0(VirtualX,ClosePixmap,1)
89 VOID_METHOD_ARG0(VirtualX,CloseWindow,1)
90 VOID_METHOD_ARG0(VirtualX,SetDoubleBufferOFF,1)
91 VOID_METHOD_ARG0(VirtualX,SetDoubleBufferON,1)
92 VOID_METHOD_ARG1(VirtualX,SetClipOFF,Int_t,wid,1)
93 VOID_METHOD_ARG1(VirtualX,MapWindow,Window_t,id,1)
94 VOID_METHOD_ARG1(VirtualX,MapSubwindows,Window_t,id,1)
95 VOID_METHOD_ARG1(VirtualX,MapRaised,Window_t,id,1)
96 VOID_METHOD_ARG1(VirtualX,UnmapWindow,Window_t,id,1)
97 VOID_METHOD_ARG1(VirtualX,DestroyWindow,Window_t,id,1)
98 VOID_METHOD_ARG1(VirtualX,DestroySubwindows,Window_t,id,1)
99 VOID_METHOD_ARG1(VirtualX,RaiseWindow,Window_t,id,1)
100 VOID_METHOD_ARG1(VirtualX,LowerWindow,Window_t,id,1)
101 VOID_METHOD_ARG1(VirtualX,DeleteGC,GContext_t,gc,1)
102 VOID_METHOD_ARG1(VirtualX,DeleteFont,FontStruct_t,fs,1)
103 VOID_METHOD_ARG1(VirtualX,DeletePixmap,Pixmap_t,pmap,1)
104 VOID_METHOD_ARG1(VirtualX,DeletePictureData,void*,data,1)
105 VOID_METHOD_ARG1(VirtualX,WMDeleteNotify,Window_t,id,1)
106 VOID_METHOD_ARG1(VirtualX,SetKeyAutoRepeat,Bool_t,on,1)
107 VOID_METHOD_ARG1(VirtualX,ClearWindow,Window_t,id,1)
108 VOID_METHOD_ARG1(VirtualX,SetInputFocus,Window_t,id,1)
109 VOID_METHOD_ARG1(VirtualX,FreeFontStruct,FontStruct_t,fs,1)
110 VOID_METHOD_ARG1(VirtualX,DestroyRegion,Region_t,reg,1)
111 VOID_METHOD_ARG1(VirtualX,FreeFontNames,char**,fontlist,1)
112 VOID_METHOD_ARG1(VirtualX,SetPrimarySelectionOwner,Window_t,id,1)
113 VOID_METHOD_ARG1(VirtualX,DeleteImage,Drawable_t,img,1)
114 VOID_METHOD_ARG1(VirtualX,IconifyWindow,Window_t,id,1)
115 VOID_METHOD_ARG3(VirtualX,Warp,Int_t,ix,Int_t,iy,Window_t,id,1)
116 VOID_METHOD_ARG2(VirtualX,SetCharacterUp,Float_t,chupx,Float_t,chupy,1)
117 VOID_METHOD_ARG2(VirtualX,ChangeGC,GContext_t,gc,GCValues_t*,gval,1)
118 VOID_METHOD_ARG2(VirtualX,SetDoubleBuffer,Int_t,wid,Int_t,mode,1)
119 VOID_METHOD_ARG2(VirtualX,SetLineType,Int_t,n,Int_t*,dash,1)
120 VOID_METHOD_ARG2(VirtualX,SetCursor,Window_t,id,Cursor_t,curid,1)
121 VOID_METHOD_ARG2(VirtualX,SetWindowBackground,Window_t,id,ULong_t,color,1)
122 VOID_METHOD_ARG2(VirtualX,SetWindowBackgroundPixmap,Window_t,id,Pixmap_t,pxm,1)
123 VOID_METHOD_ARG2(VirtualX,ChangeWindowAttributes,Window_t,id,SetWindowAttributes_t*,attr,1)
124 VOID_METHOD_ARG2(VirtualX,FreeColor,Colormap_t,cmap,ULong_t,pixel,1)
125 VOID_METHOD_ARG2(VirtualX,SetWindowName,Window_t,id,char*,name,1)
126 VOID_METHOD_ARG2(VirtualX,SetWMTransientHint,Window_t,id,Window_t,main_id,1)
127 VOID_METHOD_ARG2(VirtualX,SetIconName,Window_t,id,char*,name,1)
128 VOID_METHOD_ARG2(VirtualX,SetIconPixmap,Window_t,id,Pixmap_t,pix,1)
129 VOID_METHOD_ARG2(VirtualX,SelectInput,Window_t,id,UInt_t,evmask,1)
130 VOID_METHOD_ARG2(VirtualX,SetForeground,GContext_t,gc,ULong_t,foreground,1)
131 VOID_METHOD_ARG2(VirtualX,SetWMState,Window_t,id,EInitialState,state,1)
132 VOID_METHOD_ARG3(VirtualX,CopyPixmap,Int_t,wid,Int_t,xpos,Int_t,ypos,0)
133 VOID_METHOD_ARG3(VirtualX,SetClassHints,Window_t,id,char*,className,char*,resourceName,1)
134 VOID_METHOD_ARG3(VirtualX,SetWMPosition,Window_t,id,Int_t,x,Int_t,y,1)
135 VOID_METHOD_ARG3(VirtualX,SetWMSize,Window_t,id,UInt_t,w,UInt_t,h,1)
136 VOID_METHOD_ARG3(VirtualX,ConvertPrimarySelection,Window_t,id,Atom_t,clipboard,Time_t,when,1)
137 VOID_METHOD_ARG3(VirtualX,ReadGIF,Int_t,x0,Int_t,y0,const char*,file,1)
138 VOID_METHOD_ARG3(VirtualX,RescaleWindow,Int_t,wid,UInt_t,w,UInt_t,h,1)
139 VOID_METHOD_ARG3(VirtualX,MoveWindow,Window_t,id,Int_t,x,Int_t,y,1)
140 VOID_METHOD_ARG3(VirtualX,ResizeWindow,Window_t,id,UInt_t,w,UInt_t,h,1)
141 VOID_METHOD_ARG4(VirtualX,DrawSegments,Drawable_t,id,GContext_t,gc,Segment_t*,seg,Int_t,nseg,1)
142 VOID_METHOD_ARG4(VirtualX,SetMWMHints,Window_t,id,UInt_t,value,UInt_t,funcs,UInt_t,input,1)
143 VOID_METHOD_ARG4(VirtualX,SetDashes,GContext_t,gc,Int_t,offset,const char*,dash_list,Int_t,n,1)
144 VOID_METHOD_ARG4(VirtualX,WritePixmap,Int_t,wid,UInt_t,w,UInt_t,h,char*,pxname,1)
145 VOID_METHOD_ARG4(VirtualX,SetRGB,Int_t,cindex,Float_t,r,Float_t,g,Float_t,b,1)
146 VOID_METHOD_ARG4(VirtualX,PutPixel,Drawable_t,id,Int_t,x,Int_t,y,ULong_t,pixel,1)
147 VOID_METHOD_ARG4(VirtualX,GrabKey,Window_t,id,Int_t,keycode,UInt_t,modifier,Bool_t,grab,1)
148 VOID_METHOD_ARG4(VirtualX,FillPolygon,Window_t,id,GContext_t,gc,Point_t*,points,Int_t,npnt,1)
149 VOID_METHOD_ARG4(VirtualX,ReparentWindow,Window_t,id,Window_t,pid,Int_t,x,Int_t,y,1)
150 VOID_METHOD_ARG5(VirtualX,MoveResizeWindow,Window_t,id,Int_t,x,Int_t,y,UInt_t,w,UInt_t,h,1)
151 VOID_METHOD_ARG5(VirtualX,ChangeProperty,Window_t,id,Atom_t,property,Atom_t,type,UChar_t*,data,Int_t,len,1)
152 VOID_METHOD_ARG5(VirtualX,SetClipRegion,Int_t,wid,Int_t,x,Int_t,y,UInt_t,w,UInt_t,h,1)
153 VOID_METHOD_ARG5(VirtualX,ClearArea,Window_t,id,Int_t,x,Int_t,y,UInt_t,w,UInt_t,h,1)
154 VOID_METHOD_ARG5(VirtualX,SetClipRectangles,GContext_t,gc,Int_t,x,Int_t,y,Rectangle_t*,recs,Int_t,n,1)
155 VOID_METHOD_ARG6(VirtualX,GrabPointer,Window_t,id,UInt_t,evmask,Window_t,confine,Cursor_t,cursor,Bool_t,grab,Bool_t,owner_events,1)
157 VOID_METHOD_ARG6(VirtualX,DrawString,Drawable_t,id,GContext_t,gc,Int_t,x,Int_t,y,const char*,s,Int_t,len,1)
158 VOID_METHOD_ARG6(VirtualX,FillRectangle,Drawable_t,id,GContext_t,gc,Int_t,x,Int_t,y,UInt_t,w,UInt_t,h,1)
159 VOID_METHOD_ARG6(VirtualX,DrawRectangle,Drawable_t,id,GContext_t,gc,Int_t,x,Int_t,y,UInt_t,w,UInt_t,h,1)
160 VOID_METHOD_ARG7(VirtualX,GrabButton,Window_t,id,EMouseButton,button,UInt_t,modifier,UInt_t,evmask,Window_t,confine,Cursor_t,cursor,Bool_t,grab,1)
161 VOID_METHOD_ARG7(VirtualX,DrawCellArray,Int_t,x1,Int_t,y1,Int_t,x2,Int_t,y2,Int_t,nx,Int_t,ny,Int_t*,ic,1)
162 VOID_METHOD_ARG7(VirtualX,SetWMSizeHints,Window_t,id,UInt_t,wmin,UInt_t,hmin,UInt_t,wmax,UInt_t,hmax,UInt_t,winc,UInt_t,hinc,1)
163 VOID_METHOD_ARG9(VirtualX,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,1)
164 VOID_METHOD_ARG9(VirtualX,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,1)
165 VOID_METHOD_ARG2(VirtualX,QueryColor,Colormap_t,cmap,ColorStruct_t&,color,1)
167 VOID_METHOD_ARG5(VirtualX,GetGeometry,Int_t,wid,Int_t&,x,Int_t&,y,UInt_t&,w,UInt_t&,h,1)
168 VOID_METHOD_ARG4(VirtualX,GetRGB,Int_t,index,Float_t&,r,Float_t&,g,Float_t&,b,1)
169 VOID_METHOD_ARG3(VirtualX,GetFontProperties,FontStruct_t,font,Int_t&,max_ascent,Int_t&,max_descent,1)
170 VOID_METHOD_ARG5(VirtualX,GetWindowSize,Drawable_t,id,Int_t&,x,Int_t&,y,UInt_t&,w,UInt_t&,h,1)
171 VOID_METHOD_ARG3(VirtualX,GetImageSize,Drawable_t,id,UInt_t&,width,UInt_t&,height,1)
172 VOID_METHOD_ARG3(VirtualX,UnionRectWithRegion,Rectangle_t*,rect,Region_t,src,Region_t,dest,1)
173 VOID_METHOD_ARG3(VirtualX,UnionRegion,Region_t,rega,Region_t,regb,Region_t,result,1)
174 VOID_METHOD_ARG3(VirtualX,IntersectRegion,Region_t,rega,Region_t,regb,Region_t,result,1)
175 VOID_METHOD_ARG3(VirtualX,SubtractRegion,Region_t,rega,Region_t,regb,Region_t,result,1)
176 VOID_METHOD_ARG3(VirtualX,XorRegion,Region_t,rega,Region_t,regb,Region_t,result,1)
177 VOID_METHOD_ARG2(VirtualX,GetRegionBox,Region_t,reg,Rectangle_t*,rect,1)
178 VOID_METHOD_ARG3(VirtualX,CopyGC,GContext_t,org,GContext_t,dest,Mask_t,mask,1)
179 VOID_METHOD_ARG3(VirtualX,GetTextExtent,UInt_t&,w,UInt_t&,h,char*,mess,1)
180 VOID_METHOD_ARG7(VirtualX,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,1)
181 VOID_METHOD_ARG8(VirtualX,QueryPointer,Window_t,id,Window_t&,rootw,Window_t&,childw,Int_t&,root_x,Int_t&,root_y,Int_t&,win_x,Int_t&,win_y,UInt_t&,mask,1)
182 VOID_METHOD_ARG0(VirtualX,ClearWindow,1)
183 VOID_METHOD_ARG1(VirtualX,SetDrawMode,TVirtualX::EDrawMode,mode,1)
184 VOID_METHOD_ARG3(VirtualX,MoveWindow,Int_t,wid,Int_t,x,Int_t,y,1)
185 VOID_METHOD_ARG1(VirtualX,ResizeWindow,Int_t,winid,1)
186 VOID_METHOD_ARG2(VirtualX,SetCursor,Int_t,win,ECursor,cursor,1)
187 VOID_METHOD_ARG2(VirtualX,QueryPointer,Int_t&,ix,Int_t&,iy,1)
188 VOID_METHOD_ARG5(VirtualX,GetPasteBuffer,Window_t,id,Atom_t,atom,TString&,text,Int_t&,nchar,Bool_t,del,1)
189 VOID_METHOD_ARG1(VirtualX,GetPlanes,Int_t&,planes,1)
190 VOID_METHOD_ARG2(VirtualX,GetGCValues,GContext_t,gc,GCValues_t&,gval,1)
191 RETURN_METHOD_ARG0(VirtualX,Window_t,GetInputFocus)
192 RETURN_METHOD_ARG0(VirtualX,Window_t,GetPrimarySelectionOwner)
193 RETURN_METHOD_ARG0(VirtualX,Region_t,CreateRegion)
194 RETURN_METHOD_ARG0_CONST(VirtualX,Display_t,GetDisplay)
195 RETURN_METHOD_ARG0_CONST(VirtualX,Visual_t,GetVisual)
196 RETURN_METHOD_ARG0_CONST(VirtualX,Int_t,GetScreen)
197 RETURN_METHOD_ARG0_CONST(VirtualX,Int_t,GetDepth)
198 RETURN_METHOD_ARG0_CONST(VirtualX,Colormap_t,GetColormap)
199 RETURN_METHOD_ARG0_CONST(VirtualX,Bool_t,HasTTFonts)
200 RETURN_METHOD_ARG0_CONST(VirtualX,Handle_t,GetNativeEvent)
201 RETURN_METHOD_ARG0_CONST(VirtualX,Window_t,GetDefaultRootWindow)
202 RETURN_METHOD_ARG1(VirtualX,const char*,DisplayName,const char*,dpyName)
203 RETURN_METHOD_ARG1(VirtualX,Bool_t,Init,void*,display)
204 RETURN_METHOD_ARG1(VirtualX,Int_t,GetDoubleBuffer,Int_t,wid)
205 RETURN_METHOD_ARG1(VirtualX,Window_t,GetWindowID,Int_t,wid)
206 RETURN_METHOD_ARG1(VirtualX,Int_t,InitWindow,ULong_t,window)
207 RETURN_METHOD_ARG1(VirtualX,Int_t,WriteGIF,char*,name)
208 RETURN_METHOD_ARG1(VirtualX,FontStruct_t,LoadQueryFont,const char*,font_name)
209 RETURN_METHOD_ARG1(VirtualX,FontH_t,GetFontHandle,FontStruct_t,fs)
211 RETURN_METHOD_ARG1(VirtualX,FontStruct_t,GetFontStruct,FontH_t,fh)
212 RETURN_METHOD_ARG1(VirtualX,Int_t,KeysymToKeycode,UInt_t,keysym)
213 RETURN_METHOD_ARG1(VirtualX,Int_t,OpenDisplay,const char*,dpyName)
214 RETURN_METHOD_ARG1(VirtualX,Bool_t,EmptyRegion,Region_t,reg)
215 RETURN_METHOD_ARG2(VirtualX,Int_t,OpenPixmap,UInt_t,w,UInt_t,h)
216 RETURN_METHOD_ARG2(VirtualX,Atom_t,InternAtom,const char*,atom_name,Bool_t,only_if_exist)
217 RETURN_METHOD_ARG2(VirtualX,GContext_t,CreateGC,Drawable_t,id,GCValues_t*,gval)
218 RETURN_METHOD_ARG2(VirtualX,Bool_t,EqualRegion,Region_t,rega,Region_t,regb)
219 RETURN_METHOD_ARG2(VirtualX,Drawable_t,CreateImage,UInt_t,width,UInt_t,height)
220 RETURN_METHOD_ARG3(VirtualX,Int_t,ResizePixmap,Int_t,wid,UInt_t,w,UInt_t,h)
221 RETURN_METHOD_ARG3(VirtualX,Int_t,TextWidth,FontStruct_t,font,const char*,s,Int_t,len)
222 RETURN_METHOD_ARG3(VirtualX,Region_t,PolygonRegion,Point_t*,points,Int_t,np,Bool_t,winding)
223 RETURN_METHOD_ARG3(VirtualX,Bool_t,PointInRegion,Int_t,x,Int_t,y,Region_t,reg)
224 RETURN_METHOD_ARG3(VirtualX,Int_t,RequestString,Int_t,x,Int_t,y,char*,text)
225 RETURN_METHOD_ARG4(VirtualX,Pixmap_t,CreateBitmap,Drawable_t,id,const char*,bitmap,UInt_t,width,UInt_t,height)
226 RETURN_METHOD_ARG7(VirtualX,Pixmap_t,CreatePixmap,Drawable_t,id,const char*,bitmap,UInt_t,width,UInt_t,height,ULong_t,forecolor,ULong_t,backcolor,Int_t,depth)
227 RETURN_METHOD_ARG11(VirtualX,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)
228 RETURN_METHOD_ARG3(VirtualX,char**,ListFonts,const char*,fontname,Int_t,mx,Int_t&,count)
229 RETURN_METHOD_ARG4(VirtualX,Int_t,RequestLocator,Int_t,mode,Int_t,ctyp,Int_t&,x,Int_t&,y)
230 RETURN_METHOD_ARG3(VirtualX,Bool_t,ParseColor,Colormap_t,cmap,const char*,cname,ColorStruct_t&,color)
231 RETURN_METHOD_ARG2(VirtualX,Bool_t,AllocColor,Colormap_t,cmap,ColorStruct_t&,color)
232 RETURN_METHOD_ARG5(VirtualX,Bool_t,CreatePictureFromFile,Drawable_t,id,const char*,filename,Pixmap_t&,pict,Pixmap_t&,pict_mask,PictureAttributes_t&,attr)
233 RETURN_METHOD_ARG5(VirtualX,Bool_t,CreatePictureFromData,Drawable_t,id,char**,data,Pixmap_t&,pict,Pixmap_t&,pict_mask,PictureAttributes_t&,attr)
234 RETURN_METHOD_ARG2(VirtualX,Bool_t,ReadPictureDataFromFile,const char*,filename,char***,ret_data)
235 RETURN_METHOD_ARG2(VirtualX,Int_t,SetTextFont,char*,fontname,TVirtualX::ETextSetMode,mode)
236 RETURN_METHOD_ARG3(VirtualX,Pixmap_t,CreatePixmap,Drawable_t,wid,UInt_t,w,UInt_t,h)
238 RETURN_METHOD_ARG5(VirtualX,unsigned char*,GetColorBits,Drawable_t,wid,Int_t,x,Int_t,y,UInt_t,width,UInt_t,height)
239 RETURN_METHOD_ARG3(VirtualX,Pixmap_t,CreatePixmapFromData,unsigned char*,bits,UInt_t,width,UInt_t,height)
240 RETURN_METHOD_ARG3(VirtualX,Int_t,AddWindow,ULong_t,qwid,UInt_t,w,UInt_t,h)
241 VOID_METHOD_ARG1(VirtualX,RemoveWindow,ULong_t,qwid,1)
242 VOID_METHOD_ARG4(VirtualX,ShapeCombineMask,Window_t,id,Int_t,x,Int_t,y,Pixmap_t,mask,1)
243 
244 VOID_METHOD_ARG2(VirtualX,DeleteProperty,Window_t,win,Atom_t&,prop,1)
245 RETURN_METHOD_ARG11(VirtualX,Int_t,GetProperty,Window_t,win,Atom_t,prop,Long_t,offset,Long_t,length,Bool_t,del,Atom_t,req_type,Atom_t*,act_type,Int_t*,act_format,ULong_t*,nitems,ULong_t*,bytes,unsigned char**,prop_list)
246 VOID_METHOD_ARG3(VirtualX,ChangeActivePointerGrab,Window_t,win,UInt_t,mask,Cursor_t,cur,1)
247 VOID_METHOD_ARG5(VirtualX,ConvertSelection,Window_t,win,Atom_t&,sel,Atom_t&,target,Atom_t&,prop,Time_t&,stamp,1)
248 RETURN_METHOD_ARG2(VirtualX,Bool_t,SetSelectionOwner,Window_t,win,Atom_t&,prop)
249 VOID_METHOD_ARG6(VirtualX,ChangeProperties,Window_t,id,Atom_t,property,Atom_t,type,Int_t,format,UChar_t*,data,Int_t,len,1)
250 VOID_METHOD_ARG2(VirtualX,SetDNDAware,Window_t,id,Atom_t*,typelist,1)
251 VOID_METHOD_ARG3(VirtualX,SetTypeList,Window_t,win,Atom_t,prop,Atom_t*,typelist,1);
252 RETURN_METHOD_ARG6(VirtualX,Window_t,FindRWindow,Window_t,win,Window_t,dragwin,Window_t,input,int,x,int,y,int,maxd);
253 RETURN_METHOD_ARG2(VirtualX,Bool_t,IsDNDAware,Window_t,win,Atom_t*,typelist);
254 
255 //VOID_METHOD_ARG1(VirtualX,CreateOpenGLContext,Int_t,wid,1)
256 //VOID_METHOD_ARG1(VirtualX,DeleteOpenGLContext,Int_t,wid,1)
257 //VOID_METHOD_ARG1(VirtualX,RemoveWindow,ULong_t,qwid,1)
258 //RETURN_METHOD_ARG1(VirtualX,ExecCommand,UInt_t,TGWin32Command*,code)
259 //RETURN_METHOD_ARG3(VirtualX,Int_t,AddWindow,ULong_t,qwid,UInt_t,w,UInt_t,h)
260 
261 //////////////////////// some non-standard methods /////////////////////////////
262 ////////////////////////////////////////////////////////////////////////////////
263 ///
264 
265 void TGWin32VirtualXProxy::CloseDisplay()
266 {
267  if (gDebug) printf("CloseDisplay\n");
268  fgRealObject->CloseDisplay();
269 }
270 
271 ////////////////////////////////////////////////////////////////////////////////
272 /// might be thread unsafe (?)
273 
275 {
276  return (Window_t)gdk_window_get_parent((GdkWindow *) id);
277 }
278 
279 ////////////////////////////////////////////////////////////////////////////////
280 /// Convert the keycode from the event structure to a key symbol (according
281 /// to the modifiers specified in the event structure and the current
282 /// keyboard mapping). In buf a null terminated ASCII string is returned
283 /// representing the string that is currently mapped to the key code.
284 
285 void TGWin32VirtualXProxy::LookupString(Event_t * event, char *buf, Int_t buflen,
286  UInt_t & keysym)
287 {
289  fgRealObject->LookupString(event,buf,buflen,keysym);
291 }
292 
293 ////////////////////////////////////////////////////////////////////////////////
294 /// Return number of pending events.
295 
297 {
298  return fgRealObject->EventsPending();
299 }
300 
301 ////////////////////////////////////////////////////////////////////////////////
302 /// Process next event in the queue - if any.
303 
305 {
306  fgRealObject->NextEvent(event);
307 }
308 
309 ////////////////////////////////////////////////////////////////////////////////
310 /// Check if there is for window "id" an event of type "type".
311 
313 {
314  return fgRealObject->CheckEvent(id,type,ev);
315 }
316 
317 ////////////////////////////////////////////////////////////////////////////////
318 /// Send event ev to window id.
319 
321 {
322  fgRealObject->SendEvent(id,ev);
323 }
324 
325 ////////////////////////////////////////////////////////////////////////////////
326 /// Return kTRUE if we are inside cmd/server thread.
327 
329 {
330  return fgRealObject->IsCmdThread();
331 }
332 
333 ////////////////////////////////////////////////////////////////////////////////
334 /// Return a pointer to the current window.
335 
337 {
338  return fgRealObject->GetCurrentWindow();
339 }
340 
SetMarkerStyle
m SetMarkerStyle(20)
n
const Int_t n
Definition: legend1.C:16
Region_t
Handle_t Region_t
Region handle.
Definition: GuiTypes.h:32
RETURN_METHOD_ARG7
#define RETURN_METHOD_ARG7(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7)
Definition: TGWin32ProxyDefs.h:749
Pixmap_t
Handle_t Pixmap_t
Pixmap handle.
Definition: GuiTypes.h:30
Style_t
short Style_t
Definition: RtypesCore.h:89
RETURN_METHOD_ARG2
RETURN_METHOD_ARG2(VirtualX, Bool_t, IsDNDAware, Window_t, win, Atom_t *, typelist)
SetMarkerColor
m SetMarkerColor(kBlue)
Display_t
Handle_t Display_t
Display handle.
Definition: GuiTypes.h:27
Option_t
const char Option_t
Definition: RtypesCore.h:66
TGWin32VirtualXProxy::EventsPending
Int_t EventsPending()
Return number of pending events.
Definition: TGWin32VirtualXProxy.cxx:296
dest
#define dest(otri, vertexptr)
Definition: triangle.c:1040
VOID_METHOD_ARG4
#define VOID_METHOD_ARG4(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, sync)
Definition: TGWin32ProxyDefs.h:262
ROOT::MacOSX::X11::TranslateCoordinates
NSPoint TranslateCoordinates(NSView< X11Window > *fromView, NSView< X11Window > *toView, NSPoint sourcePoint)
Definition: QuartzWindow.mm:271
TGWin32.h
ECursor
ECursor
Definition: GuiTypes.h:372
VOID_METHOD_ARG9
#define VOID_METHOD_ARG9(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7, type8, par8, type9, par9, sync)
Definition: TGWin32ProxyDefs.h:417
ColorStruct_t
Definition: GuiTypes.h:310
Rectangle_t
Rectangle structure (maps to the X11 XRectangle structure)
Definition: GuiTypes.h:361
FontH_t
Handle_t FontH_t
Font handle (as opposed to Font_t which is an index)
Definition: GuiTypes.h:35
TGWin32VirtualXProxy::GetParent
Window_t GetParent(Window_t id) const
might be thread unsafe (?)
Definition: TGWin32VirtualXProxy.cxx:274
Point_t
Point structure (maps to the X11 XPoint structure)
Definition: GuiTypes.h:356
TGWin32VirtualXProxy::SendEvent
void SendEvent(Window_t id, Event_t *ev)
Send event ev to window id.
Definition: TGWin32VirtualXProxy.cxx:320
FontStruct_t
Handle_t FontStruct_t
Pointer to font structure.
Definition: GuiTypes.h:39
r
ROOT::R::TRInterface & r
Definition: Object.C:4
TVirtualX::GetCurrentWindow
virtual Window_t GetCurrentWindow() const
pointer to the current internal window used in canvas graphics
Definition: TVirtualX.cxx:2341
SetFillStyle
a SetFillStyle(0)
TVirtualX
Semi-Abstract base class defining a generic interface to the underlying, low level,...
Definition: TVirtualX.h:46
TGWin32VirtualXProxy::fgRealObject
static TVirtualX * fgRealObject
Definition: TGWin32VirtualXProxy.h:35
GCValues_t
Graphics context structure.
Definition: GuiTypes.h:224
WindowAttributes_t
Window attributes that can be inquired.
Definition: GuiTypes.h:114
Float_t
float Float_t
Definition: RtypesCore.h:57
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:162
RETURN_METHOD_ARG0_CONST
#define RETURN_METHOD_ARG0_CONST(klass, type, method)
Definition: TGWin32ProxyDefs.h:522
TGWin32VirtualXProxy::GetCurrentWindow
Window_t GetCurrentWindow() const
Return a pointer to the current window.
Definition: TGWin32VirtualXProxy.cxx:336
Int_t
int Int_t
Definition: RtypesCore.h:45
Font_t
short Font_t
Definition: RtypesCore.h:88
RETURN_PROXY_OBJECT
#define RETURN_PROXY_OBJECT(klass)
Definition: TGWin32ProxyDefs.h:79
RETURN_METHOD_ARG1
#define RETURN_METHOD_ARG1(klass, type, method, type1, par1)
Definition: TGWin32ProxyDefs.h:560
x
Double_t x[n]
Definition: legend1.C:17
TList.h
Handle_t
ULongptr_t Handle_t
Generic resource handle.
Definition: GuiTypes.h:26
TGWin32VirtualXProxy.h
ROOT::Quartz::DrawFillArea
void DrawFillArea(CGContextRef ctx, Int_t n, TPoint *xy, Bool_t drawShadow)
Definition: QuartzFillArea.mm:443
TVirtualX::IsCmdThread
virtual Bool_t IsCmdThread() const
Definition: TVirtualX.h:328
SetTextAngle
tt SetTextAngle(45)
EMouseButton
EMouseButton
Button names.
Definition: GuiTypes.h:214
RETURN_METHOD_ARG11
#define RETURN_METHOD_ARG11(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7, type8, par8, type9, par9, type10, par10, type11, par11)
Definition: TGWin32ProxyDefs.h:895
VOID_METHOD_ARG6
#define VOID_METHOD_ARG6(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, sync)
Definition: TGWin32ProxyDefs.h:321
TString
Basic string class.
Definition: TString.h:136
VOID_METHOD_ARG2
#define VOID_METHOD_ARG2(klass, method, type1, par1, type2, par2, sync)
Definition: TGWin32ProxyDefs.h:207
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
Color_t
short Color_t
Definition: RtypesCore.h:92
text
TText * text
Definition: entrylist_figure1.C:10
Visual_t
Handle_t Visual_t
Visual handle.
Definition: GuiTypes.h:28
b
#define b(i)
Definition: RSha256.hxx:100
bool
VOID_METHOD_ARG0
#define VOID_METHOD_ARG0(klass, method, sync)
Definition: TGWin32ProxyDefs.h:166
Cursor_t
Handle_t Cursor_t
Cursor handle.
Definition: GuiTypes.h:34
VOID_METHOD_ARG1
#define VOID_METHOD_ARG1(klass, method, type1, par1, sync)
Definition: TGWin32ProxyDefs.h:181
x1
static const double x1[5]
Definition: RooGaussKronrodIntegrator1D.cxx:346
Drawable_t
Handle_t Drawable_t
Drawable handle.
Definition: GuiTypes.h:31
xy
XPoint xy[kMAXMK]
Definition: TGX11.cxx:123
RETURN_METHOD_ARG0
#define RETURN_METHOD_ARG0(klass, type, method)
Definition: TGWin32ProxyDefs.h:533
TGWin32VirtualXProxy::RealObject
static TVirtualX * RealObject()
Definition: TGWin32VirtualXProxy.cxx:32
GContext_t
Handle_t GContext_t
Graphics context handle.
Definition: GuiTypes.h:38
style
TCanvas * style()
Definition: style.C:1
SetLineWidth
f1 SetLineWidth(4)
VOID_METHOD_ARG3
VOID_METHOD_ARG3(VirtualX, SetTypeList, Window_t, win, Atom_t, prop, Atom_t *, typelist, 1)
SetFillColor
h1 SetFillColor(kGreen)
Colormap_t
Handle_t Colormap_t
Colormap handle.
Definition: GuiTypes.h:33
h
#define h(i)
Definition: RSha256.hxx:106
SetMarkerSize
gr SetMarkerSize(1.3)
DEBUG_PROFILE_PROXY_STOP
#define DEBUG_PROFILE_PROXY_STOP(method)
Definition: TGWin32ProxyDefs.h:66
Atom_t
Handle_t Atom_t
WM token.
Definition: GuiTypes.h:37
Width_t
short Width_t
Definition: RtypesCore.h:91
TGWin32VirtualXProxy::CheckEvent
Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
Definition: TGWin32VirtualXProxy.cxx:312
GetPixel
static void GetPixel(int y, int width, Byte_t *scline)
Get pixels in line y and put in array scline.
Definition: TGWin32.cxx:4290
TGWin32VirtualXProxy::NextEvent
void NextEvent(Event_t &event)
Process next event in the queue - if any.
Definition: TGWin32VirtualXProxy.cxx:304
Long_t
long Long_t
Definition: RtypesCore.h:54
SetTextColor
pt SetTextColor(4)
ROOT::Quartz::DrawPolyMarker
void DrawPolyMarker(CGContextRef ctx, const std::vector< TPoint > &marker, Size_t markerSize, Style_t markerStyle)
Definition: QuartzMarker.mm:1024
DrawLine
lv DrawLine(0.33, 0.0, 0.33, 1.0)
gDebug
Int_t gDebug
Definition: TROOT.cxx:590
Window_t
Handle_t Window_t
Window handle.
Definition: GuiTypes.h:29
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
y
Double_t y[n]
Definition: legend1.C:17
org
#define org(otri, vertexptr)
Definition: triangle.c:1037
ULong_t
unsigned long ULong_t
Definition: RtypesCore.h:55
DEBUG_PROFILE_PROXY_START
#define DEBUG_PROFILE_PROXY_START(method)
Definition: TGWin32ProxyDefs.h:43
TVirtualX::LookupString
virtual void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym)
Converts the keycode from the event structure to a key symbol (according to the modifiers specified i...
Definition: TVirtualX.cxx:2009
Short_t
short Short_t
Definition: RtypesCore.h:39
ROOT::Quartz::DrawBox
void DrawBox(CGContextRef ctx, Int_t x1, Int_t y1, Int_t x2, Int_t y2, bool hollow)
Definition: QuartzFillArea.mm:427
TGWin32ProxyDefs.h
RETURN_METHOD_ARG4
#define RETURN_METHOD_ARG4(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4)
Definition: TGWin32ProxyDefs.h:650
unsigned int
TVirtualX::EventsPending
virtual Int_t EventsPending()
Returns the number of events that have been received from the X server but have not been removed from...
Definition: TVirtualX.cxx:1509
ROOT::Quartz::DrawPolyLine
void DrawPolyLine(CGContextRef ctx, Int_t n, TPoint *xy)
Definition: QuartzLine.mm:135
RETURN_METHOD_ARG6
RETURN_METHOD_ARG6(VirtualX, Window_t, FindRWindow, Window_t, win, Window_t, dragwin, Window_t, input, int, x, int, y, int, maxd)
TPoint
Definition: TPoint.h:31
SetTextAlign
th1 SetTextAlign(11)
RETURN_METHOD_ARG3
#define RETURN_METHOD_ARG3(klass, type, method, type1, par1, type2, par2, type3, par3)
Definition: TGWin32ProxyDefs.h:619
VOID_METHOD_ARG5
#define VOID_METHOD_ARG5(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, sync)
Definition: TGWin32ProxyDefs.h:291
VOID_METHOD_ARG8
#define VOID_METHOD_ARG8(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7, type8, par8, sync)
Definition: TGWin32ProxyDefs.h:384
PictureAttributes_t
Definition: GuiTypes.h:323
VOID_METHOD_ARG7
#define VOID_METHOD_ARG7(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7, sync)
Definition: TGWin32ProxyDefs.h:352
TVirtualX::SendEvent
virtual void SendEvent(Window_t id, Event_t *ev)
Specifies the event "ev" is to be sent to the window "id".
Definition: TVirtualX.cxx:1623
TGWin32VirtualXProxy
Definition: TGWin32VirtualXProxy.h:30
file
Definition: file.py:1
UChar_t
unsigned char UChar_t
Definition: RtypesCore.h:38
points
point * points
Definition: X3DBuffer.c:22
TClassEdit::Init
void Init(TClassEdit::TInterpreterLookupHelper *helper)
Definition: TClassEdit.cxx:154
Event_t
Event structure.
Definition: GuiTypes.h:174
name
char name[80]
Definition: TGX11.cxx:110
TVirtualX::CheckEvent
virtual Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
Definition: TVirtualX.cxx:1613
TVirtualX::NextEvent
virtual void NextEvent(Event_t &event)
The "event" is set to default event.
Definition: TVirtualX.cxx:137
x2
static const double x2[5]
Definition: RooGaussKronrodIntegrator1D.cxx:364
TGWin32VirtualXProxy::IsCmdThread
Bool_t IsCmdThread() const
Return kTRUE if we are inside cmd/server thread.
Definition: TGWin32VirtualXProxy.cxx:328
EInitialState
EInitialState
Initial window mapping state.
Definition: GuiTypes.h:345
SetLineColor
lv SetLineColor(kBlue)
type
int type
Definition: TGX11.cxx:121
ROOT::MacOSX::X11::GetWindowAttributes
void GetWindowAttributes(NSObject< X11Window > *window, WindowAttributes_t *dst)
Definition: QuartzWindow.mm:678
ROOT::Quartz::SetLineType
void SetLineType(CGContextRef ctx, Int_t n, Int_t *dash)
Definition: QuartzLine.mm:50
SetTextFont
pt SetTextFont(42)
RETURN_METHOD_ARG5
#define RETURN_METHOD_ARG5(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5)
Definition: TGWin32ProxyDefs.h:682
Segment_t
Used for drawing line segments (maps to the X11 XSegments structure)
Definition: GuiTypes.h:351
SetTextSize
th1 SetTextSize(0.12)
Time_t
ULong_t Time_t
Event time.
Definition: GuiTypes.h:42
EGEventType
EGEventType
Definition: GuiTypes.h:59
TGWin32VirtualXProxy::LookupString
void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym)
Convert the keycode from the event structure to a key symbol (according to the modifiers specified in...
Definition: TGWin32VirtualXProxy.cxx:285
ROOT::MacOSX::X11::CreateCursor
NSCursor * CreateCursor(ECursor currentCursor)
Definition: QuartzWindow.mm:841
int
SetWindowAttributes_t
Attributes that can be used when creating or changing a window.
Definition: GuiTypes.h:93
Size_t
float Size_t
Definition: RtypesCore.h:96
SetLineStyle
lv SetLineStyle(3)
g
#define g(i)
Definition: RSha256.hxx:105