Interface PixbufSaveFunc
- 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("org.javagi.JavaGI")
public interface PixbufSaveFunc
extends FunctionPointer
Functional interface declaration of the PixbufSaveFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanSave functions used byPixbuf.saveToCallback(PixbufSaveFunc, String, GError[], Object...).default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, long, MemorySegment, MemorySegment)method.default intupcall(MemorySegment buf, long count, MemorySegment error, MemorySegment data) Theupcallmethod is called from native code.
-
Method Details
-
run
Save functions used by
Pixbuf.saveToCallback(PixbufSaveFunc, String, GError[], Object...).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 seterrorand returnFALSE, in which casegdk_pixbuf_save_to_callback()will fail with the same error.- Parameters:
buf- bytes to be written.error- A location to return an error.- Returns:
TRUEif successful,FALSEotherwise- Since:
- 2.4
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(byte[], Out)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, long, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-