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("org.javagi.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(MemorySegment, MemorySegment, MemorySegment, MemorySegment, 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 a
GdkPixbufinto 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.- Parameters:
f- the file stream into which the image should be savedpixbuf- the image to saveparamKeys- parameter keys to saveparamValues- parameter values to save- Returns:
TRUEon success; in case of failure,FALSEis returned and theerroris set- Throws:
GErrorException- seeGError
-
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(MemorySegment, Pixbuf, String[], String[])is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-