[Xr] Can the xrs argument be removed?
Keith Packard
keithp at keithp.com
Thu May 22 14:54:47 PDT 2003
Around 14 o'clock on May 22, Bill Spitzak wrote:
> Sorry I don't understand. That sounds exactly the same as what I was
> suggesting.
Sorry for being oblique.
1)
XrState *s = XrCreate ();
XrSetThreadState (s);
...
XrMoveTo (NULL, 10, 10);
XrLineTo (NULL, 20, 20);
XrStroke (NULL);
XrDestroy (NULL);
question -- what happens to the previous thread state?
2)
XrNewState ();
XrMoveTo (10, 10);
XrLineTo (20, 20);
XrStroke ();
XrDisposeState ();
question -- how to manage multiple states?
-keith
More information about the cairo
mailing list