Package org.gnome.gobject
Class ClosureNotifyData
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.ClosureNotifyData
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.readData()Read the value of the fielddata.@Nullable ClosureNotifyRead the value of the fieldnotify.voidwriteData(MemorySegment data) Write a value in the fielddata.voidwriteNotify(@Nullable ClosureNotify notify, Arena _arena) Write a value in the fieldnotify.Methods inherited from class org.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 fielddatanotify- value for the fieldnotifyarena- 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 fielddatanotify- 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
-