27 TVirtualX *TGWin32VirtualXProxy::fgRealObject = 0;
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)
70 VOID_METHOD_ARG4(VirtualX,
DrawLine,Int_t,x1,Int_t,y1,Int_t,x2,Int_t,y2,0)
122 VOID_METHOD_ARG2(VirtualX,SetWindowBackgroundPixmap,Window_t,
id,Pixmap_t,pxm,1)
126 VOID_METHOD_ARG2(VirtualX,SetWMTransientHint,Window_t,
id,Window_t,main_id,1)
133 VOID_METHOD_ARG3(VirtualX,SetClassHints,Window_t,
id,
char*,className,
char*,resourceName,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)
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)
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)
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)
188 VOID_METHOD_ARG5(VirtualX,GetPasteBuffer,Window_t,
id,Atom_t,atom,
TString&,text,Int_t&,nchar,Bool_t,del,1)
216 RETURN_METHOD_ARG2(VirtualX,Atom_t,InternAtom,const
char*,atom_name,Bool_t,only_if_exist)
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)
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)
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)
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)
242 VOID_METHOD_ARG4(VirtualX,ShapeCombineMask,Window_t,
id,Int_t,x,Int_t,y,Pixmap_t,mask,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)
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)
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);
268 fgRealObject->CloseDisplay();
276 return (
Window_t)gdk_window_get_parent((GdkWindow *)
id);
#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...).
#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)
#define RETURN_PROXY_OBJECT(klass)
void GetWindowAttributes(NSObject< X11Window > *window, WindowAttributes_t *dst)
virtual Bool_t IsCmdThread() const
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.
#define RETURN_METHOD_ARG0(klass, type, method)
#define VOID_METHOD_ARG7(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, type5, par5, type6, par6, type7, par7, sync)
Window_t GetCurrentWindow() const
Return a pointer to the current window.
static const char * filename()
static std::string format(double x, double y, int digits, int width)
#define VOID_METHOD_ARG0(klass, method, sync)
static const double x2[5]
#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...
#define DEBUG_PROFILE_PROXY_STOP(method)
static TVirtualX * fgRealObject
void Init(TClassEdit::TInterpreterLookupHelper *helper)
void SetLineType(CGContextRef ctx, Int_t n, Int_t *dash)
#define VOID_METHOD_ARG4(klass, method, type1, par1, type2, par2, type3, par3, type4, par4, sync)
static TVirtualX * RealObject()
void SendEvent(Window_t id, Event_t *ev)
Send event ev to window id.
virtual void SendEvent(Window_t id, Event_t *ev)
Specifies the event "ev" is to be sent to the window "id".
#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)
#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)
Double_t length(const TVector2 &v)
void DrawFillArea(CGContextRef ctx, Int_t n, TPoint *xy, Bool_t drawShadow)
void NextEvent(Event_t &event)
Process next event in the queue - if any.
#define RETURN_METHOD_ARG1(klass, type, method, type1, par1)
#define VOID_METHOD_ARG1(klass, method, type1, par1, sync)
void DrawPolyMarker(CGContextRef ctx, const std::vector< TPoint > &marker, Size_t markerSize, Style_t markerStyle)
virtual Int_t EventsPending()
Returns the number of events that have been received from the X server but have not been removed from...
#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)
Int_t EventsPending()
Return number of pending events.
static const double x1[5]
Window_t GetParent(Window_t id) const
might be thread unsafe (?)
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
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.
NSCursor * CreateCursor(ECursor currentCursor)
#define org(otri, vertexptr)
void DrawBox(CGContextRef ctx, Int_t x1, Int_t y1, Int_t x2, Int_t y2, bool hollow)
#define dest(otri, vertexptr)
VOID_METHOD_ARG3(VirtualX, SetTypeList, Window_t, win, Atom_t, prop, Atom_t *, typelist, 1)
#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 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".
#define DEBUG_PROFILE_PROXY_START(method)
Bool_t IsCmdThread() const
Return kTRUE if we are inside cmd/server thread.