Class FlagSet

All Implemented Interfaces:
Proxy
Direct Known Subclasses:
VideoMultiviewFlagsSet

@Generated("org.javagi.JavaGI") public class FlagSet extends TypeInstance
A fundamental type that describes a 32-bit flag bitfield, with 32-bit mask indicating which of the bits in the field are explicitly set.
  • Constructor Details

    • FlagSet

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

    • getType

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

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

      protected FlagSet asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Returns:
      the instance as if it were its parent type
    • register

      public static Type register(Type flagsType)
      Create a new sub-class of GST_TYPE_FLAG_SET which will pretty-print the human-readable flags when serializing, for easier debugging.
      Parameters:
      flagsType - a GType of a G_TYPE_FLAGS type.
      Since:
      1.6