5.13 GdkPixbufSaveFunc

Callback: GdkPixbufSaveFunc

A procedure given for it is called as (procedure buf) ⇒ %return error.

Save functions used by GdkPixbuf.Pixbuf.save_to_callback.

This function is called once for each block of bytes that is "written" by gdk_pixbuf_save_to_callback().

If successful it should return TRUE; if an error occurs it should set error and return FALSE, in which case gdk_pixbuf_save_to_callback() will fail with the same error.

buf

Passed: a bytevector.

bytes to be written.

%return

Returned: a boolean.

TRUE if successful, FALSE otherwise

error

Returned: a <GError>.

A location to return an error.

count

Not passed: guile-gi gives the length of buf.

number of bytes in buf.

data

Not passed: it is the user data that guile-gi supplied.

user data passed to gdk_pixbuf_save_to_callback().