Alias cairo_write_func_t

cairo_write_func_t is the type of function which is called when a backend needs to write data to an output stream. It is passed the closure which was specified by the user at the time the write function was registered, the data to write and the length of the data in bytes. The write function should return CAIRO_STATUS_SUCCESS if all the data was successfully written, CAIRO_STATUS_WRITE_ERROR otherwise.

Declaration

alias cairo_write_func_t = extern(C) cairo_status_t function(void*, const(ubyte*), uint);

Parameters

NameDescription
closure the output closure
data the buffer containing the data to write
length the amount of data to write

Returns

the status code of the write operation

Authors

Johannes Pfau cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1