Enum Class BufferSerializeFlags

java.lang.Object
java.lang.Enum<BufferSerializeFlags>
org.freedesktop.harfbuzz.BufferSerializeFlags
All Implemented Interfaces:
Serializable, Comparable<BufferSerializeFlags>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum BufferSerializeFlags extends Enum<BufferSerializeFlags> implements Enumeration
Flags that control what glyph information are serialized in hb_buffer_serialize_glyphs().
Since:
0.9.20
  • Enum Constant Details

    • DEFAULT

      public static final BufferSerializeFlags DEFAULT
      serialize glyph names, clusters and positions.
    • NO_CLUSTERS

      public static final BufferSerializeFlags NO_CLUSTERS
      do not serialize glyph cluster.
    • NO_POSITIONS

      public static final BufferSerializeFlags NO_POSITIONS
      do not serialize glyph position information.
    • NO_GLYPH_NAMES

      public static final BufferSerializeFlags NO_GLYPH_NAMES
      do no serialize glyph name.
    • GLYPH_EXTENTS

      public static final BufferSerializeFlags GLYPH_EXTENTS
      serialize glyph extents.
    • GLYPH_FLAGS

      public static final BufferSerializeFlags GLYPH_FLAGS
      serialize glyph flags. Since: 1.5.0
    • NO_ADVANCES

      public static final BufferSerializeFlags NO_ADVANCES
      do not serialize glyph advances, glyph offsets will reflect absolute glyph positions. Since: 1.8.0
    • DEFINED

      public static final BufferSerializeFlags DEFINED
      All currently defined flags. Since: 4.4.0
  • Method Details

    • values

      public static BufferSerializeFlags[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BufferSerializeFlags valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<BufferSerializeFlags> of(int flags)
      Create a new EnumSet<BufferSerializeFlags> for the provided bitfield
      Parameters:
      flags - the BufferSerializeFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<BufferSerializeFlags> of(MemorySegment address)
      Create a new EnumSet<BufferSerializeFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address
    • getType

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