Package org.lwjgl.system.linux
Class XTimeCoord
- All Implemented Interfaces:
Pointer
struct XTimeCoord {
Time time;
short x;
short y;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXTimeCoord(ByteBuffer container) Creates aXTimeCoordinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 @Nullable XTimeCoordcreateSafe(long address) static @Nullable 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()shortx()shorty()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TIME
public static final int TIMEThe struct member offsets. -
X
public static final int XThe struct member offsets. -
Y
public static final int YThe struct member offsets.
-
-
Constructor Details
-
XTimeCoord
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XTimeCoord>
-
time
public long time()- Returns:
- the value of the
timefield.
-
x
public short x()- Returns:
- the value of the
xfield.
-
y
public short y()- Returns:
- the value of the
yfield.
-
create
Returns a newXTimeCoordinstance for the specified memory address. -
createSafe
-
create
Create aXTimeCoord.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
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().
-