public class XGenericEventCookie
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
XGenericEvent.
type – of event. Must be:X11.GenericEvent |
serial – # of last request processed by serversend_event – true if this came from an X11.XSendEvent(long, long, boolean, long, org.lwjgl.system.linux.XEvent) requestdisplay – Display the event was read fromextension – major opcode of extension that caused the eventevtype – actual event type
struct XGenericEventCookie {
int type;
unsigned long serial;
Bool send_event;
Display * display;
int extension;
int evtype;
unsigned int cookie;
void * data;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XGenericEventCookie.Buffer
An array of
XGenericEventCookie structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COOKIE
The struct member offsets.
|
static int |
DATA
The struct member offsets.
|
static int |
DISPLAY
The struct member offsets.
|
static int |
EVTYPE
The struct member offsets.
|
static int |
EXTENSION
The struct member offsets.
|
static int |
SEND_EVENT
The struct member offsets.
|
static int |
SERIAL
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
XGenericEventCookie(java.nio.ByteBuffer container)
Creates a
XGenericEventCookie instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XGenericEventCookie |
calloc()
Returns a new
XGenericEventCookie instance allocated with memCalloc. |
static XGenericEventCookie.Buffer |
calloc(int capacity)
Returns a new
XGenericEventCookie.Buffer instance allocated with memCalloc. |
static XGenericEventCookie |
callocStack()
Returns a new
XGenericEventCookie instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XGenericEventCookie.Buffer |
callocStack(int capacity)
Returns a new
XGenericEventCookie.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XGenericEventCookie.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XGenericEventCookie.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XGenericEventCookie |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XGenericEventCookie instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
cookie()
Returns the value of the
cookie field. |
XGenericEventCookie |
cookie(int value)
Sets the specified value to the
cookie field. |
static XGenericEventCookie |
create()
Returns a new
XGenericEventCookie instance allocated with BufferUtils. |
static XGenericEventCookie.Buffer |
create(int capacity)
Returns a new
XGenericEventCookie.Buffer instance allocated with BufferUtils. |
static XGenericEventCookie |
create(long address)
Returns a new
XGenericEventCookie instance for the specified memory address. |
static XGenericEventCookie.Buffer |
create(long address,
int capacity)
Create a
XGenericEventCookie.Buffer instance at the specified memory. |
static XGenericEventCookie |
createSafe(long address)
|
static XGenericEventCookie.Buffer |
createSafe(long address,
int capacity)
|
XGenericEventCookie |
data(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the data field. |
java.nio.ByteBuffer |
data(int capacity)
Returns a
ByteBuffer view of the data pointed to by the data field. |
long |
display()
Returns the value of the
display field. |
XGenericEventCookie |
display(long value)
Sets the specified value to the
display field. |
int |
evtype()
Returns the value of the
evtype field. |
XGenericEventCookie |
evtype(int value)
Sets the specified value to the
evtype field. |
int |
extension()
Returns the value of the
extension field. |
XGenericEventCookie |
extension(int value)
Sets the specified value to the
extension field. |
static XGenericEventCookie |
malloc()
Returns a new
XGenericEventCookie instance allocated with memAlloc. |
static XGenericEventCookie.Buffer |
malloc(int capacity)
Returns a new
XGenericEventCookie.Buffer instance allocated with memAlloc. |
static XGenericEventCookie |
mallocStack()
Returns a new
XGenericEventCookie instance allocated on the thread-local MemoryStack. |
static XGenericEventCookie.Buffer |
mallocStack(int capacity)
Returns a new
XGenericEventCookie.Buffer instance allocated on the thread-local MemoryStack. |
static XGenericEventCookie.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XGenericEventCookie.Buffer instance allocated on the specified MemoryStack. |
static XGenericEventCookie |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XGenericEventCookie instance allocated on the specified MemoryStack. |
static int |
ncookie(long struct)
Unsafe version of
cookie(). |
static void |
ncookie(long struct,
int value)
Unsafe version of
cookie. |
static void |
ndata(long struct,
java.nio.ByteBuffer value)
Unsafe version of
data. |
static java.nio.ByteBuffer |
ndata(long struct,
int capacity)
Unsafe version of
data. |
static long |
ndisplay(long struct)
Unsafe version of
display(). |
static void |
ndisplay(long struct,
long value)
Unsafe version of
display. |
static int |
nevtype(long struct)
Unsafe version of
evtype(). |
static void |
nevtype(long struct,
int value)
Unsafe version of
evtype. |
static int |
nextension(long struct)
Unsafe version of
extension(). |
static void |
nextension(long struct,
int value)
Unsafe version of
extension. |
static int |
nsend_event(long struct)
Unsafe version of
send_event(). |
static void |
nsend_event(long struct,
int value)
Unsafe version of
send_event. |
static long |
nserial(long struct)
Unsafe version of
serial(). |
static void |
nserial(long struct,
long value)
Unsafe version of
serial. |
static int |
ntype(long struct)
Unsafe version of
type(). |
static void |
ntype(long struct,
int value)
Unsafe version of
type. |
boolean |
send_event()
Returns the value of the
send_event field. |
XGenericEventCookie |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XGenericEventCookie |
serial(long value)
Sets the specified value to the
serial field. |
XGenericEventCookie |
set(int type,
long serial,
boolean send_event,
long display,
int extension,
int evtype,
int cookie,
java.nio.ByteBuffer data)
Initializes this struct with the specified values.
|
XGenericEventCookie |
set(XGenericEventCookie src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
XGenericEventCookie |
type(int value)
Sets the specified value to the
type field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TYPE
public static final int SERIAL
public static final int SEND_EVENT
public static final int DISPLAY
public static final int EXTENSION
public static final int EVTYPE
public static final int COOKIE
public static final int DATA
public XGenericEventCookie(java.nio.ByteBuffer container)
XGenericEventCookie instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int type()
type field.public long serial()
serial field.public boolean send_event()
send_event field.public long display()
display field.public int extension()
extension field.public int evtype()
evtype field.public int cookie()
cookie field.public java.nio.ByteBuffer data(int capacity)
ByteBuffer view of the data pointed to by the data field.capacity - the number of elements in the returned bufferpublic XGenericEventCookie type(int value)
type field.public XGenericEventCookie serial(long value)
serial field.public XGenericEventCookie send_event(boolean value)
send_event field.public XGenericEventCookie display(long value)
display field.public XGenericEventCookie extension(int value)
extension field.public XGenericEventCookie evtype(int value)
evtype field.public XGenericEventCookie cookie(int value)
cookie field.public XGenericEventCookie data(java.nio.ByteBuffer value)
ByteBuffer to the data field.public XGenericEventCookie set(int type, long serial, boolean send_event, long display, int extension, int evtype, int cookie, java.nio.ByteBuffer data)
public XGenericEventCookie set(XGenericEventCookie src)
src - the source structpublic static XGenericEventCookie malloc()
XGenericEventCookie instance allocated with memAlloc. The instance must be explicitly freed.public static XGenericEventCookie calloc()
XGenericEventCookie instance allocated with memCalloc. The instance must be explicitly freed.public static XGenericEventCookie create()
XGenericEventCookie instance allocated with BufferUtils.public static XGenericEventCookie create(long address)
XGenericEventCookie instance for the specified memory address.@Nullable public static XGenericEventCookie createSafe(long address)
public static XGenericEventCookie.Buffer malloc(int capacity)
XGenericEventCookie.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XGenericEventCookie.Buffer calloc(int capacity)
XGenericEventCookie.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XGenericEventCookie.Buffer create(int capacity)
XGenericEventCookie.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XGenericEventCookie.Buffer create(long address, int capacity)
XGenericEventCookie.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XGenericEventCookie.Buffer createSafe(long address, int capacity)
public static XGenericEventCookie mallocStack()
XGenericEventCookie instance allocated on the thread-local MemoryStack.public static XGenericEventCookie callocStack()
XGenericEventCookie instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XGenericEventCookie mallocStack(org.lwjgl.system.MemoryStack stack)
XGenericEventCookie instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XGenericEventCookie callocStack(org.lwjgl.system.MemoryStack stack)
XGenericEventCookie instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XGenericEventCookie.Buffer mallocStack(int capacity)
XGenericEventCookie.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XGenericEventCookie.Buffer callocStack(int capacity)
XGenericEventCookie.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XGenericEventCookie.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XGenericEventCookie.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XGenericEventCookie.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XGenericEventCookie.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int ntype(long struct)
type().public static long nserial(long struct)
serial().public static int nsend_event(long struct)
send_event().public static long ndisplay(long struct)
display().public static int nextension(long struct)
extension().public static int nevtype(long struct)
evtype().public static int ncookie(long struct)
cookie().public static java.nio.ByteBuffer ndata(long struct,
int capacity)
data.public static void ntype(long struct,
int value)
type.public static void nserial(long struct,
long value)
serial.public static void nsend_event(long struct,
int value)
send_event.public static void ndisplay(long struct,
long value)
display.public static void nextension(long struct,
int value)
extension.public static void nevtype(long struct,
int value)
evtype.public static void ncookie(long struct,
int value)
cookie.public static void ndata(long struct,
java.nio.ByteBuffer value)
data.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.