Package org.gnome.gdkpixbuf
Interface PixbufModuleSaveCallbackFunc
- 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 PixbufModuleSaveCallbackFunc
extends FunctionPointer
Functional interface declaration of the
PixbufModuleSaveCallbackFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrun(Pixbuf pixbuf, @Nullable String @Nullable [] optionKeys, @Nullable String @Nullable [] optionValues) Saves aGdkPixbufby calling the provided function.default MemorySegmenttoCallback(Arena arena) default intupcall(MemorySegment saveFunc, MemorySegment userData, MemorySegment pixbuf, MemorySegment optionKeys, MemorySegment optionValues, MemorySegment _gerrorPointer) Theupcallmethod is called from native code.
-
Method Details
-
run
boolean run(Pixbuf pixbuf, @Nullable String @Nullable [] optionKeys, @Nullable String @Nullable [] optionValues) throws GErrorException Saves aGdkPixbufby calling the provided function.The optional
option_keysandoption_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 saveFunc, MemorySegment userData, MemorySegment pixbuf, MemorySegment optionKeys, MemorySegment optionValues, MemorySegment _gerrorPointer) Theupcallmethod is called from native code. The parameters are marshaled andrun(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, 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
-