Package org.lwjgl.system.linux
Class XMappingEvent.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XMappingEvent,XMappingEvent.Buffer>
-
- org.lwjgl.system.linux.XMappingEvent.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XMappingEvent>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XMappingEvent
public static class XMappingEvent.Buffer extends org.lwjgl.system.StructBuffer<XMappingEvent,XMappingEvent.Buffer> implements org.lwjgl.system.NativeResource
An array ofXMappingEventstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount()XMappingEvent.Buffercount(int value)Sets the specified value to theXMappingEvent.count()field.longdisplay()XMappingEvent.Bufferdisplay(long value)Sets the specified value to theXMappingEvent.display()field.intfirst_keycode()XMappingEvent.Bufferfirst_keycode(int value)Sets the specified value to theXMappingEvent.first_keycode()field.intrequest()XMappingEvent.Bufferrequest(int value)Sets the specified value to theXMappingEvent.request()field.booleansend_event()XMappingEvent.Buffersend_event(boolean value)Sets the specified value to theXMappingEvent.send_event()field.longserial()XMappingEvent.Bufferserial(long value)Sets the specified value to theXMappingEvent.serial()field.inttype()XMappingEvent.Buffertype(int value)Sets the specified value to thetypefield.longwindow()XMappingEvent.Bufferwindow(long value)Sets the specified value to theXMappingEvent.window()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXMappingEvent.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 byXMappingEvent.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
typefield.
-
serial
public long serial()
- Returns:
- the value of the
XMappingEvent.serial()field.
-
send_event
public boolean send_event()
- Returns:
- the value of the
XMappingEvent.send_event()field.
-
display
public long display()
- Returns:
- the value of the
XMappingEvent.display()field.
-
window
public long window()
- Returns:
- the value of the
XMappingEvent.window()field.
-
request
public int request()
- Returns:
- the value of the
XMappingEvent.request()field.
-
first_keycode
public int first_keycode()
- Returns:
- the value of the
XMappingEvent.first_keycode()field.
-
count
public int count()
- Returns:
- the value of the
XMappingEvent.count()field.
-
type
public XMappingEvent.Buffer type(int value)
Sets the specified value to thetypefield.
-
serial
public XMappingEvent.Buffer serial(long value)
Sets the specified value to theXMappingEvent.serial()field.
-
send_event
public XMappingEvent.Buffer send_event(boolean value)
Sets the specified value to theXMappingEvent.send_event()field.
-
display
public XMappingEvent.Buffer display(long value)
Sets the specified value to theXMappingEvent.display()field.
-
window
public XMappingEvent.Buffer window(long value)
Sets the specified value to theXMappingEvent.window()field.
-
request
public XMappingEvent.Buffer request(int value)
Sets the specified value to theXMappingEvent.request()field.
-
first_keycode
public XMappingEvent.Buffer first_keycode(int value)
Sets the specified value to theXMappingEvent.first_keycode()field.
-
count
public XMappingEvent.Buffer count(int value)
Sets the specified value to theXMappingEvent.count()field.
-
-