Class FlagsClass

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

@Generated("org.javagi.JavaGI") public class FlagsClass extends ProxyInstance
The class of a flags type holds information about its possible values.
  • Constructor Details

    • FlagsClass

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

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

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

      public FlagsClass(TypeClass gTypeClass, int mask, int nValues, FlagsValue[] values, Arena arena)
      Allocate a new FlagsClass with the fields set to the provided values.
      Parameters:
      gTypeClass - value for the field gTypeClass
      mask - value for the field mask
      nValues - value for the field nValues
      values - value for the field values
      arena - to control the memory allocation scope
    • FlagsClass

      public FlagsClass(TypeClass gTypeClass, int mask, int nValues, FlagsValue[] values)
      Allocate a new FlagsClass with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      gTypeClass - value for the field gTypeClass
      mask - value for the field mask
      nValues - value for the field nValues
      values - value for the field values
  • Method Details

    • getMemoryLayout

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

      public @Nullable TypeClass readGTypeClass()
      Read the value of the field g_type_class.
      Returns:
      The value of the field g_type_class
    • writeGTypeClass

      public void writeGTypeClass(@Nullable TypeClass gTypeClass)
      Write a value in the field g_type_class.
      Parameters:
      gTypeClass - The new value for the field g_type_class
    • readMask

      public int readMask()
      Read the value of the field mask.
      Returns:
      The value of the field mask
    • writeMask

      public void writeMask(int mask)
      Write a value in the field mask.
      Parameters:
      mask - The new value for the field mask
    • readNValues

      public int readNValues()
      Read the value of the field n_values.
      Returns:
      The value of the field n_values
    • writeNValues

      public void writeNValues(int nValues)
      Write a value in the field n_values.
      Parameters:
      nValues - The new value for the field n_values
    • readValues

      public @Nullable FlagsValue @Nullable [] readValues()
      Read the value of the field values.
      Returns:
      The value of the field values
    • writeValues

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