Package org.gnome.gio
Interface SettingsGetMapping
- 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 SettingsGetMapping
extends FunctionPointer
Functional interface declaration of the
SettingsGetMapping
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
run
(Variant value, @Nullable Out<MemorySegment> result) The type of the function that is used to convert from a value stored in aGSettings
to a value that is useful to the application.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment value, MemorySegment result, MemorySegment userData) Theupcall
method is called from native code.
-
Method Details
-
run
The type of the function that is used to convert from a value stored in aGSettings
to a value that is useful to the application.If the value is successfully mapped, the result should be stored at
result
andtrue
returned. If mapping fails (for example, ifvalue
is not in the right format) thenfalse
should be returned.If
value
isnull
then it means that the mapping function is being given a "last chance" to successfully return a valid value.true
must be returned in this case. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.glib.Variant, io.github.jwharm.javagi.base.Out<java.lang.foreign.MemorySegment>)
is executed. -
toCallback
Creates a native function pointer to theupcall(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
-