public class XMappingEvent
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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 fromwindow – window it reported relative torequest – one of:X11.MappingModifier | X11.MappingKeyboard | X11.MappingPointer |
first_keycode – first keycodecount – defines range of change w. first_keycode
struct XMappingEvent {
int type;
unsigned long serial;
Bool send_event;
Display * display;
Window window;
int request;
int first_keycode;
int count;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XMappingEvent.Buffer
An array of
XMappingEvent structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COUNT
The struct member offsets.
|
static int |
DISPLAY
The struct member offsets.
|
static int |
FIRST_KEYCODE
The struct member offsets.
|
static int |
REQUEST
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.
|
static int |
WINDOW
The struct member offsets.
|
| Constructor and Description |
|---|
XMappingEvent(java.nio.ByteBuffer container)
Creates a
XMappingEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XMappingEvent |
calloc()
Returns a new
XMappingEvent instance allocated with memCalloc. |
static XMappingEvent.Buffer |
calloc(int capacity)
Returns a new
XMappingEvent.Buffer instance allocated with memCalloc. |
static XMappingEvent |
callocStack()
Returns a new
XMappingEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XMappingEvent.Buffer |
callocStack(int capacity)
Returns a new
XMappingEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XMappingEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XMappingEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XMappingEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XMappingEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
count()
Returns the value of the
count field. |
XMappingEvent |
count(int value)
Sets the specified value to the
count field. |
static XMappingEvent |
create()
Returns a new
XMappingEvent instance allocated with BufferUtils. |
static XMappingEvent.Buffer |
create(int capacity)
Returns a new
XMappingEvent.Buffer instance allocated with BufferUtils. |
static XMappingEvent |
create(long address)
Returns a new
XMappingEvent instance for the specified memory address. |
static XMappingEvent.Buffer |
create(long address,
int capacity)
Create a
XMappingEvent.Buffer instance at the specified memory. |
static XMappingEvent |
createSafe(long address)
|
static XMappingEvent.Buffer |
createSafe(long address,
int capacity)
|
long |
display()
Returns the value of the
display field. |
XMappingEvent |
display(long value)
Sets the specified value to the
display field. |
int |
first_keycode()
Returns the value of the
first_keycode field. |
XMappingEvent |
first_keycode(int value)
Sets the specified value to the
first_keycode field. |
static XMappingEvent |
malloc()
Returns a new
XMappingEvent instance allocated with memAlloc. |
static XMappingEvent.Buffer |
malloc(int capacity)
Returns a new
XMappingEvent.Buffer instance allocated with memAlloc. |
static XMappingEvent |
mallocStack()
Returns a new
XMappingEvent instance allocated on the thread-local MemoryStack. |
static XMappingEvent.Buffer |
mallocStack(int capacity)
Returns a new
XMappingEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XMappingEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XMappingEvent.Buffer instance allocated on the specified MemoryStack. |
static XMappingEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XMappingEvent instance allocated on the specified MemoryStack. |
static int |
ncount(long struct)
Unsafe version of
count(). |
static void |
ncount(long struct,
int value)
Unsafe version of
count. |
static long |
ndisplay(long struct)
Unsafe version of
display(). |
static void |
ndisplay(long struct,
long value)
Unsafe version of
display. |
static int |
nfirst_keycode(long struct)
Unsafe version of
first_keycode(). |
static void |
nfirst_keycode(long struct,
int value)
Unsafe version of
first_keycode. |
static int |
nrequest(long struct)
Unsafe version of
request(). |
static void |
nrequest(long struct,
int value)
Unsafe version of
request. |
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. |
static long |
nwindow(long struct)
Unsafe version of
window(). |
static void |
nwindow(long struct,
long value)
Unsafe version of
window. |
int |
request()
Returns the value of the
request field. |
XMappingEvent |
request(int value)
Sets the specified value to the
request field. |
boolean |
send_event()
Returns the value of the
send_event field. |
XMappingEvent |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XMappingEvent |
serial(long value)
Sets the specified value to the
serial field. |
XMappingEvent |
set(int type,
long serial,
boolean send_event,
long display,
long window,
int request,
int first_keycode,
int count)
Initializes this struct with the specified values.
|
XMappingEvent |
set(XMappingEvent src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
XMappingEvent |
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. |
long |
window()
Returns the value of the
window field. |
XMappingEvent |
window(long value)
Sets the specified value to the
window field. |
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 WINDOW
public static final int REQUEST
public static final int FIRST_KEYCODE
public static final int COUNT
public XMappingEvent(java.nio.ByteBuffer container)
XMappingEvent 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 long window()
window field.public int request()
request field.public int first_keycode()
first_keycode field.public int count()
count field.public XMappingEvent type(int value)
type field.public XMappingEvent serial(long value)
serial field.public XMappingEvent send_event(boolean value)
send_event field.public XMappingEvent display(long value)
display field.public XMappingEvent window(long value)
window field.public XMappingEvent request(int value)
request field.public XMappingEvent first_keycode(int value)
first_keycode field.public XMappingEvent count(int value)
count field.public XMappingEvent set(int type, long serial, boolean send_event, long display, long window, int request, int first_keycode, int count)
public XMappingEvent set(XMappingEvent src)
src - the source structpublic static XMappingEvent malloc()
XMappingEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XMappingEvent calloc()
XMappingEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XMappingEvent create()
XMappingEvent instance allocated with BufferUtils.public static XMappingEvent create(long address)
XMappingEvent instance for the specified memory address.@Nullable public static XMappingEvent createSafe(long address)
public static XMappingEvent.Buffer malloc(int capacity)
XMappingEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XMappingEvent.Buffer calloc(int capacity)
XMappingEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XMappingEvent.Buffer create(int capacity)
XMappingEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XMappingEvent.Buffer create(long address, int capacity)
XMappingEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XMappingEvent.Buffer createSafe(long address, int capacity)
public static XMappingEvent mallocStack()
XMappingEvent instance allocated on the thread-local MemoryStack.public static XMappingEvent callocStack()
XMappingEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XMappingEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XMappingEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XMappingEvent callocStack(org.lwjgl.system.MemoryStack stack)
XMappingEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XMappingEvent.Buffer mallocStack(int capacity)
XMappingEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XMappingEvent.Buffer callocStack(int capacity)
XMappingEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XMappingEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XMappingEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XMappingEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XMappingEvent.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 long nwindow(long struct)
window().public static int nrequest(long struct)
request().public static int nfirst_keycode(long struct)
first_keycode().public static int ncount(long struct)
count().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 nwindow(long struct,
long value)
window.public static void nrequest(long struct,
int value)
request.public static void nfirst_keycode(long struct,
int value)
first_keycode.public static void ncount(long struct,
int value)
count.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.