Class OtColorLayer

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

@Generated("org.javagi.JavaGI") public class OtColorLayer extends ProxyInstance

Pairs of glyph and color index.

A color index of 0xFFFF does not refer to a palette color, but indicates that the foreground color should be used.

Since:
2.1.0
  • Constructor Details

    • OtColorLayer

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

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

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

      public OtColorLayer(Codepoint glyph, int colorIndex, Arena arena)
      Allocate a new OtColorLayer with the fields set to the provided values.
      Parameters:
      glyph - value for the field glyph
      colorIndex - value for the field colorIndex
      arena - to control the memory allocation scope
    • OtColorLayer

      public OtColorLayer(Codepoint glyph, int colorIndex)
      Allocate a new OtColorLayer with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      glyph - value for the field glyph
      colorIndex - value for the field colorIndex
  • Method Details

    • getMemoryLayout

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

      public Codepoint readGlyph()
      Read the value of the field glyph.
      Returns:
      The value of the field glyph
    • writeGlyph

      public void writeGlyph(Codepoint glyph)
      Write a value in the field glyph.
      Parameters:
      glyph - The new value for the field glyph
    • readColorIndex

      public int readColorIndex()
      Read the value of the field color_index.
      Returns:
      The value of the field color_index
    • writeColorIndex

      public void writeColorIndex(int colorIndex)
      Write a value in the field color_index.
      Parameters:
      colorIndex - The new value for the field color_index