Interface Settings.WritableChangeEventCallback
- 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.
WritableChangeEventCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrun(int key) Emitted once per writability change event that affects this settings object.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, int)method.default intupcall(MemorySegment sourceSettings, int key) Theupcallmethod is called from native code.
-
Method Details
-
run
boolean run(int key) Emitted once per writability change event that affects this settings object.You should connect to this signal if you are interested in viewing groups of changes before they are split out into multiple emissions of the
Gio.Settings::writable-changedsignal. For most use cases it is more appropriate to use theGio.Settings::writable-changedsignal.In the event that the writability change applies only to a single key,
keywill be set to theGLib.Quarkfor that key. In the event that the writability change affects the entire settings object,keywill be0.The default handler for this signal invokes the
Gio.Settings::writable-changedandGio.Settings::changedsignals for each affected key. This is done because changes in writability might also imply changes in value (if for example, a new mandatory setting is introduced). If any other connected handler returns true then this default functionality will be suppressed. -
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(int)is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, int)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-