Class SignalInvocationHint

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

@Generated("org.javagi.JavaGI") public class SignalInvocationHint extends ProxyInstance
The GSignalInvocationHint structure is used to pass on additional information to callbacks during a signal emission.
  • Constructor Details

    • SignalInvocationHint

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

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

      public SignalInvocationHint()
      Allocate a new SignalInvocationHint. The memory is allocated with Arena.ofAuto().
    • SignalInvocationHint

      public SignalInvocationHint(int signalId, Quark detail, Set<SignalFlags> runType, Arena arena)
      Allocate a new SignalInvocationHint with the fields set to the provided values.
      Parameters:
      signalId - value for the field signalId
      detail - value for the field detail
      runType - value for the field runType
      arena - to control the memory allocation scope
    • SignalInvocationHint

      public SignalInvocationHint(int signalId, Quark detail, Set<SignalFlags> runType)
      Allocate a new SignalInvocationHint with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      signalId - value for the field signalId
      detail - value for the field detail
      runType - value for the field runType
  • 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
    • readDetail

      public Quark readDetail()
      Read the value of the field detail.
      Returns:
      The value of the field detail
    • writeDetail

      public void writeDetail(Quark detail)
      Write a value in the field detail.
      Parameters:
      detail - The new value for the field detail
    • readRunType

      public Set<SignalFlags> readRunType()
      Read the value of the field run_type.
      Returns:
      The value of the field run_type
    • writeRunType

      public void writeRunType(Set<SignalFlags> runType)
      Write a value in the field run_type.
      Parameters:
      runType - The new value for the field run_type