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 TypeMethodDescriptionboolean
run
(@Nullable MemorySegment f, Pixbuf pixbuf, @Nullable String[] paramKeys, @Nullable String[] paramValues) Saves aGdkPixbuf
into a standard C file stream.default MemorySegment
toCallback
(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 int
upcall
(MemorySegment f, MemorySegment pixbuf, MemorySegment paramKeys, MemorySegment paramValues, MemorySegment _gerrorPointer) Theupcall
method is called from native code.
-
Method Details
-
run
boolean run(@Nullable @Nullable MemorySegment f, Pixbuf pixbuf, @Nullable @Nullable String[] paramKeys, @Nullable @Nullable String[] paramValues) throws GErrorException Saves aGdkPixbuf
into a standard C file stream.The optional
param_keys
andparam_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 f, MemorySegment pixbuf, MemorySegment paramKeys, MemorySegment paramValues, MemorySegment _gerrorPointer) Theupcall
method 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:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-