Package org.gnome.gobject
Class SignalInvocationHint
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.SignalInvocationHint
- All Implemented Interfaces:
Proxy
The
GSignalInvocationHint
structure is used to pass on additional information
to callbacks during a signal emission.-
Constructor Summary
ConstructorDescriptionAllocate a new SignalInvocationHint.SignalInvocationHint
(int signalId, Quark detail, Set<SignalFlags> runType) Allocate a new SignalInvocationHint with the fields set to the provided values.SignalInvocationHint
(int signalId, Quark detail, Set<SignalFlags> runType, Arena arena) Allocate a new SignalInvocationHint with the fields set to the provided values.SignalInvocationHint
(Arena arena) Allocate a new SignalInvocationHint.SignalInvocationHint
(MemorySegment address) Create a SignalInvocationHint proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.Read the value of the fielddetail
.Read the value of the fieldrun_type
.int
Read the value of the fieldsignal_id
.void
writeDetail
(Quark detail) Write a value in the fielddetail
.void
writeRunType
(Set<SignalFlags> runType) Write a value in the fieldrun_type
.void
writeSignalId
(int signalId) Write a value in the fieldsignal_id
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
SignalInvocationHint
Create a SignalInvocationHint proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
SignalInvocationHint
Allocate a new SignalInvocationHint.- Parameters:
arena
- to control the memory allocation scope
-
SignalInvocationHint
public SignalInvocationHint()Allocate a new SignalInvocationHint. The memory is allocated withArena.ofAuto()
. -
SignalInvocationHint
Allocate a new SignalInvocationHint with the fields set to the provided values.- Parameters:
signalId
- value for the fieldsignalId
detail
- value for the fielddetail
runType
- value for the fieldrunType
arena
- to control the memory allocation scope
-
SignalInvocationHint
Allocate a new SignalInvocationHint with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
signalId
- value for the fieldsignalId
detail
- value for the fielddetail
runType
- value for the fieldrunType
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readSignalId
public int readSignalId()Read the value of the fieldsignal_id
.- Returns:
- The value of the field
signal_id
-
writeSignalId
public void writeSignalId(int signalId) Write a value in the fieldsignal_id
.- Parameters:
signalId
- The new value for the fieldsignal_id
-
readDetail
Read the value of the fielddetail
.- Returns:
- The value of the field
detail
-
writeDetail
Write a value in the fielddetail
.- Parameters:
detail
- The new value for the fielddetail
-
readRunType
Read the value of the fieldrun_type
.- Returns:
- The value of the field
run_type
-
writeRunType
Write a value in the fieldrun_type
.- Parameters:
runType
- The new value for the fieldrun_type
-