Pete Collins wrote:
I am doing some experiments using nsIRenderingContext->FillEllipse() to do some primitive drawing.

eg:

    mRenderingContext->SetColor(mPenColor);
    mRenderingContext->FillEllipse(rect);
    mRenderingContext->PushState();

I am grabbing an existing nsIFrame, then I create a rendering context from this frame.

Does anyone know a way to persist the newly drawn state so that it will remain whenever there is a refresh or repaint to the underlying nsIFrame?

There is no way to do that. Refreshes and repaints cause paint events to be dispatched; the only way to make sure your state persists is to repaint it on every paint event, and of course they aren't DOM events.


This sounds like a job for SVG.

Rob

_______________________________________________
mozilla-layout mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to