Package org.gnome.gobject
Class SignalQuery
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.SignalQuery
- All Implemented Interfaces:
Proxy
A structure holding in-depth information for a specific signal.
See also: g_signal_query()
-
Constructor Summary
ConstructorDescriptionAllocate a new SignalQuery.SignalQuery
(int signalId, String signalName, Type itype, Set<SignalFlags> signalFlags, Type returnType, int nParams, Type[] paramTypes) Allocate a new SignalQuery with the fields set to the provided values.SignalQuery
(int signalId, String signalName, Type itype, Set<SignalFlags> signalFlags, Type returnType, int nParams, Type[] paramTypes, Arena arena) Allocate a new SignalQuery with the fields set to the provided values.SignalQuery
(Arena arena) Allocate a new SignalQuery.SignalQuery
(MemorySegment address) Create a SignalQuery 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 fielditype
.int
Read the value of the fieldn_params
.Type[]
Read the value of the fieldparam_types
.Read the value of the fieldreturn_type
.Read the value of the fieldsignal_flags
.int
Read the value of the fieldsignal_id
.Read the value of the fieldsignal_name
.void
writeItype
(Type itype) Write a value in the fielditype
.void
writeNParams
(int nParams) Write a value in the fieldn_params
.void
writeParamTypes
(Type[] paramTypes, Arena _arena) Write a value in the fieldparam_types
.void
writeReturnType
(Type returnType) Write a value in the fieldreturn_type
.void
writeSignalFlags
(Set<SignalFlags> signalFlags) Write a value in the fieldsignal_flags
.void
writeSignalId
(int signalId) Write a value in the fieldsignal_id
.void
writeSignalName
(String signalName, Arena _arena) Write a value in the fieldsignal_name
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
SignalQuery
Create a SignalQuery proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
SignalQuery
Allocate a new SignalQuery.- Parameters:
arena
- to control the memory allocation scope
-
SignalQuery
public SignalQuery()Allocate a new SignalQuery. The memory is allocated withArena.ofAuto()
. -
SignalQuery
public SignalQuery(int signalId, String signalName, Type itype, Set<SignalFlags> signalFlags, Type returnType, int nParams, Type[] paramTypes, Arena arena) Allocate a new SignalQuery with the fields set to the provided values.- Parameters:
signalId
- value for the fieldsignalId
signalName
- value for the fieldsignalName
itype
- value for the fielditype
signalFlags
- value for the fieldsignalFlags
returnType
- value for the fieldreturnType
nParams
- value for the fieldnParams
paramTypes
- value for the fieldparamTypes
arena
- to control the memory allocation scope
-
SignalQuery
public SignalQuery(int signalId, String signalName, Type itype, Set<SignalFlags> signalFlags, Type returnType, int nParams, Type[] paramTypes) Allocate a new SignalQuery with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
signalId
- value for the fieldsignalId
signalName
- value for the fieldsignalName
itype
- value for the fielditype
signalFlags
- value for the fieldsignalFlags
returnType
- value for the fieldreturnType
nParams
- value for the fieldnParams
paramTypes
- value for the fieldparamTypes
-
-
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
-
readSignalName
Read the value of the fieldsignal_name
.- Returns:
- The value of the field
signal_name
-
writeSignalName
-
readItype
-
writeItype
Write a value in the fielditype
.- Parameters:
itype
- The new value for the fielditype
-
readSignalFlags
Read the value of the fieldsignal_flags
.- Returns:
- The value of the field
signal_flags
-
writeSignalFlags
Write a value in the fieldsignal_flags
.- Parameters:
signalFlags
- The new value for the fieldsignal_flags
-
readReturnType
Read the value of the fieldreturn_type
.- Returns:
- The value of the field
return_type
-
writeReturnType
Write a value in the fieldreturn_type
.- Parameters:
returnType
- The new value for the fieldreturn_type
-
readNParams
public int readNParams()Read the value of the fieldn_params
.- Returns:
- The value of the field
n_params
-
writeNParams
public void writeNParams(int nParams) Write a value in the fieldn_params
.- Parameters:
nParams
- The new value for the fieldn_params
-
readParamTypes
Read the value of the fieldparam_types
.- Returns:
- The value of the field
param_types
-
writeParamTypes
-