PixbufModuleBeginLoadFunc


Description:

[ CCode ( has_typedef = false , instance_pos = 3.9 ) ]
public delegate void* PixbufModuleBeginLoadFunc (PixbufModuleSizeFunc size_func, PixbufModulePreparedFunc prepared_func, PixbufModuleUpdatedFunc updated_func) throws Error

Sets up the image loading state.

The image loader is responsible for storing the given function pointers and user data, and call them when needed.

The image loader should set up an internal state object, and return it from this function; the state object will then be updated from the [callback@GdkPixbuf.PixbufModuleIncrementLoadFunc] callback, and will be freed by [callback@GdkPixbuf.PixbufModuleStopLoadFunc] callback.

Parameters:

size_func

the function to be called when the size is known

prepared_func

the function to be called when the data has been prepared

updated_func

the function to be called when the data has been updated

user_data

the data to be passed to the functions

Returns:

the data to be passed to [callback@GdkPixbuf.PixbufModuleIncrementLoadFunc] and [callback@GdkPixbuf.PixbufModuleStopLoadFunc], or `NULL` in case of error


Namespace: Gdk
Package: gdk-pixbuf-2.0