Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!athena.mit.edu!jstravis From: jstravis@athena.mit.edu (John S. Travis) Newsgroups: comp.windows.x Subject: Drawables Message-ID: <15320@bloom-beacon.MIT.EDU> Date: 23 Oct 89 19:09:56 GMT References: <8910122202.AA01845@iceland.steinmetz.ge.com> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: jstravis@athena.mit.edu (John S. Travis) Organization: Massachusetts Institute of Technology Lines: 22 Widgets and Pixmaps and other stuff are often reffered to as drawables. I have a program that calls various functions to write on a widget. I now would also like to write to a Pixmap. Must i recopy my various functions and set the parameter as Pixmap or is there Drawable declaration that covers both. Writing this i realize it's a silly question, but can i get around this. Send the Pixmap cast a Widget--this seems like ity could never work, but i'm an amteur so tell me if it would. Example simple function below, thanks. john travis jstravis@athena.mit.edu Widget w; GC gc; int x,y,x2,y2; { Display *dpy =XtDisplay(w); Window win = XtWindow(w); check_points(&x,&y,&x2,&y2); XFillArc(dpy,win,gc,x,y,x2-x,y2-y,0,64 * 360); }