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