Package org.gnome.gdkpixbuf
Interface PixbufModuleSaveFunc
- 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 PixbufModuleSaveFunc
extends FunctionPointer
Functional interface declaration of the
PixbufModuleSaveFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrun(@Nullable MemorySegment f, Pixbuf pixbuf, @Nullable String @Nullable [] paramKeys, @Nullable String @Nullable [] paramValues) Saves aGdkPixbufinto a standard C file stream.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 intupcall(MemorySegment f, MemorySegment pixbuf, MemorySegment paramKeys, MemorySegment paramValues, MemorySegment _gerrorPointer) Theupcallmethod is called from native code.
-
Method Details
-
run
boolean run(@Nullable MemorySegment f, Pixbuf pixbuf, @Nullable String @Nullable [] paramKeys, @Nullable String @Nullable [] paramValues) throws GErrorException Saves aGdkPixbufinto a standard C file stream.The optional
param_keysandparam_valuesarrays contain the keys and values (in the same order) for attributes to be saved alongside the image data.- Throws:
GErrorException
-
upcall
default int upcall(MemorySegment f, MemorySegment pixbuf, MemorySegment paramKeys, MemorySegment paramValues, MemorySegment _gerrorPointer) Theupcallmethod is called from native code. The parameters are marshaled andrun(java.lang.foreign.MemorySegment, org.gnome.gdkpixbuf.Pixbuf, java.lang.String[], java.lang.String[])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
-