[cairo] Can I tell if cairo_image_surface_create_with_data() was called?
Behdad Esfahbod
behdad at behdad.org
Tue Sep 16 21:04:49 PDT 2008
Bill Spitzak wrote:
> Is there a way to tell if a cairo_surface_t was created with
> cairo_image_surface_create_with_data() as opposed to
> cairo_image_surface_create()? Basically I want to know whether it owns
> the data.
>
> It must know this because the destructor needs to know it so it can free
> the data.
You can schedule a free using the user_data mechanism.
behdad
> This call would be somewhat useful and it would keep with the idea of
> being able to query all the arguments passed to constructors for all
> Cairo objects.
More information about the cairo
mailing list