Package org.lwjgl.system.linux
Class XTimeCoord
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.XTimeCoord
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class XTimeCoord extends org.lwjgl.system.Struct
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXTimeCoord.BufferAn array ofXTimeCoordstructs.
-
Constructor Summary
Constructors Constructor Description XTimeCoord(java.nio.ByteBuffer container)Creates aXTimeCoordinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XTimeCoordcreate(long address)Returns a newXTimeCoordinstance for the specified memory address.static XTimeCoord.Buffercreate(long address, int capacity)Create aXTimeCoord.Bufferinstance at the specified memory.static XTimeCoordcreateSafe(long address)static XTimeCoord.BuffercreateSafe(long address, int capacity)static longntime(long struct)Unsafe version oftime().static shortnx(long struct)Unsafe version ofx().static shortny(long struct)Unsafe version ofy().intsizeof()longtime()the time, in millisecondsshortx()the x coordinate of the pointer relative to the origin of the specified windowshorty()the y coordinate of the pointer relative to the origin of the specified window
-
-
-
Constructor Detail
-
XTimeCoord
public XTimeCoord(java.nio.ByteBuffer container)
Creates aXTimeCoordinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public static XTimeCoord create(long address)
Returns a newXTimeCoordinstance for the specified memory address.
-
createSafe
@Nullable public static XTimeCoord createSafe(long address)
-
create
public static XTimeCoord.Buffer create(long address, int capacity)
Create aXTimeCoord.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XTimeCoord.Buffer createSafe(long address, int capacity)
-
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().
-
-