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 TypeMethodDescriptionboolean
Saves aGdkPixbuf
by calling the provided function.default MemorySegment
toCallback
(Arena arena) default int
upcall
(MemorySegment saveFunc, MemorySegment userData, MemorySegment pixbuf, MemorySegment optionKeys, MemorySegment optionValues, MemorySegment _gerrorPointer) Theupcall
method is called from native code.
-
Method Details
-
run
boolean run(Pixbuf pixbuf, @Nullable @Nullable String[] optionKeys, @Nullable @Nullable String[] optionValues) throws GErrorException Saves aGdkPixbuf
by calling the provided function.The optional
option_keys
andoption_values
arrays 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) Theupcall
method 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:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-