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