Package org.lwjgl.system.linux
Class XAnyEvent.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XAnyEvent,XAnyEvent.Buffer>
-
- org.lwjgl.system.linux.XAnyEvent.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<XAnyEvent>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- XAnyEvent
public static class XAnyEvent.Buffer extends org.lwjgl.system.StructBuffer<XAnyEvent,XAnyEvent.Buffer> implements org.lwjgl.system.NativeResource
An array ofXAnyEvent
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
display()
XAnyEvent.Buffer
display(long value)
Sets the specified value to theXAnyEvent.display()
field.boolean
send_event()
XAnyEvent.Buffer
send_event(boolean value)
Sets the specified value to theXAnyEvent.send_event()
field.long
serial()
XAnyEvent.Buffer
serial(long value)
Sets the specified value to theXAnyEvent.serial()
field.int
type()
XAnyEvent.Buffer
type(int value)
Sets the specified value to theXAnyEvent.type()
field.long
window()
XAnyEvent.Buffer
window(long value)
Sets the specified value to theXAnyEvent.window()
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXAnyEvent.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 byXAnyEvent.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
XAnyEvent.type()
field.
-
serial
public long serial()
- Returns:
- the value of the
XAnyEvent.serial()
field.
-
send_event
public boolean send_event()
- Returns:
- the value of the
XAnyEvent.send_event()
field.
-
display
public long display()
- Returns:
- the value of the
XAnyEvent.display()
field.
-
window
public long window()
- Returns:
- the value of the
XAnyEvent.window()
field.
-
type
public XAnyEvent.Buffer type(int value)
Sets the specified value to theXAnyEvent.type()
field.
-
serial
public XAnyEvent.Buffer serial(long value)
Sets the specified value to theXAnyEvent.serial()
field.
-
send_event
public XAnyEvent.Buffer send_event(boolean value)
Sets the specified value to theXAnyEvent.send_event()
field.
-
display
public XAnyEvent.Buffer display(long value)
Sets the specified value to theXAnyEvent.display()
field.
-
window
public XAnyEvent.Buffer window(long value)
Sets the specified value to theXAnyEvent.window()
field.
-
-