Package org.lwjgl.system.linux
Class XGenericEventCookie.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XGenericEventCookie,XGenericEventCookie.Buffer>
-
- org.lwjgl.system.linux.XGenericEventCookie.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<XGenericEventCookie>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- XGenericEventCookie
public static class XGenericEventCookie.Buffer extends org.lwjgl.system.StructBuffer<XGenericEventCookie,XGenericEventCookie.Buffer> implements org.lwjgl.system.NativeResource
An array ofXGenericEventCookie
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
cookie()
XGenericEventCookie.Buffer
cookie(int value)
Sets the specified value to thecookie
field.java.nio.ByteBuffer
data(int capacity)
XGenericEventCookie.Buffer
data(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thedata
field.long
display()
XGenericEventCookie.Buffer
display(long value)
Sets the specified value to theXGenericEventCookie.display()
field.int
evtype()
XGenericEventCookie.Buffer
evtype(int value)
Sets the specified value to theXGenericEventCookie.evtype()
field.int
extension()
XGenericEventCookie.Buffer
extension(int value)
Sets the specified value to theXGenericEventCookie.extension()
field.boolean
send_event()
XGenericEventCookie.Buffer
send_event(boolean value)
Sets the specified value to theXGenericEventCookie.send_event()
field.long
serial()
XGenericEventCookie.Buffer
serial(long value)
Sets the specified value to theXGenericEventCookie.serial()
field.int
type()
XGenericEventCookie.Buffer
type(int value)
Sets the specified value to theXGenericEventCookie.type()
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXGenericEventCookie.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 byXGenericEventCookie.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
XGenericEventCookie.type()
field.
-
serial
public long serial()
- Returns:
- the value of the
XGenericEventCookie.serial()
field.
-
send_event
public boolean send_event()
- Returns:
- the value of the
XGenericEventCookie.send_event()
field.
-
display
public long display()
- Returns:
- the value of the
XGenericEventCookie.display()
field.
-
extension
public int extension()
- Returns:
- the value of the
XGenericEventCookie.extension()
field.
-
evtype
public int evtype()
- Returns:
- the value of the
XGenericEventCookie.evtype()
field.
-
cookie
public int cookie()
- Returns:
- the value of the
cookie
field.
-
data
public java.nio.ByteBuffer data(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
ByteBuffer
view of the data pointed to by thedata
field.
-
type
public XGenericEventCookie.Buffer type(int value)
Sets the specified value to theXGenericEventCookie.type()
field.
-
serial
public XGenericEventCookie.Buffer serial(long value)
Sets the specified value to theXGenericEventCookie.serial()
field.
-
send_event
public XGenericEventCookie.Buffer send_event(boolean value)
Sets the specified value to theXGenericEventCookie.send_event()
field.
-
display
public XGenericEventCookie.Buffer display(long value)
Sets the specified value to theXGenericEventCookie.display()
field.
-
extension
public XGenericEventCookie.Buffer extension(int value)
Sets the specified value to theXGenericEventCookie.extension()
field.
-
evtype
public XGenericEventCookie.Buffer evtype(int value)
Sets the specified value to theXGenericEventCookie.evtype()
field.
-
cookie
public XGenericEventCookie.Buffer cookie(int value)
Sets the specified value to thecookie
field.
-
data
public XGenericEventCookie.Buffer data(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thedata
field.
-
-