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 record
Represents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final SequenceLayout
static final SequenceLayout
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionGLFWgamepadstate
(@NotNull MemorySegment segment) Creates an instance of aGLFWgamepadstate
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GLFWgamepadstate
static GLFWgamepadstate.Ptr
axes()
axesRaw()
buttons()
static GLFWgamepadstate
clone
(Arena arena, GLFWgamepadstate src) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
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 aGLFWgamepadstate
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
buttons
-
buttons
-
buttonsRaw
-
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 thesegment
record component.
-