Class UserDataKey

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.UserDataKey
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class UserDataKey extends ProxyInstance
Data structure for holding user-data keys.
  • Constructor Details

    • UserDataKey

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

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

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

      public UserDataKey(byte unused, Arena arena)
      Allocate a new UserDataKey with the fields set to the provided values.
      Parameters:
      unused - value for the field unused
      arena - to control the memory allocation scope
    • UserDataKey

      public UserDataKey(byte unused)
      Allocate a new UserDataKey with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      unused - value for the field unused
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the UserDataKey class.
      Returns:
      the GType
    • getMemoryLayout

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

      public byte readUnused()
      Read the value of the field unused.
      Returns:
      The value of the field unused
    • writeUnused

      public void writeUnused(byte unused)
      Write a value in the field unused.
      Parameters:
      unused - The new value for the field unused