public class XTimeCoord
extends org.lwjgl.system.Struct
time – the time, in millisecondsx – the x coordinate of the pointer relative to the origin of the specified windowy – the y coordinate of the pointer relative to the origin of the specified window
struct XTimeCoord {
Time time;
short x;
short y;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XTimeCoord.Buffer
An array of
XTimeCoord structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TIME
The struct member offsets.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
XTimeCoord(java.nio.ByteBuffer container)
Creates a
XTimeCoord instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XTimeCoord |
create(long address)
Returns a new
XTimeCoord instance for the specified memory address. |
static XTimeCoord.Buffer |
create(long address,
int capacity)
Create a
XTimeCoord.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 of
time(). |
static short |
nx(long struct)
Unsafe version of
x(). |
static short |
ny(long struct)
Unsafe version of
y(). |
int |
sizeof() |
long |
time()
Returns the value of the
time field. |
short |
x()
Returns the value of the
x field. |
short |
y()
Returns the value of the
y field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TIME
public static final int X
public static final int Y
public XTimeCoord(java.nio.ByteBuffer container)
XTimeCoord instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long time()
time field.public short x()
x field.public short y()
y field.public static XTimeCoord create(long address)
XTimeCoord instance for the specified memory address.@Nullable public static XTimeCoord createSafe(long address)
public static XTimeCoord.Buffer create(long address, int capacity)
XTimeCoord.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XTimeCoord.Buffer createSafe(long address, int capacity)
public static long ntime(long struct)
time().public static short nx(long struct)
x().public static short ny(long struct)
y().Copyright LWJGL. All Rights Reserved. License terms.