Package org.gnome.gobject
Class SignalQuery
java.lang.Object
org.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
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.Read the value of the fielditype.intRead the value of the fieldn_params.@Nullable Type @Nullable []Read the value of the fieldparam_types.Read the value of the fieldreturn_type.Read the value of the fieldsignal_flags.intRead the value of the fieldsignal_id.Read the value of the fieldsignal_name.voidwriteItype(Type itype) Write a value in the fielditype.voidwriteNParams(int nParams) Write a value in the fieldn_params.voidwriteParamTypes(@Nullable Type @Nullable [] paramTypes, Arena _arena) Write a value in the fieldparam_types.voidwriteReturnType(Type returnType) Write a value in the fieldreturn_type.voidwriteSignalFlags(Set<SignalFlags> signalFlags) Write a value in the fieldsignal_flags.voidwriteSignalId(int signalId) Write a value in the fieldsignal_id.voidwriteSignalName(String signalName, Arena _arena) Write a value in the fieldsignal_name.Methods inherited from class org.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 fieldsignalIdsignalName- value for the fieldsignalNameitype- value for the fielditypesignalFlags- value for the fieldsignalFlagsreturnType- value for the fieldreturnTypenParams- value for the fieldnParamsparamTypes- value for the fieldparamTypesarena- 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 fieldsignalIdsignalName- value for the fieldsignalNameitype- value for the fielditypesignalFlags- value for the fieldsignalFlagsreturnType- value for the fieldreturnTypenParams- value for the fieldnParamsparamTypes- 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
-