public static class XKeyEvent.Buffer extends org.lwjgl.system.StructBuffer<XKeyEvent,XKeyEvent.Buffer> implements org.lwjgl.system.NativeResource
XKeyEvent structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
XKeyEvent.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
long |
display()
Returns the value of the
display field. |
XKeyEvent.Buffer |
display(long value)
Sets the specified value to the
display field. |
int |
keycode()
Returns the value of the
keycode field. |
XKeyEvent.Buffer |
keycode(int value)
Sets the specified value to the
keycode field. |
long |
root()
Returns the value of the
root field. |
XKeyEvent.Buffer |
root(long value)
Sets the specified value to the
root field. |
boolean |
same_screen()
Returns the value of the
same_screen field. |
XKeyEvent.Buffer |
same_screen(boolean value)
Sets the specified value to the
same_screen field. |
boolean |
send_event()
Returns the value of the
send_event field. |
XKeyEvent.Buffer |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XKeyEvent.Buffer |
serial(long value)
Sets the specified value to the
serial field. |
int |
state()
Returns the value of the
state field. |
XKeyEvent.Buffer |
state(int value)
Sets the specified value to the
state field. |
long |
subwindow()
Returns the value of the
subwindow field. |
XKeyEvent.Buffer |
subwindow(long value)
Sets the specified value to the
subwindow field. |
long |
time()
Returns the value of the
time field. |
XKeyEvent.Buffer |
time(long value)
Sets the specified value to the
time field. |
int |
type()
Returns the value of the
type field. |
XKeyEvent.Buffer |
type(int value)
Sets the specified value to the
type field. |
long |
window()
Returns the value of the
window field. |
XKeyEvent.Buffer |
window(long value)
Sets the specified value to the
window field. |
int |
x_root()
Returns the value of the
x_root field. |
XKeyEvent.Buffer |
x_root(int value)
Sets the specified value to the
x_root field. |
int |
x()
Returns the value of the
x field. |
XKeyEvent.Buffer |
x(int value)
Sets the specified value to the
x field. |
int |
y_root()
Returns the value of the
y_root field. |
XKeyEvent.Buffer |
y_root(int value)
Sets the specified value to the
y_root field. |
int |
y()
Returns the value of the
y field. |
XKeyEvent.Buffer |
y(int value)
Sets the specified value to the
y field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
XKeyEvent.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 XKeyEvent.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 root()
root field.public long subwindow()
subwindow field.public long time()
time field.public int x()
x field.public int y()
y field.public int x_root()
x_root field.public int y_root()
y_root field.public int state()
state field.public int keycode()
keycode field.public boolean same_screen()
same_screen field.public XKeyEvent.Buffer type(int value)
type field.public XKeyEvent.Buffer serial(long value)
serial field.public XKeyEvent.Buffer send_event(boolean value)
send_event field.public XKeyEvent.Buffer display(long value)
display field.public XKeyEvent.Buffer window(long value)
window field.public XKeyEvent.Buffer root(long value)
root field.public XKeyEvent.Buffer subwindow(long value)
subwindow field.public XKeyEvent.Buffer time(long value)
time field.public XKeyEvent.Buffer x(int value)
x field.public XKeyEvent.Buffer y(int value)
y field.public XKeyEvent.Buffer x_root(int value)
x_root field.public XKeyEvent.Buffer y_root(int value)
y_root field.public XKeyEvent.Buffer state(int value)
state field.public XKeyEvent.Buffer keycode(int value)
keycode field.public XKeyEvent.Buffer same_screen(boolean value)
same_screen field.Copyright LWJGL. All Rights Reserved. License terms.