Class GlyphInfo

java.lang.Object
com.raylib.jextract.GlyphInfo

public class GlyphInfo extends Object
struct GlyphInfo {
    int value;
    int offsetX;
    int offsetY;
    int advanceX;
    Image image;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • value$layout

      public static final ValueLayout.OfInt value$layout()
      Layout for field:
      int value
      
    • value$offset

      public static final long value$offset()
      Offset for field:
      int value
      
    • value

      public static int value(MemorySegment struct)
      Getter for field:
      int value
      
    • value

      public static void value(MemorySegment struct, int fieldValue)
      Setter for field:
      int value
      
    • offsetX$layout

      public static final ValueLayout.OfInt offsetX$layout()
      Layout for field:
      int offsetX
      
    • offsetX$offset

      public static final long offsetX$offset()
      Offset for field:
      int offsetX
      
    • offsetX

      public static int offsetX(MemorySegment struct)
      Getter for field:
      int offsetX
      
    • offsetX

      public static void offsetX(MemorySegment struct, int fieldValue)
      Setter for field:
      int offsetX
      
    • offsetY$layout

      public static final ValueLayout.OfInt offsetY$layout()
      Layout for field:
      int offsetY
      
    • offsetY$offset

      public static final long offsetY$offset()
      Offset for field:
      int offsetY
      
    • offsetY

      public static int offsetY(MemorySegment struct)
      Getter for field:
      int offsetY
      
    • offsetY

      public static void offsetY(MemorySegment struct, int fieldValue)
      Setter for field:
      int offsetY
      
    • advanceX$layout

      public static final ValueLayout.OfInt advanceX$layout()
      Layout for field:
      int advanceX
      
    • advanceX$offset

      public static final long advanceX$offset()
      Offset for field:
      int advanceX
      
    • advanceX

      public static int advanceX(MemorySegment struct)
      Getter for field:
      int advanceX
      
    • advanceX

      public static void advanceX(MemorySegment struct, int fieldValue)
      Setter for field:
      int advanceX
      
    • image$layout

      public static final GroupLayout image$layout()
      Layout for field:
      Image image
      
    • image$offset

      public static final long image$offset()
      Offset for field:
      Image image
      
    • image

      public static MemorySegment image(MemorySegment struct)
      Getter for field:
      Image image
      
    • image

      public static void image(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      Image image
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()