Package org.gnome.gdkpixbuf
Interface PixbufModuleBeginLoadFunc
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Generated("io.github.jwharm.JavaGI")
public interface PixbufModuleBeginLoadFunc
extends FunctionPointer
Functional interface declaration of the
PixbufModuleBeginLoadFunc
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun
(PixbufModuleSizeFunc sizeFunc, PixbufModulePreparedFunc preparedFunc) Sets up the image loading state.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default MemorySegment
upcall
(MemorySegment sizeFunc, MemorySegment preparedFunc, MemorySegment updatedFunc, MemorySegment userData, MemorySegment _gerrorPointer) Theupcall
method is called from native code.
-
Method Details
-
run
MemorySegment run(PixbufModuleSizeFunc sizeFunc, PixbufModulePreparedFunc preparedFunc) throws GErrorException 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
GdkPixbuf.PixbufModuleIncrementLoadFunc
callback, and will be freed byGdkPixbuf.PixbufModuleStopLoadFunc
callback.- Throws:
GErrorException
-
upcall
default MemorySegment upcall(MemorySegment sizeFunc, MemorySegment preparedFunc, MemorySegment updatedFunc, MemorySegment userData, MemorySegment _gerrorPointer) Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gdkpixbuf.PixbufModuleSizeFunc, org.gnome.gdkpixbuf.PixbufModulePreparedFunc)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-