Package org.gnome.glib
Class SourceCallbackFuncs
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.glib.SourceCallbackFuncs
- All Implemented Interfaces:
Proxy
The
GSourceCallbackFuncs
struct contains
functions for managing callback objects.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Functional interface declaration of theGetCallback
callback.static interface
Functional interface declaration of theRefCallback
callback.static interface
Functional interface declaration of theUnrefCallback
callback. -
Constructor Summary
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.void
overrideGet
(SourceCallbackFuncs.GetCallback get, Arena _arena) Write a value in the fieldget
.void
overrideRef
(SourceCallbackFuncs.RefCallback ref, Arena _arena) Write a value in the fieldref
.void
overrideUnref
(SourceCallbackFuncs.UnrefCallback unref, Arena _arena) Write a value in the fieldunref
.Methods inherited from class io.github.jwharm.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
-