public static class XGenericEventCookie.Buffer extends org.lwjgl.system.StructBuffer<XGenericEventCookie,XGenericEventCookie.Buffer> implements org.lwjgl.system.NativeResource
XGenericEventCookie structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
XGenericEventCookie.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
int |
cookie()
Returns the value of the
cookie field. |
XGenericEventCookie.Buffer |
cookie(int value)
Sets the specified value to the
cookie field. |
XGenericEventCookie.Buffer |
data(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the data field. |
java.nio.ByteBuffer |
data(int capacity)
Returns a
ByteBuffer view of the data pointed to by the data field. |
long |
display()
Returns the value of the
display field. |
XGenericEventCookie.Buffer |
display(long value)
Sets the specified value to the
display field. |
int |
evtype()
Returns the value of the
evtype field. |
XGenericEventCookie.Buffer |
evtype(int value)
Sets the specified value to the
evtype field. |
int |
extension()
Returns the value of the
extension field. |
XGenericEventCookie.Buffer |
extension(int value)
Sets the specified value to the
extension field. |
boolean |
send_event()
Returns the value of the
send_event field. |
XGenericEventCookie.Buffer |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XGenericEventCookie.Buffer |
serial(long value)
Sets the specified value to the
serial field. |
int |
type()
Returns the value of the
type field. |
XGenericEventCookie.Buffer |
type(int value)
Sets the specified value to the
type field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
XGenericEventCookie.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 XGenericEventCookie.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 int extension()
extension field.public int evtype()
evtype field.public int cookie()
cookie field.public java.nio.ByteBuffer data(int capacity)
ByteBuffer view of the data pointed to by the data field.capacity - the number of elements in the returned bufferpublic XGenericEventCookie.Buffer type(int value)
type field.public XGenericEventCookie.Buffer serial(long value)
serial field.public XGenericEventCookie.Buffer send_event(boolean value)
send_event field.public XGenericEventCookie.Buffer display(long value)
display field.public XGenericEventCookie.Buffer extension(int value)
extension field.public XGenericEventCookie.Buffer evtype(int value)
evtype field.public XGenericEventCookie.Buffer cookie(int value)
cookie field.public XGenericEventCookie.Buffer data(java.nio.ByteBuffer value)
ByteBuffer to the data field.Copyright LWJGL. All Rights Reserved. License terms.