Package org.gnome.gdkpixbuf
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("io.github.jwharm.JavaGI")
public interface PixbufSaveFunc
extends FunctionPointer
Functional interface declaration of the
PixbufSaveFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleandefault MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, long, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default intupcall(MemorySegment buf, long count, MemorySegment error, MemorySegment data) Theupcallmethod is called from native code.
-
Method Details
-
run
Save functions used byPixbuf.saveToCallback(org.gnome.gdkpixbuf.PixbufSaveFunc, java.lang.String, org.gnome.glib.GError[], java.lang.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.- Since:
- 2.4
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(byte[], org.javagi.base.Out<org.gnome.glib.GError>)is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, long, 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
-