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

public Class XCrossingEvent

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

Layout


struct XCrossingEvent {
    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;
    int mode;
    int detail;
    int same_screen;
    int focus;
    unsigned int state;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
DETAIL

The struct member offsets.

public static final int
DISPLAY

The struct member offsets.

public static final int
FOCUS

The struct member offsets.

public static final int
MODE

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
XCrossingEvent(long address, ByteBuffer container)

public
XCrossingEvent(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static XCrossingEvent
calloc()

Returns a new XCrossingEvent instance allocated with memCalloc.

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

Returns a new XCrossingEvent.Buffer instance allocated with memCalloc.

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

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

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

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

public static XCrossingEvent
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
protected XCrossingEvent
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 XCrossingEvent
create()

Returns a new XCrossingEvent instance allocated with BufferUtils.

public static XCrossingEvent
create(long address)

Returns a new XCrossingEvent instance for the specified memory address.

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

Returns a new XCrossingEvent.Buffer instance allocated with BufferUtils.

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

Create a XCrossingEvent.Buffer instance at the specified memory.

public static XCrossingEvent
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public int

Returns:

the value of the detail field.
detail
()

public XCrossingEvent
detail(int value)

Sets the specified value to the detail field.

public long
display()

Display the event was read from

public XCrossingEvent
display(long value)

Sets the specified value to the display field.

public int
focus()

boolean focus

public XCrossingEvent
focus(int value)

Sets the specified value to the focus field.

public static XCrossingEvent
malloc()

Returns a new XCrossingEvent instance allocated with memAlloc.

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

Returns a new XCrossingEvent.Buffer instance allocated with memAlloc.

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

Returns a new XCrossingEvent instance allocated on the specified MemoryStack.

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

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

public static XCrossingEvent
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public int
public XCrossingEvent
mode(int value)

Sets the specified value to the mode field.

public static int
ndetail(long struct)

Unsafe version of detail.

public static void
ndetail(long struct, int value)

Unsafe version of detail.

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
nfocus(long struct)

Unsafe version of focus.

public static void
nfocus(long struct, int value)

Unsafe version of focus.

public static int
nmode(long struct)

Unsafe version of mode.

public static void
nmode(long struct, int value)

Unsafe version of mode.

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 XCrossingEvent
root(long value)

Sets the specified value to the root field.

public int
same_screen()

same screen flag

public XCrossingEvent
same_screen(int value)

Sets the specified value to the same_screen field.

public boolean
send_event()

true if this came from an X11#XSendEvent request

public XCrossingEvent
send_event(boolean value)

Sets the specified value to the send_event field.

public long
serial()

# of last request processed by server

public XCrossingEvent
serial(long value)

Sets the specified value to the serial field.

public XCrossingEvent
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 mode, int detail, int same_screen, int focus, int state)

Initializes this struct with the specified values.

public XCrossingEvent

Returns:

this struct
set
(XCrossingEvent
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 or button mask

public XCrossingEvent
state(int value)

Sets the specified value to the state field.

public long
subwindow()

child window

public XCrossingEvent
subwindow(long value)

Sets the specified value to the subwindow field.

public long
time()

milliseconds

public XCrossingEvent
time(long value)

Sets the specified value to the time field.

public int
type()

of event

public XCrossingEvent
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 XCrossingEvent
window(long value)

Sets the specified value to the window field.

public int
x()

pointer x coordinate in event window

public XCrossingEvent
x(int value)

Sets the specified value to the x field.

public int
x_root()

x coordinate relative to root

public XCrossingEvent
x_root(int value)

Sets the specified value to the x_root field.

public int
y()

pointer y coordinate in event window

public XCrossingEvent
y(int value)

Sets the specified value to the y field.

public int
y_root()

y coordinate relative to root

public XCrossingEvent
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