Enum Class BufferDiffFlags

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

@Generated("org.javagi.JavaGI") public enum BufferDiffFlags extends Enum<BufferDiffFlags> implements Enumeration

Flags from comparing two hb_buffer_t's.

Buffer with different hb_buffer_content_type_t cannot be meaningfully compared in any further detail.

For buffers with differing length, the per-glyph comparison is not attempted, though we do still scan reference buffer for dotted circle and .notdef glyphs.

If the buffers have the same length, we compare them glyph-by-glyph and report which aspect(s) of the glyph info/position are different.

Since:
1.5.0
  • Enum Constant Details

    • EQUAL

      public static final BufferDiffFlags EQUAL
      equal buffers.
    • CONTENT_TYPE_MISMATCH

      public static final BufferDiffFlags CONTENT_TYPE_MISMATCH
      buffers with different hb_buffer_content_type_t.
    • LENGTH_MISMATCH

      public static final BufferDiffFlags LENGTH_MISMATCH
      buffers with differing length.
    • NOTDEF_PRESENT

      public static final BufferDiffFlags NOTDEF_PRESENT
      .notdef glyph is present in the reference buffer.
    • DOTTED_CIRCLE_PRESENT

      public static final BufferDiffFlags DOTTED_CIRCLE_PRESENT
      dotted circle glyph is present in the reference buffer.
    • CODEPOINT_MISMATCH

      public static final BufferDiffFlags CODEPOINT_MISMATCH
      difference in hb_glyph_info_t.codepoint
    • CLUSTER_MISMATCH

      public static final BufferDiffFlags CLUSTER_MISMATCH
      difference in hb_glyph_info_t.cluster
    • GLYPH_FLAGS_MISMATCH

      public static final BufferDiffFlags GLYPH_FLAGS_MISMATCH
      difference in hb_glyph_flags_t.
    • POSITION_MISMATCH

      public static final BufferDiffFlags POSITION_MISMATCH
      difference in hb_glyph_position_t.
  • Method Details

    • values

      public static BufferDiffFlags[] 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 BufferDiffFlags 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<BufferDiffFlags> of(int flags)
      Create a new EnumSet<BufferDiffFlags> for the provided bitfield
      Parameters:
      flags - the BufferDiffFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<BufferDiffFlags> of(MemorySegment address)
      Create a new EnumSet<BufferDiffFlags> 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 BufferDiffFlags class.
      Returns:
      the GType