Class TypeFundamentalInfo

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

@Generated("org.javagi.JavaGI") public class TypeFundamentalInfo extends ProxyInstance
A structure that provides information to the type system which is used specifically for managing fundamental types.
  • Constructor Details

    • TypeFundamentalInfo

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

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

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

      public TypeFundamentalInfo(Set<TypeFundamentalFlags> typeFlags, Arena arena)
      Allocate a new TypeFundamentalInfo with the fields set to the provided values.
      Parameters:
      typeFlags - value for the field typeFlags
      arena - to control the memory allocation scope
    • TypeFundamentalInfo

      public TypeFundamentalInfo(Set<TypeFundamentalFlags> typeFlags)
      Allocate a new TypeFundamentalInfo with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      typeFlags - value for the field typeFlags
  • Method Details

    • getMemoryLayout

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

      public Set<TypeFundamentalFlags> readTypeFlags()
      Read the value of the field type_flags.
      Returns:
      The value of the field type_flags
    • writeTypeFlags

      public void writeTypeFlags(Set<TypeFundamentalFlags> typeFlags)
      Write a value in the field type_flags.
      Parameters:
      typeFlags - The new value for the field type_flags