Top Description Inners Fields Constructors Methods
org.lwjgl.system.linux

public Class XKeyEvent

extends Struct<XKeyEvent>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Key event.

Layout


struct XKeyEvent {
    int type;
    unsigned long serial;
    Bool send_event;
    Display * display;
    Window window;
    Window root;
    Window subwindow;
    Time time;
    int x;
    int y;
    int x_root;
    int y_root;
    unsigned int state;
    unsigned int keycode;
    Bool same_screen;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
XKeyEvent.Buffer

An array of XKeyEvent structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
DISPLAY

The struct member offsets.

public static final int
KEYCODE

The struct member offsets.

public static final int
ROOT

The struct member offsets.

public static final int
SAME_SCREEN

The struct member offsets.

public static final int
SEND_EVENT

The struct member offsets.

public static final int
SERIAL

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STATE

The struct member offsets.

public static final int
SUBWINDOW

The struct member offsets.

public static final int
TIME

The struct member offsets.

public static final int
TYPE

The struct member offsets.

public static final int
WINDOW

The struct member offsets.

public static final int
X

The struct member offsets.

public static final int
X_ROOT

The struct member offsets.

public static final int
Y

The struct member offsets.

public static final int
Y_ROOT

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
XKeyEvent(long address, ByteBuffer container)

public
XKeyEvent(ByteBuffer container)

Creates a XKeyEvent instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static XKeyEvent
calloc()

Returns a new XKeyEvent instance allocated with memCalloc.

public static XKeyEvent.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new XKeyEvent.Buffer instance allocated with memCalloc.

public static XKeyEvent
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XKeyEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XKeyEvent.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XKeyEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XKeyEvent
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static XKeyEvent
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static XKeyEvent.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static XKeyEvent.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected XKeyEvent
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static XKeyEvent
create()

Returns a new XKeyEvent instance allocated with BufferUtils.

public static XKeyEvent
create(long address)

Returns a new XKeyEvent instance for the specified memory address.

public static XKeyEvent.Buffer
create(int
the buffer capacity
capacity
)

Returns a new XKeyEvent.Buffer instance allocated with BufferUtils.

public static XKeyEvent.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a XKeyEvent.Buffer instance at the specified memory.

public static XKeyEvent
createSafe(long address)

Like create, but returns null if address is NULL.

public static XKeyEvent.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long
display()

Display the event was read from

public XKeyEvent
display(long value)

Sets the specified value to the display field.

public int
keycode()

detail

public XKeyEvent
keycode(int value)

Sets the specified value to the keycode field.

public static XKeyEvent
malloc()

Returns a new XKeyEvent instance allocated with memAlloc.

public static XKeyEvent.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new XKeyEvent.Buffer instance allocated with memAlloc.

public static XKeyEvent
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XKeyEvent instance allocated on the specified MemoryStack.

public static XKeyEvent.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XKeyEvent.Buffer instance allocated on the specified MemoryStack.

public static XKeyEvent
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static XKeyEvent
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static XKeyEvent.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static XKeyEvent.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static long
ndisplay(long struct)

Unsafe version of display.

public static void
ndisplay(long struct, long value)

Unsafe version of display.

public static int
nkeycode(long struct)

Unsafe version of keycode.

public static void
nkeycode(long struct, int value)

Unsafe version of keycode.

public static long
nroot(long struct)

Unsafe version of root.

public static void
nroot(long struct, long value)

Unsafe version of root.

public static int
nsame_screen(long struct)

Unsafe version of same_screen.

public static void
nsame_screen(long struct, int value)

Unsafe version of same_screen.

public static int
nsend_event(long struct)

Unsafe version of send_event.

public static void
nsend_event(long struct, int value)

Unsafe version of send_event.

public static long
nserial(long struct)

Unsafe version of serial.

public static void
nserial(long struct, long value)

Unsafe version of serial.

public static int
nstate(long struct)

Unsafe version of state.

public static void
nstate(long struct, int value)

Unsafe version of state.

public static long
nsubwindow(long struct)

Unsafe version of subwindow.

public static void
nsubwindow(long struct, long value)

Unsafe version of subwindow.

public static long
ntime(long struct)

Unsafe version of time.

public static void
ntime(long struct, long value)

Unsafe version of time.

public static int
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public static long
nwindow(long struct)

Unsafe version of window.

public static void
nwindow(long struct, long value)

Unsafe version of window.

public static int
nx(long struct)

Unsafe version of x.

public static void
nx(long struct, int value)

Unsafe version of x.

public static int
nx_root(long struct)

Unsafe version of x_root.

public static void
nx_root(long struct, int value)

Unsafe version of x_root.

public static int
ny(long struct)

Unsafe version of y.

public static void
ny(long struct, int value)

Unsafe version of y.

public static int
ny_root(long struct)

Unsafe version of y_root.

public static void
ny_root(long struct, int value)

Unsafe version of y_root.

public long
root()

root window that the event occurred on

public XKeyEvent
root(long value)

Sets the specified value to the root field.

public boolean
same_screen()

same screen flag

public XKeyEvent
same_screen(boolean value)

Sets the specified value to the same_screen field.

public boolean
send_event()

true if this came from an X11#XSendEvent request

public XKeyEvent
send_event(boolean value)

Sets the specified value to the send_event field.

public long
serial()

# of last request processed by server

public XKeyEvent
serial(long value)

Sets the specified value to the serial field.

public XKeyEvent
set(int type, long serial, boolean send_event, long display, long window, long root, long subwindow, long time, int x, int y, int x_root, int y_root, int state, int keycode, boolean same_screen)

Initializes this struct with the specified values.

public XKeyEvent

Returns:

this struct
set
(XKeyEvent
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
state()

key mask

public XKeyEvent
state(int value)

Sets the specified value to the state field.

public long
subwindow()

child window

public XKeyEvent
subwindow(long value)

Sets the specified value to the subwindow field.

public long
time()

milliseconds

public XKeyEvent
time(long value)

Sets the specified value to the time field.

public int
type()

the event type.

public XKeyEvent
type(int value)

Sets the specified value to the type field.

public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public long
window()

window it reported relative to

public XKeyEvent
window(long value)

Sets the specified value to the window field.

public int
x()

pointer x coordinate in event window

public XKeyEvent
x(int value)

Sets the specified value to the x field.

public int
x_root()

x coordinate relative to root

public XKeyEvent
x_root(int value)

Sets the specified value to the x_root field.

public int
y()

pointer y coordinate in event window

public XKeyEvent
y(int value)

Sets the specified value to the y field.

public int
y_root()

y coordinate relative to root

public XKeyEvent
y_root(int value)

Sets the specified value to the y_root field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate