Package org.lwjgl.system.linux
Class XKeyEvent.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XKeyEvent,XKeyEvent.Buffer>
-
- org.lwjgl.system.linux.XKeyEvent.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XKeyEvent>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XKeyEvent
public static class XKeyEvent.Buffer extends org.lwjgl.system.StructBuffer<XKeyEvent,XKeyEvent.Buffer> implements org.lwjgl.system.NativeResource
An array ofXKeyEventstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longdisplay()XKeyEvent.Bufferdisplay(long value)Sets the specified value to theXKeyEvent.display()field.intkeycode()XKeyEvent.Bufferkeycode(int value)Sets the specified value to theXKeyEvent.keycode()field.longroot()XKeyEvent.Bufferroot(long value)Sets the specified value to theXKeyEvent.root()field.booleansame_screen()XKeyEvent.Buffersame_screen(boolean value)Sets the specified value to theXKeyEvent.same_screen()field.booleansend_event()XKeyEvent.Buffersend_event(boolean value)Sets the specified value to theXKeyEvent.send_event()field.longserial()XKeyEvent.Bufferserial(long value)Sets the specified value to theXKeyEvent.serial()field.intstate()XKeyEvent.Bufferstate(int value)Sets the specified value to theXKeyEvent.state()field.longsubwindow()XKeyEvent.Buffersubwindow(long value)Sets the specified value to theXKeyEvent.subwindow()field.longtime()XKeyEvent.Buffertime(long value)Sets the specified value to theXKeyEvent.time()field.inttype()XKeyEvent.Buffertype(int value)Sets the specified value to theXKeyEvent.type()field.longwindow()XKeyEvent.Bufferwindow(long value)Sets the specified value to theXKeyEvent.window()field.intx()XKeyEvent.Bufferx(int value)Sets the specified value to theXKeyEvent.x()field.intx_root()XKeyEvent.Bufferx_root(int value)Sets the specified value to theXKeyEvent.x_root()field.inty()XKeyEvent.Buffery(int value)Sets the specified value to theXKeyEvent.y()field.inty_root()XKeyEvent.Buffery_root(int value)Sets the specified value to theXKeyEvent.y_root()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXKeyEvent.Bufferinstance 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 byXKeyEvent.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
type
public int type()
- Returns:
- the value of the
XKeyEvent.type()field.
-
serial
public long serial()
- Returns:
- the value of the
XKeyEvent.serial()field.
-
send_event
public boolean send_event()
- Returns:
- the value of the
XKeyEvent.send_event()field.
-
display
public long display()
- Returns:
- the value of the
XKeyEvent.display()field.
-
window
public long window()
- Returns:
- the value of the
XKeyEvent.window()field.
-
root
public long root()
- Returns:
- the value of the
XKeyEvent.root()field.
-
subwindow
public long subwindow()
- Returns:
- the value of the
XKeyEvent.subwindow()field.
-
time
public long time()
- Returns:
- the value of the
XKeyEvent.time()field.
-
x
public int x()
- Returns:
- the value of the
XKeyEvent.x()field.
-
y
public int y()
- Returns:
- the value of the
XKeyEvent.y()field.
-
x_root
public int x_root()
- Returns:
- the value of the
XKeyEvent.x_root()field.
-
y_root
public int y_root()
- Returns:
- the value of the
XKeyEvent.y_root()field.
-
state
public int state()
- Returns:
- the value of the
XKeyEvent.state()field.
-
keycode
public int keycode()
- Returns:
- the value of the
XKeyEvent.keycode()field.
-
same_screen
public boolean same_screen()
- Returns:
- the value of the
XKeyEvent.same_screen()field.
-
type
public XKeyEvent.Buffer type(int value)
Sets the specified value to theXKeyEvent.type()field.
-
serial
public XKeyEvent.Buffer serial(long value)
Sets the specified value to theXKeyEvent.serial()field.
-
send_event
public XKeyEvent.Buffer send_event(boolean value)
Sets the specified value to theXKeyEvent.send_event()field.
-
display
public XKeyEvent.Buffer display(long value)
Sets the specified value to theXKeyEvent.display()field.
-
window
public XKeyEvent.Buffer window(long value)
Sets the specified value to theXKeyEvent.window()field.
-
root
public XKeyEvent.Buffer root(long value)
Sets the specified value to theXKeyEvent.root()field.
-
subwindow
public XKeyEvent.Buffer subwindow(long value)
Sets the specified value to theXKeyEvent.subwindow()field.
-
time
public XKeyEvent.Buffer time(long value)
Sets the specified value to theXKeyEvent.time()field.
-
x
public XKeyEvent.Buffer x(int value)
Sets the specified value to theXKeyEvent.x()field.
-
y
public XKeyEvent.Buffer y(int value)
Sets the specified value to theXKeyEvent.y()field.
-
x_root
public XKeyEvent.Buffer x_root(int value)
Sets the specified value to theXKeyEvent.x_root()field.
-
y_root
public XKeyEvent.Buffer y_root(int value)
Sets the specified value to theXKeyEvent.y_root()field.
-
state
public XKeyEvent.Buffer state(int value)
Sets the specified value to theXKeyEvent.state()field.
-
keycode
public XKeyEvent.Buffer keycode(int value)
Sets the specified value to theXKeyEvent.keycode()field.
-
same_screen
public XKeyEvent.Buffer same_screen(boolean value)
Sets the specified value to theXKeyEvent.same_screen()field.
-
-