public static class XMotionEvent.Buffer extends org.lwjgl.system.StructBuffer<XMotionEvent,XMotionEvent.Buffer> implements org.lwjgl.system.NativeResource
XMotionEvent structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
XMotionEvent.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. |
XMotionEvent.Buffer |
display(long value)
Sets the specified value to the
display field. |
byte |
is_hint()
Returns the value of the
is_hint field. |
XMotionEvent.Buffer |
is_hint(byte value)
Sets the specified value to the
is_hint field. |
long |
root()
Returns the value of the
root field. |
XMotionEvent.Buffer |
root(long value)
Sets the specified value to the
root field. |
boolean |
same_screen()
Returns the value of the
same_screen field. |
XMotionEvent.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. |
XMotionEvent.Buffer |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XMotionEvent.Buffer |
serial(long value)
Sets the specified value to the
serial field. |
int |
state()
Returns the value of the
state field. |
XMotionEvent.Buffer |
state(int value)
Sets the specified value to the
state field. |
long |
subwindow()
Returns the value of the
subwindow field. |
XMotionEvent.Buffer |
subwindow(long value)
Sets the specified value to the
subwindow field. |
long |
time()
Returns the value of the
time field. |
XMotionEvent.Buffer |
time(long value)
Sets the specified value to the
time field. |
int |
type()
Returns the value of the
type field. |
XMotionEvent.Buffer |
type(int value)
Sets the specified value to the
type field. |
long |
window()
Returns the value of the
window field. |
XMotionEvent.Buffer |
window(long value)
Sets the specified value to the
window field. |
int |
x_root()
Returns the value of the
x_root field. |
XMotionEvent.Buffer |
x_root(int value)
Sets the specified value to the
x_root field. |
int |
x()
Returns the value of the
x field. |
XMotionEvent.Buffer |
x(int value)
Sets the specified value to the
x field. |
int |
y_root()
Returns the value of the
y_root field. |
XMotionEvent.Buffer |
y_root(int value)
Sets the specified value to the
y_root field. |
int |
y()
Returns the value of the
y field. |
XMotionEvent.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)
XMotionEvent.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 XMotionEvent.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 byte is_hint()
is_hint field.public boolean same_screen()
same_screen field.public XMotionEvent.Buffer type(int value)
type field.public XMotionEvent.Buffer serial(long value)
serial field.public XMotionEvent.Buffer send_event(boolean value)
send_event field.public XMotionEvent.Buffer display(long value)
display field.public XMotionEvent.Buffer window(long value)
window field.public XMotionEvent.Buffer root(long value)
root field.public XMotionEvent.Buffer subwindow(long value)
subwindow field.public XMotionEvent.Buffer time(long value)
time field.public XMotionEvent.Buffer x(int value)
x field.public XMotionEvent.Buffer y(int value)
y field.public XMotionEvent.Buffer x_root(int value)
x_root field.public XMotionEvent.Buffer y_root(int value)
y_root field.public XMotionEvent.Buffer state(int value)
state field.public XMotionEvent.Buffer is_hint(byte value)
is_hint field.public XMotionEvent.Buffer same_screen(boolean value)
same_screen field.Copyright LWJGL. All Rights Reserved. License terms.