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 ofXMappingEvent
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count()
XMappingEvent.Buffer
count(int value)
Sets the specified value to theXMappingEvent.count()
field.long
display()
XMappingEvent.Buffer
display(long value)
Sets the specified value to theXMappingEvent.display()
field.int
first_keycode()
XMappingEvent.Buffer
first_keycode(int value)
Sets the specified value to theXMappingEvent.first_keycode()
field.int
request()
XMappingEvent.Buffer
request(int value)
Sets the specified value to theXMappingEvent.request()
field.boolean
send_event()
XMappingEvent.Buffer
send_event(boolean value)
Sets the specified value to theXMappingEvent.send_event()
field.long
serial()
XMappingEvent.Buffer
serial(long value)
Sets the specified value to theXMappingEvent.serial()
field.int
type()
XMappingEvent.Buffer
type(int value)
Sets the specified value to thetype
field.long
window()
XMappingEvent.Buffer
window(long value)
Sets the specified value to theXMappingEvent.window()
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXMappingEvent.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 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
type
field.
-
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 thetype
field.
-
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.
-
-