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 classXTimeCoord.BufferAn array ofXTimeCoordstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intSIZEOFThe struct size in bytes.static intTIME
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 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()Returnssizeof(struct).longtime()Returns the value of thetimefield.shortx()Returns the value of thexfield.shorty()Returns the value of theyfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
-
-
-
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()
Description copied from class:StructReturnssizeof(struct).
-
time
public long time()
Returns the value of thetimefield.
-
x
public short x()
Returns the value of thexfield.
-
y
public short y()
Returns the value of theyfield.
-
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().
-
-