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 class
XTimeCoord.Buffer
An array ofXTimeCoord
structs.
-
Constructor Summary
Constructors Constructor Description XTimeCoord(java.nio.ByteBuffer container)
Creates aXTimeCoord
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 window
-
-
-
Constructor Detail
-
XTimeCoord
public XTimeCoord(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in 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 newXTimeCoord
instance 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.Buffer
instance 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()
.
-
-