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 TypeMethodDescriptionboolean
default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, long, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment buf, long count, MemorySegment error, MemorySegment data) Theupcall
method 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 seterror
and returnFALSE
, in which casegdk_pixbuf_save_to_callback()
will fail with the same error. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(byte[], io.github.jwharm.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:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-