Class Font

java.lang.Object
com.raylib.jextract.Font

public class Font extends Object
struct Font {
    int baseSize;
    int glyphCount;
    int glyphPadding;
    Texture2D texture;
    Rectangle *recs;
    GlyphInfo *glyphs;
}
  • Method Details

    • layout

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final GroupLayout texture$layout()
      Layout for field:
      Texture2D texture
      
    • texture$offset

      public static final long texture$offset()
      Offset for field:
      Texture2D texture
      
    • texture

      public static MemorySegment texture(MemorySegment struct)
      Getter for field:
      Texture2D texture
      
    • texture

      public static void texture(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      Texture2D texture
      
    • recs$layout

      public static final AddressLayout recs$layout()
      Layout for field:
      Rectangle *recs
      
    • recs$offset

      public static final long recs$offset()
      Offset for field:
      Rectangle *recs
      
    • recs

      public static MemorySegment recs(MemorySegment struct)
      Getter for field:
      Rectangle *recs
      
    • recs

      public static void recs(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      Rectangle *recs
      
    • glyphs$layout

      public static final AddressLayout glyphs$layout()
      Layout for field:
      GlyphInfo *glyphs
      
    • glyphs$offset

      public static final long glyphs$offset()
      Offset for field:
      GlyphInfo *glyphs
      
    • glyphs

      public static MemorySegment glyphs(MemorySegment struct)
      Getter for field:
      GlyphInfo *glyphs
      
    • glyphs

      public static void glyphs(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      GlyphInfo *glyphs
      
    • 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()