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:
Pointer
public class XTimeCoord extends Struct
Member documentation
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
Layout
struct XTimeCoord { Time time; short x; short y; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XTimeCoord.Buffer
An array ofXTimeCoord
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
SIZEOF
The struct size in bytes.static int
TIME
X
YThe struct member offsets.-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
-
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()
Returnssizeof(struct)
.long
time()
Returns the value of thetime
field.short
x()
Returns the value of thex
field.short
y()
Returns the value of they
field.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
-
-
-
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()
Description copied from class:Struct
Returnssizeof(struct)
.
-
time
public long time()
Returns the value of thetime
field.
-
x
public short x()
Returns the value of thex
field.
-
y
public short y()
Returns the value of they
field.
-
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()
.
-
-