[cairo] cairo_surface_*_user_data in language bindings

Christian Biesinger cbiesinger at web.de
Sat May 6 09:13:58 PDT 2006


Daniel Keep wrote:
> get/set_user_data functions.
> 
> Basically: are these ever *required* for use of the api?  For example,
> does one of the backends ask the programmer to place extra information
> in a surface using these functions?

They're called "user data" because they're for the user... (So the 
answer is "no")

> If the answer is "no", then I can cheat and just implement them using
> hashes and boxes (which also means I don't have to worry about the GC) :)

Note http://cairographics.org/manual/bindings-surfaces.html which says:
"The cairo_surface_set_user_data(), and cairo_surface_get_user_data() 
methods are provided for use in language bindings, and should not be 
directly exposed to applications."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4762 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060506/9e98d7e3/smime.bin


More information about the cairo mailing list