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

public Class XMotionEvent

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

Motion event.

Layout


struct XMotionEvent {
    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;
    char is_hint;
    Bool same_screen;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
XMotionEvent.Buffer

An array of XMotionEvent 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
IS_HINT

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

public
XMotionEvent(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static XMotionEvent
calloc()

Returns a new XMotionEvent instance allocated with memCalloc.

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

Returns a new XMotionEvent.Buffer instance allocated with memCalloc.

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

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

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

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

public static XMotionEvent
callocStack()

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

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

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

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

Returns a new XMotionEvent instance allocated with BufferUtils.

public static XMotionEvent
create(long address)

Returns a new XMotionEvent instance for the specified memory address.

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

Returns a new XMotionEvent.Buffer instance allocated with BufferUtils.

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

Create a XMotionEvent.Buffer instance at the specified memory.

public static XMotionEvent
createSafe(long address)

Like create, but returns null if address is NULL.

public static XMotionEvent.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 XMotionEvent
display(long value)

Sets the specified value to the display field.

public byte
is_hint()

detail

public XMotionEvent
is_hint(byte value)

Sets the specified value to the is_hint field.

public static XMotionEvent
malloc()

Returns a new XMotionEvent instance allocated with memAlloc.

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

Returns a new XMotionEvent.Buffer instance allocated with memAlloc.

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

Returns a new XMotionEvent instance allocated on the specified MemoryStack.

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

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

public static XMotionEvent
mallocStack()

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

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

Deprecated
Deprecated for removal in 3.4.0.
public static XMotionEvent.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 byte
nis_hint(long struct)

Unsafe version of is_hint.

public static void
nis_hint(long struct, byte value)

Unsafe version of is_hint.

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

Sets the specified value to the root field.

public boolean
same_screen()

same screen flag

public XMotionEvent
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 XMotionEvent
send_event(boolean value)

Sets the specified value to the send_event field.

public long
serial()

# of last request processed by server

public XMotionEvent
serial(long value)

Sets the specified value to the serial field.

public XMotionEvent
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, byte is_hint, boolean same_screen)

Initializes this struct with the specified values.

public XMotionEvent

Returns:

this struct
set
(XMotionEvent
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 XMotionEvent
state(int value)

Sets the specified value to the state field.

public long
subwindow()

child window

public XMotionEvent
subwindow(long value)

Sets the specified value to the subwindow field.

public long
time()

milliseconds

public XMotionEvent
time(long value)

Sets the specified value to the time field.

public int
type()

the event type.

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

Sets the specified value to the window field.

public int
x()

pointer x coordinate in event window

public XMotionEvent
x(int value)

Sets the specified value to the x field.

public int
x_root()

x coordinate relative to root

public XMotionEvent
x_root(int value)

Sets the specified value to the x_root field.

public int
y()

pointer y coordinate in event window

public XMotionEvent
y(int value)

Sets the specified value to the y field.

public int
y_root()

y coordinate relative to root

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