Record Class STBTT_Kerningentry
java.lang.Object
java.lang.Record
club.doki7.stb.truetype.datatype.STBTT_Kerningentry
- All Implemented Interfaces:
IPointer,ISTBTT_Kerningentry
@ValueBasedCandidate
@UnsafeConstructor
public record STBTT_Kerningentry(@NotNull MemorySegment segment)
extends Record
implements ISTBTT_Kerningentry
Represents a pointer to a stbtt_kerningentry structure in native memory.
Structure
Contracts
The property segment() should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to
LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java
null instead. See the documentation of IPointer.segment() for more details.
The constructor of this class is marked as UnsafeConstructor, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionSTBTT_Kerningentry(@NotNull MemorySegment segment) Creates an instance of aSTBTT_Kerningentryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintadvance()advance(int value) static STBTT_Kerningentrystatic STBTT_Kerningentry.Ptrstatic STBTT_Kerningentryclone(Arena arena, STBTT_Kerningentry src) final booleanIndicates whether some other object is "equal to" this one.intglyph1()glyph1(int value) intglyph2()glyph2(int value) final inthashCode()Returns a hash code value for this object.@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$glyph1
-
PATH$glyph2
-
PATH$advance
-
LAYOUT$glyph1
-
LAYOUT$glyph2
-
LAYOUT$advance
-
SIZE$glyph1
public static final long SIZE$glyph1 -
SIZE$glyph2
public static final long SIZE$glyph2 -
SIZE$advance
public static final long SIZE$advance -
OFFSET$glyph1
public static final long OFFSET$glyph1 -
OFFSET$glyph2
public static final long OFFSET$glyph2 -
OFFSET$advance
public static final long OFFSET$advance
-
-
Constructor Details
-
STBTT_Kerningentry
Creates an instance of aSTBTT_Kerningentryrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
glyph1
public int glyph1() -
glyph1
-
glyph2
public int glyph2() -
glyph2
-
advance
public int advance() -
advance
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
segment
Returns the value of thesegmentrecord component.
-