On Tue, 6 Jun 2000, Volker Braun wrote:
> Dear Dia list,
>
> I would like to implement an object that renders differently
> with different renderers. But there seems to be no way to
> tell which renderer is passed to the object's draw method.
>
> The obvious solution would be a special type field in
> the struct, and macros to query it as in gtk. Any thoughts
> on that?
>
> Specifically my wysiwyg TeX object should render as TeX source
> (string) for pstricks output, and bitmap otherwise. Is there
> any other way to do this?
Well, as this object is really meant for use with the pstricks plugin, I
would make it part of that plugin. Then you could easily check to see if
renderer->ops equals PstricksRenderOps.
>
> Volker
>
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/