Package org.lwjgl.system.linux
Class XTimeCoord
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XTimeCoord>
org.lwjgl.system.linux.XTimeCoord
- All Implemented Interfaces:
org.lwjgl.system.Pointer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXTimeCoord
(ByteBuffer container) Creates aXTimeCoord
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XTimeCoord
create
(long address) Returns a newXTimeCoord
instance for the specified memory address.static XTimeCoord.Buffer
create
(long address, int capacity) Create aXTimeCoord.Buffer
instance at the specified memory.static XTimeCoord
createSafe
(long address) static XTimeCoord.Buffer
createSafe
(long address, int capacity) static long
ntime
(long struct) Unsafe version oftime()
.static short
nx
(long struct) Unsafe version ofx()
.static short
ny
(long struct) Unsafe version ofy()
.int
sizeof()
long
time()
the time, in millisecondsshort
x()
the x coordinate of the pointer relative to the origin of the specified windowshort
y()
the y coordinate of the pointer relative to the origin of the specified windowMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TIME
public static final int TIMEThe struct member offsets. -
X
public static final int XThe struct member offsets. -
Y
public static final int YThe struct member offsets.
-
-
Constructor Details
-
XTimeCoord
Creates aXTimeCoord
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeof
in classorg.lwjgl.system.Struct<XTimeCoord>
-
time
public long time()the time, in milliseconds -
x
public short x()the x coordinate of the pointer relative to the origin of the specified window -
y
public short y()the y coordinate of the pointer relative to the origin of the specified window -
create
Returns a newXTimeCoord
instance for the specified memory address. -
createSafe
-
create
Create aXTimeCoord.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
ntime
public static long ntime(long struct) Unsafe version oftime()
. -
nx
public static short nx(long struct) Unsafe version ofx()
. -
ny
public static short ny(long struct) Unsafe version ofy()
.
-