Package org.gnome.gio
Interface Settings.ChangeEventCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
Settings
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface declaration of the
ChangeEventCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The "change-event" signal is emitted once per change event that affects this settings object.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, int)
method.default int
upcall
(MemorySegment sourceSettings, MemorySegment keys, int nKeys) Theupcall
method is called from native code.
-
Method Details
-
run
The "change-event" signal is emitted once per change event that affects this settings object. You should connect to this signal only if you are interested in viewing groups of changes before they are split out into multiple emissions of the "changed" signal. For most use cases it is more appropriate to use the "changed" signal.In the event that the change event applies to one or more specified keys,
keys
will be an array ofGQuark
of lengthnKeys
. In the event that the change event applies to theGSettings
object as a whole (ie: potentially every key has been changed) thenkeys
will benull
andnKeys
will be 0.The default handler for this signal invokes the "changed" signal for each affected key. If any other connected handler returns
true
then this default functionality will be suppressed. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.glib.Quark[])
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, int)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-