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 ofXGenericEventCookiestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcookie()XGenericEventCookie.Buffercookie(int value)Sets the specified value to thecookiefield.java.nio.ByteBufferdata(int capacity)XGenericEventCookie.Bufferdata(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thedatafield.longdisplay()XGenericEventCookie.Bufferdisplay(long value)Sets the specified value to theXGenericEventCookie.display()field.intevtype()XGenericEventCookie.Bufferevtype(int value)Sets the specified value to theXGenericEventCookie.evtype()field.intextension()XGenericEventCookie.Bufferextension(int value)Sets the specified value to theXGenericEventCookie.extension()field.booleansend_event()XGenericEventCookie.Buffersend_event(boolean value)Sets the specified value to theXGenericEventCookie.send_event()field.longserial()XGenericEventCookie.Bufferserial(long value)Sets the specified value to theXGenericEventCookie.serial()field.inttype()XGenericEventCookie.Buffertype(int value)Sets the specified value to theXGenericEventCookie.type()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXGenericEventCookie.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 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
cookiefield.
-
data
public java.nio.ByteBuffer data(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by thedatafield.
-
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 thecookiefield.
-
data
public XGenericEventCookie.Buffer data(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thedatafield.
-
-