Class SignalQuery

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.SignalQuery
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class SignalQuery extends ProxyInstance

A structure holding in-depth information for a specific signal.

See also: g_signal_query()

  • Constructor Details

    • SignalQuery

      public SignalQuery(MemorySegment address)
      Create a SignalQuery proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • SignalQuery

      public SignalQuery(Arena arena)
      Allocate a new SignalQuery.
      Parameters:
      arena - to control the memory allocation scope
    • SignalQuery

      public SignalQuery()
      Allocate a new SignalQuery. The memory is allocated with Arena.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 field signalId
      signalName - value for the field signalName
      itype - value for the field itype
      signalFlags - value for the field signalFlags
      returnType - value for the field returnType
      nParams - value for the field nParams
      paramTypes - value for the field paramTypes
      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 with Arena.ofAuto().
      Parameters:
      signalId - value for the field signalId
      signalName - value for the field signalName
      itype - value for the field itype
      signalFlags - value for the field signalFlags
      returnType - value for the field returnType
      nParams - value for the field nParams
      paramTypes - value for the field paramTypes
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readSignalId

      public int readSignalId()
      Read the value of the field signal_id.
      Returns:
      The value of the field signal_id
    • writeSignalId

      public void writeSignalId(int signalId)
      Write a value in the field signal_id.
      Parameters:
      signalId - The new value for the field signal_id
    • readSignalName

      public String readSignalName()
      Read the value of the field signal_name.
      Returns:
      The value of the field signal_name
    • writeSignalName

      public void writeSignalName(String signalName, Arena _arena)
      Write a value in the field signal_name.
      Parameters:
      signalName - The new value for the field signal_name
      _arena - to control the memory allocation scope
    • readItype

      public Type readItype()
      Read the value of the field itype.
      Returns:
      The value of the field itype
    • writeItype

      public void writeItype(Type itype)
      Write a value in the field itype.
      Parameters:
      itype - The new value for the field itype
    • readSignalFlags

      public Set<SignalFlags> readSignalFlags()
      Read the value of the field signal_flags.
      Returns:
      The value of the field signal_flags
    • writeSignalFlags

      public void writeSignalFlags(Set<SignalFlags> signalFlags)
      Write a value in the field signal_flags.
      Parameters:
      signalFlags - The new value for the field signal_flags
    • readReturnType

      public Type readReturnType()
      Read the value of the field return_type.
      Returns:
      The value of the field return_type
    • writeReturnType

      public void writeReturnType(Type returnType)
      Write a value in the field return_type.
      Parameters:
      returnType - The new value for the field return_type
    • readNParams

      public int readNParams()
      Read the value of the field n_params.
      Returns:
      The value of the field n_params
    • writeNParams

      public void writeNParams(int nParams)
      Write a value in the field n_params.
      Parameters:
      nParams - The new value for the field n_params
    • readParamTypes

      public @Nullable Type @Nullable [] readParamTypes()
      Read the value of the field param_types.
      Returns:
      The value of the field param_types
    • writeParamTypes

      public void writeParamTypes(@Nullable Type @Nullable [] paramTypes, Arena _arena)
      Write a value in the field param_types.
      Parameters:
      paramTypes - The new value for the field param_types
      _arena - to control the memory allocation scope