Hi:
I was experimenting with cairo and i need to call cairo_destroy
function explicitly. cairo_destroy its tagged with unref_function in
cairo.vapi but i dunno how to call it explicitly.
The reason is: "when using Clutter.CairoTexture you need to call
cairo_destroy on the cairo_context to actually draw on the texture."
So in vala i need to find a way to call that function.
cairo.vapi
----
[CCode (cheader_filename = "cairo.h", gir_namespace = "cairo",
gir_version = "1.0")]
namespace Cairo {
[Compact]
[CCode (ref_function = "cairo_reference", unref_function =
"cairo_destroy", cname = "cairo_t", cprefix = "cairo_",
cheader_filename = "cairo.h")]
public class Context {
[CCode (cname = "cairo_create")]
...
----
Thxs
--
El derecho de expresar nuestros pensamientos tiene algún significado
tan sólo si somos capaces de tener pensamientos propios.
El miedo a la libertad, Erich Fromm
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list