[cairo] Notification when a surface gets dirtied

Mike Emmel mike.emmel at gmail.com
Fri Nov 18 05:51:04 PST 2005


It would be nice if cairo exported the function since then all the
backends could implement it.
In particular glitz and DirectFB.  Btw what is the use case for this ?

On 11/18/05, Alexander Larsson <alexl at redhat.com> wrote:
> On Thu, 2005-11-17 at 12:45 -0600, Federico Mena Quintero wrote:
> > Hi,
> >
> > Short story:  I'd like to have a way to get notified when a surface gets
> > written to.  For example,
> >
> >   typedef (* SurfaceModifiedFunc) (cairo_surface_t *surface,
> >                                    Rectangle        dirty_rect,
> >                                    void            *user_data);
> >
> >   void cairo_surface_set_dirty_notify_func (cairo_surface_t    *surface,
> >                                             SurfaceModifiedFunc callback,
> >                                             void               *user_data);
> >
> > Does that make sense?  It's similar in spirit to XDAMAGE, but for Cairo surfaces.
>
> Can you not just draw into a pixmap and actually use XDAMAGE?
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Alexander Larsson                                            Red Hat, Inc
>                    alexl at redhat.com    alla at lysator.liu.se
> He's a suave Jewish jungle king fleeing from a secret government programme.
> She's a man-hating African-American socialite with only herself to blame. They
> fight crime!
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
>


More information about the cairo mailing list