ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
27 TVirtualX *TGWin32VirtualXProxy::fgRealObject = 0;
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)
56 VOID_METHOD_ARG1(VirtualX,SetLineWidth,Width_t,width,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)
62 VOID_METHOD_ARG2(VirtualX,DrawFillArea,Int_t,n,TPoint*,xy,1)
63 VOID_METHOD_ARG2(VirtualX,DrawPolyLine,Int_t,n,TPoint*,xy,1)
64 VOID_METHOD_ARG2(VirtualX,DrawPolyMarker,Int_t,n,TPoint*,xy,1)
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)
70 VOID_METHOD_ARG4(VirtualX,DrawLine,Int_t,x1,Int_t,y1,Int_t,x2,Int_t,y2,0)
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)
156 VOID_METHOD_ARG6(VirtualX,DrawLine,Drawable_t,id,GContext_t,gc,Int_t,x1,Int_t,y1,Int_t,x2,Int_t,y2,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)
166 VOID_METHOD_ARG2(VirtualX,GetWindowAttributes,Window_t,id,WindowAttributes_t&,attr,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)
210 RETURN_METHOD_ARG1(VirtualX,Cursor_t,CreateCursor,ECursor,cursor)
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)
237 RETURN_METHOD_ARG1(VirtualX,ULong_t,GetPixel,Color_t,cindex)
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 
const int nx
Definition: kalman.C:16
Handle_t FontStruct_t
Definition: GuiTypes.h:40
#define RETURN_METHOD_ARG3(klass, type, method, type1, par1, type2, par2, type3, par3)
#define VOID_METHOD_ARG2(klass, method, type1, par1, type2, par2, sync)
Semi-Abstract base class defining a generic interface to the underlying, low level, native graphics backend (X11, Win32, MacOS, OpenGL...).
Definition: TVirtualX.h:70
#define VOID_METHOD_ARG8(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7, type8, par8, sync)
#define RETURN_METHOD_ARG5(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5)
#define RETURN_METHOD_ARG0_CONST(klass, type, method)
EInitialState
Definition: GuiTypes.h:346
short Style_t
Definition: RtypesCore.h:76
#define RETURN_PROXY_OBJECT(klass)
void GetWindowAttributes(NSObject< X11Window > *window, WindowAttributes_t *dst)
virtual Bool_t IsCmdThread() const
Definition: TVirtualX.h:352
float Float_t
Definition: RtypesCore.h:53
float Size_t
Definition: RtypesCore.h:83
UInt_t Mask_t
Definition: GuiTypes.h:42
th1 SetTextAlign(11)
const char Option_t
Definition: RtypesCore.h:62
virtual Window_t GetCurrentWindow() const
pointer to the current internal window used in canvas graphics
Definition: TVirtualX.cxx:2339
tuple offset
Definition: tree.py:93
tt SetTextAngle(45)
virtual void NextEvent(Event_t &event)
The "event" is set to default event.
Definition: TVirtualX.cxx:136
#define RETURN_METHOD_ARG0(klass, type, method)
ULong_t Time_t
Definition: GuiTypes.h:43
TH1 * h
Definition: legend2.C:5
#define VOID_METHOD_ARG7(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7, sync)
EGEventType
Definition: GuiTypes.h:60
Window_t GetCurrentWindow() const
Return a pointer to the current window.
Handle_t Cursor_t
Definition: GuiTypes.h:35
static const char * filename()
Handle_t GContext_t
Definition: GuiTypes.h:39
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Handle_t Drawable_t
Definition: GuiTypes.h:32
static std::string format(double x, double y, int digits, int width)
ECursor
Definition: TVirtualX.h:56
short Font_t
Definition: RtypesCore.h:75
Handle_t Display_t
Definition: GuiTypes.h:28
tuple window
Definition: gui_ex.py:57
Handle_t FontH_t
Definition: GuiTypes.h:36
#define VOID_METHOD_ARG0(klass, method, sync)
static const double x2[5]
Double_t x[n]
Definition: legend1.C:17
TBonjourRegistrar * reg
Definition: hserv2bonj.C:28
#define RETURN_METHOD_ARG7(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7)
NSPoint TranslateCoordinates(NSView< X11Window > *fromView, NSView< X11Window > *toView, NSPoint sourcePoint)
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:2008
#define DEBUG_PROFILE_PROXY_STOP(method)
static TVirtualX * fgRealObject
const int ny
Definition: kalman.C:17
void Init(TClassEdit::TInterpreterLookupHelper *helper)
Definition: TClassEdit.cxx:118
Handle_t Atom_t
Definition: GuiTypes.h:38
pt SetTextColor(4)
void SetLineType(CGContextRef ctx, Int_t n, Int_t *dash)
Definition: QuartzLine.mm:50
#define VOID_METHOD_ARG4(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, sync)
static TVirtualX * RealObject()
tuple np
Definition: multifit.py:30
m SetMarkerColor(kBlue)
void SendEvent(Window_t id, Event_t *ev)
Send event ev to window id.
lv SetLineColor(kBlue)
short Color_t
Definition: RtypesCore.h:79
virtual void SendEvent(Window_t id, Event_t *ev)
Specifies the event "ev" is to be sent to the window "id".
Definition: TVirtualX.cxx:1622
#define RETURN_METHOD_ARG4(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4)
Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
void DrawPolyLine(CGContextRef ctx, Int_t n, TPoint *xy)
Definition: QuartzLine.mm:135
Definition: TPoint.h:33
#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)
point * points
Definition: X3DBuffer.c:20
EMouseButton
Definition: GuiTypes.h:215
ROOT::R::TRInterface & r
Definition: Object.C:4
Double_t length(const TVector2 &v)
Definition: CsgOps.cxx:347
void DrawFillArea(CGContextRef ctx, Int_t n, TPoint *xy, Bool_t drawShadow)
XPoint xy[kMAXMK]
Definition: TGX11.cxx:122
pt SetTextFont(42)
a SetFillStyle(0)
void NextEvent(Event_t &event)
Process next event in the queue - if any.
Handle_t Visual_t
Definition: GuiTypes.h:29
#define RETURN_METHOD_ARG1(klass, type, method, type1, par1)
h1 SetFillColor(kGreen)
#define VOID_METHOD_ARG1(klass, method, type1, par1, sync)
gen DrawText(9, 19.5,"ROOT compiler")
unsigned int UInt_t
Definition: RtypesCore.h:42
m SetMarkerStyle(20)
gr SetMarkerSize(1.3)
tuple w
Definition: qtexample.py:51
void DrawPolyMarker(CGContextRef ctx, const std::vector< TPoint > &marker, Size_t markerSize, Style_t markerStyle)
short Short_t
Definition: RtypesCore.h:35
f1 SetLineWidth(4)
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:1508
#define VOID_METHOD_ARG6(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, sync)
lv DrawLine(0.33, 0.0, 0.33, 1.0)
Handle_t Colormap_t
Definition: GuiTypes.h:34
short Width_t
Definition: RtypesCore.h:78
Int_t EventsPending()
Return number of pending events.
long Long_t
Definition: RtypesCore.h:50
static const double x1[5]
tuple file
Definition: fildir.py:20
TText * text
Window_t GetParent(Window_t id) const
might be thread unsafe (?)
int type
Definition: TGX11.cxx:120
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
unsigned long ULong_t
Definition: RtypesCore.h:51
th1 SetTextSize(0.12)
TCanvas * style()
Definition: style.C:1
Double_t y[n]
Definition: legend1.C:17
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...
RETURN_METHOD_ARG2(VirtualX, Bool_t, IsDNDAware, Window_t, win, Atom_t *, typelist)
static void GetPixel(int y, int width, Byte_t *scline)
Get pixels in line y and put in array scline.
Definition: TGWin32.cxx:4049
NSCursor * CreateCursor(ECursor currentCursor)
#define name(a, b)
Definition: linkTestLib0.cpp:5
#define org(otri, vertexptr)
Definition: triangle.c:1037
Handle_t Window_t
Definition: GuiTypes.h:30
lv SetLineStyle(3)
void DrawBox(CGContextRef ctx, Int_t x1, Int_t y1, Int_t x2, Int_t y2, bool hollow)
#define dest(otri, vertexptr)
Definition: triangle.c:1040
Handle_t Region_t
Definition: GuiTypes.h:33
VOID_METHOD_ARG3(VirtualX, SetTypeList, Window_t, win, Atom_t, prop, Atom_t *, typelist, 1)
Handle_t Pixmap_t
Definition: GuiTypes.h:31
#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)
R__EXTERN Int_t gDebug
Definition: Rtypes.h:128
double result[121]
unsigned char UChar_t
Definition: RtypesCore.h:34
#define VOID_METHOD_ARG5(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, sync)
RETURN_METHOD_ARG6(VirtualX, Window_t, FindRWindow, Window_t, win, Window_t, dragwin, Window_t, input, int, x, int, y, int, maxd)
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:1612
#define DEBUG_PROFILE_PROXY_START(method)
float value
Definition: math.cpp:443
const Int_t n
Definition: legend1.C:16
Bool_t IsCmdThread() const
Return kTRUE if we are inside cmd/server thread.
ULong_t Handle_t
Definition: GuiTypes.h:27