[cairo] Re: cairo_surface_*_user_data in language bindings

Daniel Keep daniel.keep.lists at gmail.com
Sat May 6 22:30:16 PDT 2006


Christian Biesinger wrote:
> 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."
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo

Aah, thanks very much :)  Hashes and boxes it is, then!

	-- Daniel

-- 

v1sw5+8Yhw5ln4+5pr6OFma8u6+7Lw4Tm6+7l6+7D
a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP    http://hackerkey.com/



More information about the cairo mailing list