Record Class STBTT_AlignedQuad
java.lang.Object
java.lang.Record
club.doki7.stb.truetype.datatype.STBTT_AlignedQuad
- All Implemented Interfaces:
IPointer,ISTBTT_AlignedQuad
@ValueBasedCandidate
@UnsafeConstructor
public record STBTT_AlignedQuad(@NotNull MemorySegment segment)
extends Record
implements ISTBTT_AlignedQuad
Represents a pointer to a stbtt_aligned_quad structure in native memory.
Structure
typedef struct stbtt_aligned_quad {
float x0;
float y0;
float s0;
float t0;
float x1;
float y1;
float s1;
float t1;
} stbtt_aligned_quad;
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.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionSTBTT_AlignedQuad(@NotNull MemorySegment segment) Creates an instance of aSTBTT_AlignedQuadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic STBTT_AlignedQuadstatic STBTT_AlignedQuad.Ptrstatic STBTT_AlignedQuadclone(Arena arena, STBTT_AlignedQuad src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floats0()s0(float value) floats1()s1(float value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.floatt0()t0(float value) floatt1()t1(float value) final StringtoString()Returns a string representation of this record class.floatx0()x0(float value) floatx1()x1(float value) floaty0()y0(float value) floaty1()y1(float value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$x0
-
PATH$y0
-
PATH$s0
-
PATH$t0
-
PATH$x1
-
PATH$y1
-
PATH$s1
-
PATH$t1
-
LAYOUT$x0
-
LAYOUT$y0
-
LAYOUT$s0
-
LAYOUT$t0
-
LAYOUT$x1
-
LAYOUT$y1
-
LAYOUT$s1
-
LAYOUT$t1
-
SIZE$x0
public static final long SIZE$x0 -
SIZE$y0
public static final long SIZE$y0 -
SIZE$s0
public static final long SIZE$s0 -
SIZE$t0
public static final long SIZE$t0 -
SIZE$x1
public static final long SIZE$x1 -
SIZE$y1
public static final long SIZE$y1 -
SIZE$s1
public static final long SIZE$s1 -
SIZE$t1
public static final long SIZE$t1 -
OFFSET$x0
public static final long OFFSET$x0 -
OFFSET$y0
public static final long OFFSET$y0 -
OFFSET$s0
public static final long OFFSET$s0 -
OFFSET$t0
public static final long OFFSET$t0 -
OFFSET$x1
public static final long OFFSET$x1 -
OFFSET$y1
public static final long OFFSET$y1 -
OFFSET$s1
public static final long OFFSET$s1 -
OFFSET$t1
public static final long OFFSET$t1
-
-
Constructor Details
-
STBTT_AlignedQuad
Creates an instance of aSTBTT_AlignedQuadrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
x0
public float x0() -
x0
-
y0
public float y0() -
y0
-
s0
public float s0() -
s0
-
t0
public float t0() -
t0
-
x1
public float x1() -
x1
-
y1
public float y1() -
y1
-
s1
public float s1() -
s1
-
t1
public float t1() -
t1
-
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.
-