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(@Nullable PixbufModuleSizeFunc sizeFunc, @Nullable PixbufModulePreparedFunc preparedFunc) Sets up the image loading state.default MemorySegmenttoCallback(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 MemorySegmentupcall(MemorySegment sizeFunc, MemorySegment preparedFunc, MemorySegment updatedFunc, MemorySegment userData, MemorySegment _gerrorPointer) Theupcallmethod is called from native code.
-
Method Details
-
run
MemorySegment run(@Nullable PixbufModuleSizeFunc sizeFunc, @Nullable 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.PixbufModuleIncrementLoadFunccallback, and will be freed byGdkPixbuf.PixbufModuleStopLoadFunccallback.- Throws:
GErrorException
-
upcall
default MemorySegment upcall(MemorySegment sizeFunc, MemorySegment preparedFunc, MemorySegment updatedFunc, MemorySegment userData, MemorySegment _gerrorPointer) Theupcallmethod 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:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-