Package org.gnome.gobject
Class ClosureNotifyData
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.ClosureNotifyData
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorDescriptionAllocate a new ClosureNotifyData.ClosureNotifyData
(Arena arena) Allocate a new ClosureNotifyData.ClosureNotifyData
(MemorySegment address) Create a ClosureNotifyData proxy instance for the provided memory address.ClosureNotifyData
(MemorySegment data, ClosureNotify notify) Allocate a new ClosureNotifyData with the fields set to the provided values.ClosureNotifyData
(MemorySegment data, ClosureNotify notify, Arena arena) Allocate a new ClosureNotifyData with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.readData()
Read the value of the fielddata
.Read the value of the fieldnotify
.void
writeData
(MemorySegment data) Write a value in the fielddata
.void
writeNotify
(ClosureNotify notify, Arena _arena) Write a value in the fieldnotify
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ClosureNotifyData
Create a ClosureNotifyData proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
ClosureNotifyData
Allocate a new ClosureNotifyData.- Parameters:
arena
- to control the memory allocation scope
-
ClosureNotifyData
public ClosureNotifyData()Allocate a new ClosureNotifyData. The memory is allocated withArena.ofAuto()
. -
ClosureNotifyData
Allocate a new ClosureNotifyData with the fields set to the provided values.- Parameters:
data
- value for the fielddata
notify
- value for the fieldnotify
arena
- to control the memory allocation scope
-
ClosureNotifyData
Allocate a new ClosureNotifyData with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
data
- value for the fielddata
notify
- value for the fieldnotify
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readData
Read the value of the fielddata
.- Returns:
- The value of the field
data
-
writeData
Write a value in the fielddata
.- Parameters:
data
- The new value for the fielddata
-
readNotify
Read the value of the fieldnotify
.- Returns:
- The value of the field
notify
-
writeNotify
Write a value in the fieldnotify
.- Parameters:
notify
- The new value for the fieldnotify
_arena
- to control the memory allocation scope
-