Package org.gnome.glib
Class SourceCallbackFuncs
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.glib.SourceCallbackFuncs
- All Implemented Interfaces:
Proxy
The
GSourceCallbackFuncs struct contains
functions for managing callback objects.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface declaration of theGetCallbackcallback.static interfaceFunctional interface declaration of theRefCallbackcallback.static interfaceFunctional interface declaration of theUnrefCallbackcallback. -
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new SourceCallbackFuncs.SourceCallbackFuncs(Arena arena) Allocate a new SourceCallbackFuncs.SourceCallbackFuncs(MemorySegment address) Create a SourceCallbackFuncs proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.voidoverrideGet(SourceCallbackFuncs.GetCallback get, Arena _arena) Write a value in the fieldget.voidoverrideRef(SourceCallbackFuncs.RefCallback ref, Arena _arena) Write a value in the fieldref.voidoverrideUnref(SourceCallbackFuncs.UnrefCallback unref, Arena _arena) Write a value in the fieldunref.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
SourceCallbackFuncs
Create a SourceCallbackFuncs proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
SourceCallbackFuncs
Allocate a new SourceCallbackFuncs.- Parameters:
arena- to control the memory allocation scope
-
SourceCallbackFuncs
public SourceCallbackFuncs()Allocate a new SourceCallbackFuncs. The memory is allocated withArena.ofAuto().
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideRef
Write a value in the fieldref.- Parameters:
ref- The new value for the fieldref_arena- to control the memory allocation scope
-
overrideUnref
Write a value in the fieldunref.- Parameters:
unref- The new value for the fieldunref_arena- to control the memory allocation scope
-
overrideGet
Write a value in the fieldget.- Parameters:
get- The new value for the fieldget_arena- to control the memory allocation scope
-