public static class XClientMessageEvent.Buffer extends org.lwjgl.system.StructBuffer<XClientMessageEvent,XClientMessageEvent.Buffer> implements org.lwjgl.system.NativeResource
XClientMessageEvent structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
XClientMessageEvent.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
data_b()
Returns a
ByteBuffer view of the data.b field. |
XClientMessageEvent.Buffer |
data_b(java.nio.ByteBuffer value)
Copies the specified
ByteBuffer to the data.b field. |
byte |
data_b(int index)
Returns the value at the specified index of the
data.b field. |
XClientMessageEvent.Buffer |
data_b(int index,
byte value)
Sets the specified value at the specified index of the
data.b field. |
org.lwjgl.CLongBuffer |
data_l()
Returns a
CLongBuffer view of the data.l field. |
XClientMessageEvent.Buffer |
data_l(org.lwjgl.CLongBuffer value)
Copies the specified
CLongBuffer to the data.l field. |
long |
data_l(int index)
Returns the value at the specified index of the
data.l field. |
XClientMessageEvent.Buffer |
data_l(int index,
long value)
Sets the specified value at the specified index of the
data.l field. |
java.nio.ShortBuffer |
data_s()
Returns a
ShortBuffer view of the data.s field. |
short |
data_s(int index)
Returns the value at the specified index of the
data.s field. |
XClientMessageEvent.Buffer |
data_s(int index,
short value)
Sets the specified value at the specified index of the
data.s field. |
XClientMessageEvent.Buffer |
data_s(java.nio.ShortBuffer value)
Copies the specified
ShortBuffer to the data.s field. |
long |
display()
Returns the value of the
display field. |
XClientMessageEvent.Buffer |
display(long value)
Sets the specified value to the
display field. |
int |
format()
Returns the value of the
format field. |
XClientMessageEvent.Buffer |
format(int value)
Sets the specified value to the
format field. |
long |
message_type()
Returns the value of the
message_type field. |
XClientMessageEvent.Buffer |
message_type(long value)
Sets the specified value to the
message_type field. |
boolean |
send_event()
Returns the value of the
send_event field. |
XClientMessageEvent.Buffer |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XClientMessageEvent.Buffer |
serial(long value)
Sets the specified value to the
serial field. |
int |
type()
Returns the value of the
type field. |
XClientMessageEvent.Buffer |
type(int value)
Sets the specified value to the
type field. |
long |
window()
Returns the value of the
window field. |
XClientMessageEvent.Buffer |
window(long value)
Sets the specified value to the
window field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
XClientMessageEvent.Buffer instance backed by the specified container.
Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by XClientMessageEvent.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public int type()
type field.public long serial()
serial field.public boolean send_event()
send_event field.public long display()
display field.public long window()
window field.public long message_type()
message_type field.public int format()
format field.public java.nio.ByteBuffer data_b()
ByteBuffer view of the data.b field.public byte data_b(int index)
data.b field.public java.nio.ShortBuffer data_s()
ShortBuffer view of the data.s field.public short data_s(int index)
data.s field.public org.lwjgl.CLongBuffer data_l()
CLongBuffer view of the data.l field.public long data_l(int index)
data.l field.public XClientMessageEvent.Buffer type(int value)
type field.public XClientMessageEvent.Buffer serial(long value)
serial field.public XClientMessageEvent.Buffer send_event(boolean value)
send_event field.public XClientMessageEvent.Buffer display(long value)
display field.public XClientMessageEvent.Buffer window(long value)
window field.public XClientMessageEvent.Buffer message_type(long value)
message_type field.public XClientMessageEvent.Buffer format(int value)
format field.public XClientMessageEvent.Buffer data_b(java.nio.ByteBuffer value)
ByteBuffer to the data.b field.public XClientMessageEvent.Buffer data_b(int index, byte value)
data.b field.public XClientMessageEvent.Buffer data_s(java.nio.ShortBuffer value)
ShortBuffer to the data.s field.public XClientMessageEvent.Buffer data_s(int index, short value)
data.s field.public XClientMessageEvent.Buffer data_l(org.lwjgl.CLongBuffer value)
CLongBuffer to the data.l field.public XClientMessageEvent.Buffer data_l(int index, long value)
data.l field.Copyright LWJGL. All Rights Reserved. License terms.