public class XGenericEvent
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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 XGenericEvent {
int type;
unsigned long serial;
Bool send_event;
Display * display;
int extension;
int evtype;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XGenericEvent.Buffer
An array of
XGenericEvent structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
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 |
|---|
XGenericEvent(java.nio.ByteBuffer container)
Creates a
XGenericEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XGenericEvent |
calloc()
Returns a new
XGenericEvent instance allocated with memCalloc. |
static XGenericEvent.Buffer |
calloc(int capacity)
Returns a new
XGenericEvent.Buffer instance allocated with memCalloc. |
static XGenericEvent |
callocStack()
Returns a new
XGenericEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XGenericEvent.Buffer |
callocStack(int capacity)
Returns a new
XGenericEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XGenericEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XGenericEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XGenericEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XGenericEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XGenericEvent |
create()
Returns a new
XGenericEvent instance allocated with BufferUtils. |
static XGenericEvent.Buffer |
create(int capacity)
Returns a new
XGenericEvent.Buffer instance allocated with BufferUtils. |
static XGenericEvent |
create(long address)
Returns a new
XGenericEvent instance for the specified memory address. |
static XGenericEvent.Buffer |
create(long address,
int capacity)
Create a
XGenericEvent.Buffer instance at the specified memory. |
static XGenericEvent |
createSafe(long address)
|
static XGenericEvent.Buffer |
createSafe(long address,
int capacity)
|
long |
display()
Returns the value of the
display field. |
XGenericEvent |
display(long value)
Sets the specified value to the
display field. |
int |
evtype()
Returns the value of the
evtype field. |
XGenericEvent |
evtype(int value)
Sets the specified value to the
evtype field. |
int |
extension()
Returns the value of the
extension field. |
XGenericEvent |
extension(int value)
Sets the specified value to the
extension field. |
static XGenericEvent |
malloc()
Returns a new
XGenericEvent instance allocated with memAlloc. |
static XGenericEvent.Buffer |
malloc(int capacity)
Returns a new
XGenericEvent.Buffer instance allocated with memAlloc. |
static XGenericEvent |
mallocStack()
Returns a new
XGenericEvent instance allocated on the thread-local MemoryStack. |
static XGenericEvent.Buffer |
mallocStack(int capacity)
Returns a new
XGenericEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XGenericEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XGenericEvent.Buffer instance allocated on the specified MemoryStack. |
static XGenericEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XGenericEvent instance allocated on the specified MemoryStack. |
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. |
XGenericEvent |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XGenericEvent |
serial(long value)
Sets the specified value to the
serial field. |
XGenericEvent |
set(int type,
long serial,
boolean send_event,
long display,
int extension,
int evtype)
Initializes this struct with the specified values.
|
XGenericEvent |
set(XGenericEvent src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
XGenericEvent |
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 XGenericEvent(java.nio.ByteBuffer container)
XGenericEvent 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 XGenericEvent type(int value)
type field.public XGenericEvent serial(long value)
serial field.public XGenericEvent send_event(boolean value)
send_event field.public XGenericEvent display(long value)
display field.public XGenericEvent extension(int value)
extension field.public XGenericEvent evtype(int value)
evtype field.public XGenericEvent set(int type, long serial, boolean send_event, long display, int extension, int evtype)
public XGenericEvent set(XGenericEvent src)
src - the source structpublic static XGenericEvent malloc()
XGenericEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XGenericEvent calloc()
XGenericEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XGenericEvent create()
XGenericEvent instance allocated with BufferUtils.public static XGenericEvent create(long address)
XGenericEvent instance for the specified memory address.@Nullable public static XGenericEvent createSafe(long address)
public static XGenericEvent.Buffer malloc(int capacity)
XGenericEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XGenericEvent.Buffer calloc(int capacity)
XGenericEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XGenericEvent.Buffer create(int capacity)
XGenericEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XGenericEvent.Buffer create(long address, int capacity)
XGenericEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XGenericEvent.Buffer createSafe(long address, int capacity)
public static XGenericEvent mallocStack()
XGenericEvent instance allocated on the thread-local MemoryStack.public static XGenericEvent callocStack()
XGenericEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XGenericEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XGenericEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XGenericEvent callocStack(org.lwjgl.system.MemoryStack stack)
XGenericEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XGenericEvent.Buffer mallocStack(int capacity)
XGenericEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XGenericEvent.Buffer callocStack(int capacity)
XGenericEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XGenericEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XGenericEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XGenericEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XGenericEvent.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 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 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.