Record Class GLFWgamepadstate
java.lang.Object
java.lang.Record
club.doki7.glfw.datatype.GLFWgamepadstate
- All Implemented Interfaces:
IPointer,IGLFWgamepadstate
@ValueBasedCandidate
@UnsafeConstructor
public record GLFWgamepadstate(@NotNull MemorySegment segment)
extends Record
implements IGLFWgamepadstate
- Since:
- Added in version 3.3.
-
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 SequenceLayoutstatic final SequenceLayoutstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionGLFWgamepadstate(@NotNull MemorySegment segment) Creates an instance of aGLFWgamepadstaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GLFWgamepadstatestatic GLFWgamepadstate.Ptraxes()@NotNull MemorySegmentaxesRaw()buttons()@NotNull MemorySegmentstatic GLFWgamepadstateclone(Arena arena, GLFWgamepadstate src) final booleanIndicates whether some other object is "equal to" this one.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$buttons
-
PATH$axes
-
LAYOUT$buttons
-
LAYOUT$axes
-
SIZE$buttons
public static final long SIZE$buttons -
SIZE$axes
public static final long SIZE$axes -
OFFSET$buttons
public static final long OFFSET$buttons -
OFFSET$axes
public static final long OFFSET$axes
-
-
Constructor Details
-
GLFWgamepadstate
Creates an instance of aGLFWgamepadstaterecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
buttons
-
buttons
-
buttons
-
buttonsRaw
-
axes
-
axes
-
axes
-
axesRaw
-
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.
-