Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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"
24#include "TGWin32.h"
25#include "TList.h"
26
28
29////////////////////////////////////////////////////////////////////////////////
30////////////////////////////////////////////////////////////////////////////////
31
33{
34 return fgRealObject;
35}
36
37RETURN_PROXY_OBJECT(VirtualX)
38VOID_METHOD_ARG0(VirtualX,SetFillAttributes,1)
39VOID_METHOD_ARG0(VirtualX,SetMarkerAttributes,1)
40VOID_METHOD_ARG0(VirtualX,SetLineAttributes,1)
41VOID_METHOD_ARG0(VirtualX,SetTextAttributes,1)
42VOID_METHOD_ARG1(VirtualX,ResetAttMarker,Option_t*,toption,1)
43VOID_METHOD_ARG1(VirtualX,ResetAttFill,Option_t*,option,1)
44VOID_METHOD_ARG1(VirtualX,ResetAttLine,Option_t*,option,1)
45VOID_METHOD_ARG1(VirtualX,ResetAttText,Option_t*,option,1)
47VOID_METHOD_ARG1(VirtualX,SetTextAngle,Float_t,tangle,1)
48VOID_METHOD_ARG1(VirtualX,SetTextMagnitude,Float_t,mgn,1)
49VOID_METHOD_ARG1(VirtualX,SetTextSizePixels,Int_t,npixels,1)
50VOID_METHOD_ARG1(VirtualX,SetFillColor,Color_t,cindex,1)
51VOID_METHOD_ARG1(VirtualX,SetMarkerSize,Float_t,markersize,1)
52VOID_METHOD_ARG1(VirtualX,SetMarkerStyle,Style_t,markerstyle,1)
54VOID_METHOD_ARG1(VirtualX,SetLineColor,Color_t,cindex,1)
55VOID_METHOD_ARG1(VirtualX,SetLineStyle,Style_t,linestyle,1)
57VOID_METHOD_ARG1(VirtualX,SetTextAlign,Short_t,talign,1)
58VOID_METHOD_ARG1(VirtualX,SetTextSize,Float_t,textsize,1)
59VOID_METHOD_ARG1(VirtualX,SetTextColor,Color_t,cindex,1)
60VOID_METHOD_ARG1(VirtualX,SetTextFont,Font_t,fontnumber,1)
61VOID_METHOD_ARG1(VirtualX,SelectWindow,Int_t,wid,0)
62VOID_METHOD_ARG2(VirtualX,DrawFillArea,Int_t,n,TPoint*,xy,1)
63VOID_METHOD_ARG2(VirtualX,DrawPolyLine,Int_t,n,TPoint*,xy,1)
64VOID_METHOD_ARG2(VirtualX,DrawPolyMarker,Int_t,n,TPoint*,xy,1)
65VOID_METHOD_ARG1(VirtualX,UpdateWindow,Int_t,mode,1)
66VOID_METHOD_ARG1(VirtualX,SetOpacity,Int_t,percent,1)
67VOID_METHOD_ARG5(VirtualX,DrawBox,Int_t,x1,Int_t,y1,Int_t,x2,Int_t,y2,TVirtualX::EBoxMode,mode,1)
68VOID_METHOD_ARG6(VirtualX,DrawText,Int_t,x,Int_t,y,Float_t,angle,Float_t,mgn,const char*,text,TVirtualX::ETextMode,mode,1)
69VOID_METHOD_ARG1(VirtualX,Update,Int_t,mode,1)
71VOID_METHOD_ARG2(VirtualX,GetCharacterUp,Float_t&,chupx,Float_t&,chupy,1)
72RETURN_METHOD_ARG0(VirtualX,Float_t,GetTextMagnitude)
73RETURN_METHOD_ARG0_CONST(VirtualX,Color_t,GetFillColor)
74RETURN_METHOD_ARG0_CONST(VirtualX,Style_t,GetFillStyle)
75RETURN_METHOD_ARG0_CONST(VirtualX,Bool_t,IsTransparent)
76RETURN_METHOD_ARG0_CONST(VirtualX,Color_t,GetLineColor)
77RETURN_METHOD_ARG0_CONST(VirtualX,Style_t,GetLineStyle)
78RETURN_METHOD_ARG0_CONST(VirtualX,Width_t,GetLineWidth)
79RETURN_METHOD_ARG0_CONST(VirtualX,Color_t,GetMarkerColor)
80RETURN_METHOD_ARG0_CONST(VirtualX,Style_t,GetMarkerStyle)
81RETURN_METHOD_ARG0_CONST(VirtualX,Size_t,GetMarkerSize)
82RETURN_METHOD_ARG0_CONST(VirtualX,Short_t,GetTextAlign)
83RETURN_METHOD_ARG0_CONST(VirtualX,Float_t,GetTextAngle)
84RETURN_METHOD_ARG0_CONST(VirtualX,Color_t,GetTextColor)
85RETURN_METHOD_ARG0_CONST(VirtualX,Font_t,GetTextFont)
86RETURN_METHOD_ARG0_CONST(VirtualX,Float_t,GetTextSize)
87VOID_METHOD_ARG1(VirtualX,Bell,Int_t,percent,1)
88VOID_METHOD_ARG0(VirtualX,ClosePixmap,1)
89VOID_METHOD_ARG0(VirtualX,CloseWindow,1)
90VOID_METHOD_ARG0(VirtualX,SetDoubleBufferOFF,1)
91VOID_METHOD_ARG0(VirtualX,SetDoubleBufferON,1)
92VOID_METHOD_ARG1(VirtualX,SetClipOFF,Int_t,wid,1)
93VOID_METHOD_ARG1(VirtualX,MapWindow,Window_t,id,1)
94VOID_METHOD_ARG1(VirtualX,MapSubwindows,Window_t,id,1)
95VOID_METHOD_ARG1(VirtualX,MapRaised,Window_t,id,1)
96VOID_METHOD_ARG1(VirtualX,UnmapWindow,Window_t,id,1)
97VOID_METHOD_ARG1(VirtualX,DestroyWindow,Window_t,id,1)
98VOID_METHOD_ARG1(VirtualX,DestroySubwindows,Window_t,id,1)
99VOID_METHOD_ARG1(VirtualX,RaiseWindow,Window_t,id,1)
100VOID_METHOD_ARG1(VirtualX,LowerWindow,Window_t,id,1)
101VOID_METHOD_ARG1(VirtualX,DeleteGC,GContext_t,gc,1)
102VOID_METHOD_ARG1(VirtualX,DeleteFont,FontStruct_t,fs,1)
103VOID_METHOD_ARG1(VirtualX,DeletePixmap,Pixmap_t,pmap,1)
104VOID_METHOD_ARG1(VirtualX,DeletePictureData,void*,data,1)
105VOID_METHOD_ARG1(VirtualX,WMDeleteNotify,Window_t,id,1)
106VOID_METHOD_ARG1(VirtualX,SetKeyAutoRepeat,Bool_t,on,1)
107VOID_METHOD_ARG1(VirtualX,ClearWindow,Window_t,id,1)
108VOID_METHOD_ARG1(VirtualX,SetInputFocus,Window_t,id,1)
109VOID_METHOD_ARG1(VirtualX,FreeFontStruct,FontStruct_t,fs,1)
110VOID_METHOD_ARG1(VirtualX,DestroyRegion,Region_t,reg,1)
111VOID_METHOD_ARG1(VirtualX,FreeFontNames,char**,fontlist,1)
112VOID_METHOD_ARG1(VirtualX,SetPrimarySelectionOwner,Window_t,id,1)
113VOID_METHOD_ARG1(VirtualX,DeleteImage,Drawable_t,img,1)
114VOID_METHOD_ARG1(VirtualX,IconifyWindow,Window_t,id,1)
115VOID_METHOD_ARG3(VirtualX,Warp,Int_t,ix,Int_t,iy,Window_t,id,1)
116VOID_METHOD_ARG2(VirtualX,SetCharacterUp,Float_t,chupx,Float_t,chupy,1)
117VOID_METHOD_ARG2(VirtualX,ChangeGC,GContext_t,gc,GCValues_t*,gval,1)
118VOID_METHOD_ARG2(VirtualX,SetDoubleBuffer,Int_t,wid,Int_t,mode,1)
119VOID_METHOD_ARG2(VirtualX,SetLineType,Int_t,n,Int_t*,dash,1)
120VOID_METHOD_ARG2(VirtualX,SetCursor,Window_t,id,Cursor_t,curid,1)
121VOID_METHOD_ARG2(VirtualX,SetWindowBackground,Window_t,id,ULong_t,color,1)
122VOID_METHOD_ARG2(VirtualX,SetWindowBackgroundPixmap,Window_t,id,Pixmap_t,pxm,1)
123VOID_METHOD_ARG2(VirtualX,ChangeWindowAttributes,Window_t,id,SetWindowAttributes_t*,attr,1)
124VOID_METHOD_ARG2(VirtualX,FreeColor,Colormap_t,cmap,ULong_t,pixel,1)
125VOID_METHOD_ARG2(VirtualX,SetWindowName,Window_t,id,char*,name,1)
126VOID_METHOD_ARG2(VirtualX,SetWMTransientHint,Window_t,id,Window_t,main_id,1)
127VOID_METHOD_ARG2(VirtualX,SetIconName,Window_t,id,char*,name,1)
128VOID_METHOD_ARG2(VirtualX,SetIconPixmap,Window_t,id,Pixmap_t,pix,1)
129VOID_METHOD_ARG2(VirtualX,SelectInput,Window_t,id,UInt_t,evmask,1)
130VOID_METHOD_ARG2(VirtualX,SetForeground,GContext_t,gc,ULong_t,foreground,1)
131VOID_METHOD_ARG2(VirtualX,SetWMState,Window_t,id,EInitialState,state,1)
132VOID_METHOD_ARG3(VirtualX,CopyPixmap,Int_t,wid,Int_t,xpos,Int_t,ypos,0)
133VOID_METHOD_ARG3(VirtualX,SetClassHints,Window_t,id,char*,className,char*,resourceName,1)
134VOID_METHOD_ARG3(VirtualX,SetWMPosition,Window_t,id,Int_t,x,Int_t,y,1)
135VOID_METHOD_ARG3(VirtualX,SetWMSize,Window_t,id,UInt_t,w,UInt_t,h,1)
136VOID_METHOD_ARG3(VirtualX,ConvertPrimarySelection,Window_t,id,Atom_t,clipboard,Time_t,when,1)
137VOID_METHOD_ARG3(VirtualX,ReadGIF,Int_t,x0,Int_t,y0,const char*,file,1)
138VOID_METHOD_ARG3(VirtualX,RescaleWindow,Int_t,wid,UInt_t,w,UInt_t,h,1)
139VOID_METHOD_ARG3(VirtualX,MoveWindow,Window_t,id,Int_t,x,Int_t,y,1)
140VOID_METHOD_ARG3(VirtualX,ResizeWindow,Window_t,id,UInt_t,w,UInt_t,h,1)
141VOID_METHOD_ARG4(VirtualX,DrawSegments,Drawable_t,id,GContext_t,gc,Segment_t*,seg,Int_t,nseg,1)
142VOID_METHOD_ARG4(VirtualX,SetMWMHints,Window_t,id,UInt_t,value,UInt_t,funcs,UInt_t,input,1)
143VOID_METHOD_ARG4(VirtualX,SetDashes,GContext_t,gc,Int_t,offset,const char*,dash_list,Int_t,n,1)
144VOID_METHOD_ARG4(VirtualX,WritePixmap,Int_t,wid,UInt_t,w,UInt_t,h,char*,pxname,1)
145VOID_METHOD_ARG4(VirtualX,SetRGB,Int_t,cindex,Float_t,r,Float_t,g,Float_t,b,1)
146VOID_METHOD_ARG4(VirtualX,PutPixel,Drawable_t,id,Int_t,x,Int_t,y,ULong_t,pixel,1)
147VOID_METHOD_ARG4(VirtualX,GrabKey,Window_t,id,Int_t,keycode,UInt_t,modifier,Bool_t,grab,1)
148VOID_METHOD_ARG4(VirtualX,FillPolygon,Window_t,id,GContext_t,gc,Point_t*,points,Int_t,npnt,1)
149VOID_METHOD_ARG4(VirtualX,ReparentWindow,Window_t,id,Window_t,pid,Int_t,x,Int_t,y,1)
150VOID_METHOD_ARG5(VirtualX,MoveResizeWindow,Window_t,id,Int_t,x,Int_t,y,UInt_t,w,UInt_t,h,1)
151VOID_METHOD_ARG5(VirtualX,ChangeProperty,Window_t,id,Atom_t,property,Atom_t,type,UChar_t*,data,Int_t,len,1)
152VOID_METHOD_ARG5(VirtualX,SetClipRegion,Int_t,wid,Int_t,x,Int_t,y,UInt_t,w,UInt_t,h,1)
153VOID_METHOD_ARG5(VirtualX,ClearArea,Window_t,id,Int_t,x,Int_t,y,UInt_t,w,UInt_t,h,1)
154VOID_METHOD_ARG5(VirtualX,SetClipRectangles,GContext_t,gc,Int_t,x,Int_t,y,Rectangle_t*,recs,Int_t,n,1)
155VOID_METHOD_ARG6(VirtualX,GrabPointer,Window_t,id,UInt_t,evmask,Window_t,confine,Cursor_t,cursor,Bool_t,grab,Bool_t,owner_events,1)
157VOID_METHOD_ARG6(VirtualX,DrawString,Drawable_t,id,GContext_t,gc,Int_t,x,Int_t,y,const char*,s,Int_t,len,1)
158VOID_METHOD_ARG6(VirtualX,FillRectangle,Drawable_t,id,GContext_t,gc,Int_t,x,Int_t,y,UInt_t,w,UInt_t,h,1)
159VOID_METHOD_ARG6(VirtualX,DrawRectangle,Drawable_t,id,GContext_t,gc,Int_t,x,Int_t,y,UInt_t,w,UInt_t,h,1)
160VOID_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)
161VOID_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)
162VOID_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)
163VOID_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)
164VOID_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)
165VOID_METHOD_ARG2(VirtualX,QueryColor,Colormap_t,cmap,ColorStruct_t&,color,1)
166VOID_METHOD_ARG2(VirtualX,GetWindowAttributes,Window_t,id,WindowAttributes_t&,attr,1)
167VOID_METHOD_ARG5(VirtualX,GetGeometry,Int_t,wid,Int_t&,x,Int_t&,y,UInt_t&,w,UInt_t&,h,1)
168VOID_METHOD_ARG4(VirtualX,GetRGB,Int_t,index,Float_t&,r,Float_t&,g,Float_t&,b,1)
169VOID_METHOD_ARG3(VirtualX,GetFontProperties,FontStruct_t,font,Int_t&,max_ascent,Int_t&,max_descent,1)
170VOID_METHOD_ARG5(VirtualX,GetWindowSize,Drawable_t,id,Int_t&,x,Int_t&,y,UInt_t&,w,UInt_t&,h,1)
171VOID_METHOD_ARG3(VirtualX,GetImageSize,Drawable_t,id,UInt_t&,width,UInt_t&,height,1)
172VOID_METHOD_ARG3(VirtualX,UnionRectWithRegion,Rectangle_t*,rect,Region_t,src,Region_t,dest,1)
173VOID_METHOD_ARG3(VirtualX,UnionRegion,Region_t,rega,Region_t,regb,Region_t,result,1)
174VOID_METHOD_ARG3(VirtualX,IntersectRegion,Region_t,rega,Region_t,regb,Region_t,result,1)
175VOID_METHOD_ARG3(VirtualX,SubtractRegion,Region_t,rega,Region_t,regb,Region_t,result,1)
176VOID_METHOD_ARG3(VirtualX,XorRegion,Region_t,rega,Region_t,regb,Region_t,result,1)
177VOID_METHOD_ARG2(VirtualX,GetRegionBox,Region_t,reg,Rectangle_t*,rect,1)
178VOID_METHOD_ARG3(VirtualX,CopyGC,GContext_t,org,GContext_t,dest,Mask_t,mask,1)
179VOID_METHOD_ARG3(VirtualX,GetTextExtent,UInt_t&,w,UInt_t&,h,char*,mess,1)
180VOID_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)
181VOID_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)
182VOID_METHOD_ARG0(VirtualX,ClearWindow,1)
183VOID_METHOD_ARG1(VirtualX,SetDrawMode,TVirtualX::EDrawMode,mode,1)
184VOID_METHOD_ARG3(VirtualX,MoveWindow,Int_t,wid,Int_t,x,Int_t,y,1)
185VOID_METHOD_ARG1(VirtualX,ResizeWindow,Int_t,winid,1)
186VOID_METHOD_ARG2(VirtualX,SetCursor,Int_t,win,ECursor,cursor,1)
187VOID_METHOD_ARG2(VirtualX,QueryPointer,Int_t&,ix,Int_t&,iy,1)
188VOID_METHOD_ARG5(VirtualX,GetPasteBuffer,Window_t,id,Atom_t,atom,TString&,text,Int_t&,nchar,Bool_t,del,1)
189VOID_METHOD_ARG1(VirtualX,GetPlanes,Int_t&,planes,1)
190VOID_METHOD_ARG2(VirtualX,GetGCValues,GContext_t,gc,GCValues_t&,gval,1)
191RETURN_METHOD_ARG0(VirtualX,Window_t,GetInputFocus)
192RETURN_METHOD_ARG0(VirtualX,Window_t,GetPrimarySelectionOwner)
193RETURN_METHOD_ARG0(VirtualX,Region_t,CreateRegion)
194RETURN_METHOD_ARG0_CONST(VirtualX,Display_t,GetDisplay)
195RETURN_METHOD_ARG0_CONST(VirtualX,Visual_t,GetVisual)
196RETURN_METHOD_ARG0_CONST(VirtualX,Int_t,GetScreen)
197RETURN_METHOD_ARG0_CONST(VirtualX,Int_t,GetDepth)
198RETURN_METHOD_ARG0_CONST(VirtualX,Colormap_t,GetColormap)
199RETURN_METHOD_ARG0_CONST(VirtualX,Bool_t,HasTTFonts)
200RETURN_METHOD_ARG0_CONST(VirtualX,Handle_t,GetNativeEvent)
201RETURN_METHOD_ARG0_CONST(VirtualX,Window_t,GetDefaultRootWindow)
202RETURN_METHOD_ARG1(VirtualX,const char*,DisplayName,const char*,dpyName)
203RETURN_METHOD_ARG1(VirtualX,Bool_t,Init,void*,display)
204RETURN_METHOD_ARG1(VirtualX,Int_t,GetDoubleBuffer,Int_t,wid)
205RETURN_METHOD_ARG1(VirtualX,Window_t,GetWindowID,Int_t,wid)
206RETURN_METHOD_ARG1(VirtualX,Int_t,InitWindow,ULong_t,window)
207RETURN_METHOD_ARG1(VirtualX,Int_t,WriteGIF,char*,name)
208RETURN_METHOD_ARG1(VirtualX,FontStruct_t,LoadQueryFont,const char*,font_name)
209RETURN_METHOD_ARG1(VirtualX,FontH_t,GetFontHandle,FontStruct_t,fs)
210RETURN_METHOD_ARG1(VirtualX,Cursor_t,CreateCursor,ECursor,cursor)
211RETURN_METHOD_ARG1(VirtualX,FontStruct_t,GetFontStruct,FontH_t,fh)
212RETURN_METHOD_ARG1(VirtualX,Int_t,KeysymToKeycode,UInt_t,keysym)
213RETURN_METHOD_ARG1(VirtualX,Int_t,OpenDisplay,const char*,dpyName)
214RETURN_METHOD_ARG1(VirtualX,Bool_t,EmptyRegion,Region_t,reg)
215RETURN_METHOD_ARG2(VirtualX,Int_t,OpenPixmap,UInt_t,w,UInt_t,h)
216RETURN_METHOD_ARG2(VirtualX,Atom_t,InternAtom,const char*,atom_name,Bool_t,only_if_exist)
217RETURN_METHOD_ARG2(VirtualX,GContext_t,CreateGC,Drawable_t,id,GCValues_t*,gval)
218RETURN_METHOD_ARG2(VirtualX,Bool_t,EqualRegion,Region_t,rega,Region_t,regb)
219RETURN_METHOD_ARG2(VirtualX,Drawable_t,CreateImage,UInt_t,width,UInt_t,height)
220RETURN_METHOD_ARG3(VirtualX,Int_t,ResizePixmap,Int_t,wid,UInt_t,w,UInt_t,h)
221RETURN_METHOD_ARG3(VirtualX,Int_t,TextWidth,FontStruct_t,font,const char*,s,Int_t,len)
222RETURN_METHOD_ARG3(VirtualX,Region_t,PolygonRegion,Point_t*,points,Int_t,np,Bool_t,winding)
223RETURN_METHOD_ARG3(VirtualX,Bool_t,PointInRegion,Int_t,x,Int_t,y,Region_t,reg)
224RETURN_METHOD_ARG3(VirtualX,Int_t,RequestString,Int_t,x,Int_t,y,char*,text)
225RETURN_METHOD_ARG4(VirtualX,Pixmap_t,CreateBitmap,Drawable_t,id,const char*,bitmap,UInt_t,width,UInt_t,height)
226RETURN_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)
227RETURN_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)
228RETURN_METHOD_ARG3(VirtualX,char**,ListFonts,const char*,fontname,Int_t,mx,Int_t&,count)
229RETURN_METHOD_ARG4(VirtualX,Int_t,RequestLocator,Int_t,mode,Int_t,ctyp,Int_t&,x,Int_t&,y)
230RETURN_METHOD_ARG3(VirtualX,Bool_t,ParseColor,Colormap_t,cmap,const char*,cname,ColorStruct_t&,color)
231RETURN_METHOD_ARG2(VirtualX,Bool_t,AllocColor,Colormap_t,cmap,ColorStruct_t&,color)
232RETURN_METHOD_ARG5(VirtualX,Bool_t,CreatePictureFromFile,Drawable_t,id,const char*,filename,Pixmap_t&,pict,Pixmap_t&,pict_mask,PictureAttributes_t&,attr)
233RETURN_METHOD_ARG5(VirtualX,Bool_t,CreatePictureFromData,Drawable_t,id,char**,data,Pixmap_t&,pict,Pixmap_t&,pict_mask,PictureAttributes_t&,attr)
234RETURN_METHOD_ARG2(VirtualX,Bool_t,ReadPictureDataFromFile,const char*,filename,char***,ret_data)
235RETURN_METHOD_ARG2(VirtualX,Int_t,SetTextFont,char*,fontname,TVirtualX::ETextSetMode,mode)
236RETURN_METHOD_ARG3(VirtualX,Pixmap_t,CreatePixmap,Drawable_t,wid,UInt_t,w,UInt_t,h)
238RETURN_METHOD_ARG5(VirtualX,unsigned char*,GetColorBits,Drawable_t,wid,Int_t,x,Int_t,y,UInt_t,width,UInt_t,height)
239RETURN_METHOD_ARG3(VirtualX,Pixmap_t,CreatePixmapFromData,unsigned char*,bits,UInt_t,width,UInt_t,height)
240RETURN_METHOD_ARG3(VirtualX,Int_t,AddWindow,ULong_t,qwid,UInt_t,w,UInt_t,h)
241VOID_METHOD_ARG1(VirtualX,RemoveWindow,ULong_t,qwid,1)
242VOID_METHOD_ARG4(VirtualX,ShapeCombineMask,Window_t,id,Int_t,x,Int_t,y,Pixmap_t,mask,1)
243
244VOID_METHOD_ARG2(VirtualX,DeleteProperty,Window_t,win,Atom_t&,prop,1)
245RETURN_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)
246VOID_METHOD_ARG3(VirtualX,ChangeActivePointerGrab,Window_t,win,UInt_t,mask,Cursor_t,cur,1)
247VOID_METHOD_ARG5(VirtualX,ConvertSelection,Window_t,win,Atom_t&,sel,Atom_t&,target,Atom_t&,prop,Time_t&,stamp,1)
248RETURN_METHOD_ARG2(VirtualX,Bool_t,SetSelectionOwner,Window_t,win,Atom_t&,prop)
249VOID_METHOD_ARG6(VirtualX,ChangeProperties,Window_t,id,Atom_t,property,Atom_t,type,Int_t,format,UChar_t*,data,Int_t,len,1)
250VOID_METHOD_ARG2(VirtualX,SetDNDAware,Window_t,id,Atom_t*,typelist,1)
251VOID_METHOD_ARG3(VirtualX,SetTypeList,Window_t,win,Atom_t,prop,Atom_t*,typelist,1);
252RETURN_METHOD_ARG6(VirtualX,Window_t,FindRWindow,Window_t,win,Window_t,dragwin,Window_t,input,int,x,int,y,int,maxd);
253RETURN_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
265void 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
285void 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{
339}
340
EGEventType
Definition GuiTypes.h:59
Handle_t Cursor_t
Cursor handle.
Definition GuiTypes.h:34
ULong_t Handle_t
Generic resource handle.
Definition GuiTypes.h:26
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 Display_t
Display handle.
Definition GuiTypes.h:27
Handle_t Pixmap_t
Pixmap handle.
Definition GuiTypes.h:30
ULong_t Time_t
Event time.
Definition GuiTypes.h:42
EInitialState
Initial window mapping state.
Definition GuiTypes.h:345
Handle_t Drawable_t
Drawable handle.
Definition GuiTypes.h:31
Handle_t Colormap_t
Colormap handle.
Definition GuiTypes.h:33
Handle_t Atom_t
WM token.
Definition GuiTypes.h:37
Handle_t GContext_t
Graphics context handle.
Definition GuiTypes.h:38
ECursor
Definition GuiTypes.h:372
Handle_t Region_t
Region handle.
Definition GuiTypes.h:32
Handle_t FontStruct_t
Pointer to font structure.
Definition GuiTypes.h:39
EMouseButton
Button names.
Definition GuiTypes.h:214
Handle_t Window_t
Window handle.
Definition GuiTypes.h:29
ROOT::R::TRInterface & r
Definition Object.C:4
#define b(i)
Definition RSha256.hxx:100
#define g(i)
Definition RSha256.hxx:105
#define h(i)
Definition RSha256.hxx:106
static const double x2[5]
static const double x1[5]
int Int_t
Definition RtypesCore.h:45
float Size_t
Definition RtypesCore.h:87
unsigned char UChar_t
Definition RtypesCore.h:38
unsigned int UInt_t
Definition RtypesCore.h:46
unsigned long ULong_t
Definition RtypesCore.h:55
long Long_t
Definition RtypesCore.h:54
short Width_t
Definition RtypesCore.h:82
bool Bool_t
Definition RtypesCore.h:63
short Font_t
Definition RtypesCore.h:79
short Short_t
Definition RtypesCore.h:39
short Color_t
Definition RtypesCore.h:83
short Style_t
Definition RtypesCore.h:80
float Float_t
Definition RtypesCore.h:57
const char Option_t
Definition RtypesCore.h:66
include TDocParser_001 C image html pict1_TDocParser_001 png width
#define RETURN_METHOD_ARG3(klass, type, method, type1, par1, type2, par2, type3, par3)
#define VOID_METHOD_ARG6(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, sync)
#define VOID_METHOD_ARG3(klass, method, type1, par1, type2, par2, type3, par3, sync)
#define RETURN_METHOD_ARG7(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7)
#define VOID_METHOD_ARG0(klass, method, sync)
#define RETURN_METHOD_ARG0(klass, type, method)
#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)
#define RETURN_METHOD_ARG6(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6)
#define VOID_METHOD_ARG5(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, sync)
#define RETURN_PROXY_OBJECT(klass)
#define DEBUG_PROFILE_PROXY_START(method)
#define RETURN_METHOD_ARG4(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4)
#define RETURN_METHOD_ARG2(klass, type, method, type1, par1, type2, par2)
#define VOID_METHOD_ARG1(klass, method, type1, par1, sync)
#define RETURN_METHOD_ARG0_CONST(klass, type, method)
#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)
#define DEBUG_PROFILE_PROXY_STOP(method)
#define VOID_METHOD_ARG4(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, sync)
#define RETURN_METHOD_ARG5(klass, type, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5)
#define VOID_METHOD_ARG8(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7, type8, par8, sync)
#define VOID_METHOD_ARG2(klass, method, type1, par1, type2, par2, sync)
#define VOID_METHOD_ARG7(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7, sync)
#define RETURN_METHOD_ARG1(klass, type, method, type1, par1)
static void GetPixel(int y, int width, Byte_t *scline)
Get pixels in line y and put in array scline.
Definition TGWin32.cxx:4290
char name[80]
Definition TGX11.cxx:110
int type
Definition TGX11.cxx:121
XPoint xy[kMAXMK]
Definition TGX11.cxx:123
Int_t gDebug
Definition TROOT.cxx:590
point * points
Definition X3DBuffer.c:22
static TVirtualX * fgRealObject
Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
Int_t EventsPending()
Return number of pending events.
void SendEvent(Window_t id, Event_t *ev)
Send event ev to window id.
void NextEvent(Event_t &event)
Process next event in the queue - if any.
Window_t GetParent(Window_t id) const
might be thread unsafe (?)
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...
Window_t GetCurrentWindow() const
Return a pointer to the current window.
static TVirtualX * RealObject()
Bool_t IsCmdThread() const
Return kTRUE if we are inside cmd/server thread.
Basic string class.
Definition TString.h:136
Semi-Abstract base class defining a generic interface to the underlying, low level,...
Definition TVirtualX.h:46
virtual Bool_t IsCmdThread() const
Definition TVirtualX.h:328
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 SendEvent(Window_t id, Event_t *ev)
Specifies the event "ev" is to be sent to the window "id".
virtual Window_t GetCurrentWindow() const
pointer to the current internal window used in canvas graphics
virtual void NextEvent(Event_t &event)
The "event" is set to default event.
virtual Int_t EventsPending()
Returns the number of events that have been received from the X server but have not been removed from...
virtual Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
pt SetTextColor(4)
pt SetTextFont(42)
TText * text
h1 SetFillColor(kGreen)
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
const Int_t n
Definition legend1.C:16
gr SetMarkerSize(1.3)
f1 SetLineWidth(4)
Definition file.py:1
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
TCanvas * style()
Definition style.C:1
th1 SetTextAlign(11)
lv DrawLine(0.33, 0.0, 0.33, 1.0)
lv SetLineColor(kBlue)
th1 SetTextSize(0.12)
lv SetLineStyle(3)
m SetMarkerColor(kBlue)
m SetMarkerStyle(20)
tt SetTextAngle(45)
a SetFillStyle(0)
#define dest(otri, vertexptr)
Definition triangle.c:1040
#define org(otri, vertexptr)
Definition triangle.c:1037