[Xr] Help !!! GTK and Xr
Carl Worth
cworth at east.isi.edu
Mon Apr 28 17:47:06 PDT 2003
On Apr 28, Soorya Kuloor wrote:
> On Mon, 2003-04-28 at 16:08, Owen Taylor wrote:
> > If you are called in an expose() handler, you probably need to
> > use
Owen, thanks for the answer. I assumed it was something like this, but
I'm mostly ignorant of GTK+, so I wasn't going to be much help.
> > > 2. I do not understand what to do with the GC object
> >
> > Why do you think you need a GC?
>
> The SWT toolkit's examples use drawing on the GC object for 2D stuff
> when using their drawing routines. This is where I got confused.
It may be that the meaning of the term GC is overloaded in the
discussion.
For X at least, you don't draw "onto" a GC, but instead the GC
stores graphics drawing state for the core rendering routines,
(eg. XDrawLines, XPutImage, etc.).
With Xr, the XrState object serves a similar role. Xr provides an
alternative rendering interface, so you should never need the core
rendering routines, nor a GC.
-Carl
--
Carl Worth
USC Information Sciences Institute cworth at isi.edu
More information about the cairo
mailing list