public class XCrossingEvent
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
type – of eventserial – # 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 toroot – root window that the event occurred onsubwindow – child windowtime – millisecondsx – pointer x coordinate in event windowy – pointer y coordinate in event windowx_root – x coordinate relative to rooty_root – y coordinate relative to rootmode – one of:X11.NotifyNormal | X11.NotifyGrab | X11.NotifyUngrab |
same_screen – same screen flagfocus – boolean focusstate – key or button mask
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XCrossingEvent.Buffer
An array of
XCrossingEvent structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DETAIL
The struct member offsets.
|
static int |
DISPLAY
The struct member offsets.
|
static int |
FOCUS
The struct member offsets.
|
static int |
MODE
The struct member offsets.
|
static int |
ROOT
The struct member offsets.
|
static int |
SAME_SCREEN
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 |
STATE
The struct member offsets.
|
static int |
SUBWINDOW
The struct member offsets.
|
static int |
TIME
The struct member offsets.
|
static int |
TYPE
The struct member offsets.
|
static int |
WINDOW
The struct member offsets.
|
static int |
X
The struct member offsets.
|
static int |
X_ROOT
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
static int |
Y_ROOT
The struct member offsets.
|
| Constructor and Description |
|---|
XCrossingEvent(java.nio.ByteBuffer container)
Creates a
XCrossingEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XCrossingEvent |
calloc()
Returns a new
XCrossingEvent instance allocated with memCalloc. |
static XCrossingEvent.Buffer |
calloc(int capacity)
Returns a new
XCrossingEvent.Buffer instance allocated with memCalloc. |
static XCrossingEvent |
callocStack()
Returns a new
XCrossingEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XCrossingEvent.Buffer |
callocStack(int capacity)
Returns a new
XCrossingEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XCrossingEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XCrossingEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XCrossingEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XCrossingEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XCrossingEvent |
create()
Returns a new
XCrossingEvent instance allocated with BufferUtils. |
static XCrossingEvent.Buffer |
create(int capacity)
Returns a new
XCrossingEvent.Buffer instance allocated with BufferUtils. |
static XCrossingEvent |
create(long address)
Returns a new
XCrossingEvent instance for the specified memory address. |
static XCrossingEvent.Buffer |
create(long address,
int capacity)
Create a
XCrossingEvent.Buffer instance at the specified memory. |
static XCrossingEvent |
createSafe(long address)
|
static XCrossingEvent.Buffer |
createSafe(long address,
int capacity)
|
int |
detail()
Returns the value of the
detail field. |
XCrossingEvent |
detail(int value)
Sets the specified value to the
detail field. |
long |
display()
Returns the value of the
display field. |
XCrossingEvent |
display(long value)
Sets the specified value to the
display field. |
int |
focus()
Returns the value of the
focus field. |
XCrossingEvent |
focus(int value)
Sets the specified value to the
focus field. |
static XCrossingEvent |
malloc()
Returns a new
XCrossingEvent instance allocated with memAlloc. |
static XCrossingEvent.Buffer |
malloc(int capacity)
Returns a new
XCrossingEvent.Buffer instance allocated with memAlloc. |
static XCrossingEvent |
mallocStack()
Returns a new
XCrossingEvent instance allocated on the thread-local MemoryStack. |
static XCrossingEvent.Buffer |
mallocStack(int capacity)
Returns a new
XCrossingEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XCrossingEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XCrossingEvent.Buffer instance allocated on the specified MemoryStack. |
static XCrossingEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XCrossingEvent instance allocated on the specified MemoryStack. |
int |
mode()
Returns the value of the
mode field. |
XCrossingEvent |
mode(int value)
Sets the specified value to the
mode field. |
static int |
ndetail(long struct)
Unsafe version of
detail(). |
static void |
ndetail(long struct,
int value)
Unsafe version of
detail. |
static long |
ndisplay(long struct)
Unsafe version of
display(). |
static void |
ndisplay(long struct,
long value)
Unsafe version of
display. |
static int |
nfocus(long struct)
Unsafe version of
focus(). |
static void |
nfocus(long struct,
int value)
Unsafe version of
focus. |
static int |
nmode(long struct)
Unsafe version of
mode(). |
static void |
nmode(long struct,
int value)
Unsafe version of
mode. |
static long |
nroot(long struct)
Unsafe version of
root(). |
static void |
nroot(long struct,
long value)
Unsafe version of
root. |
static int |
nsame_screen(long struct)
Unsafe version of
same_screen(). |
static void |
nsame_screen(long struct,
int value)
Unsafe version of
same_screen. |
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 |
nstate(long struct)
Unsafe version of
state(). |
static void |
nstate(long struct,
int value)
Unsafe version of
state. |
static long |
nsubwindow(long struct)
Unsafe version of
subwindow(). |
static void |
nsubwindow(long struct,
long value)
Unsafe version of
subwindow. |
static long |
ntime(long struct)
Unsafe version of
time(). |
static void |
ntime(long struct,
long value)
Unsafe version of
time. |
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. |
static int |
nx_root(long struct)
Unsafe version of
x_root(). |
static void |
nx_root(long struct,
int value)
Unsafe version of
x_root. |
static int |
nx(long struct)
Unsafe version of
x(). |
static void |
nx(long struct,
int value)
Unsafe version of
x. |
static int |
ny_root(long struct)
Unsafe version of
y_root(). |
static void |
ny_root(long struct,
int value)
Unsafe version of
y_root. |
static int |
ny(long struct)
Unsafe version of
y(). |
static void |
ny(long struct,
int value)
Unsafe version of
y. |
long |
root()
Returns the value of the
root field. |
XCrossingEvent |
root(long value)
Sets the specified value to the
root field. |
int |
same_screen()
Returns the value of the
same_screen field. |
XCrossingEvent |
same_screen(int value)
Sets the specified value to the
same_screen field. |
boolean |
send_event()
Returns the value of the
send_event field. |
XCrossingEvent |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XCrossingEvent |
serial(long value)
Sets the specified value to the
serial field. |
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.
|
XCrossingEvent |
set(XCrossingEvent src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
state()
Returns the value of the
state field. |
XCrossingEvent |
state(int value)
Sets the specified value to the
state field. |
long |
subwindow()
Returns the value of the
subwindow field. |
XCrossingEvent |
subwindow(long value)
Sets the specified value to the
subwindow field. |
long |
time()
Returns the value of the
time field. |
XCrossingEvent |
time(long value)
Sets the specified value to the
time field. |
int |
type()
Returns the value of the
type field. |
XCrossingEvent |
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. |
XCrossingEvent |
window(long value)
Sets the specified value to the
window field. |
int |
x_root()
Returns the value of the
x_root field. |
XCrossingEvent |
x_root(int value)
Sets the specified value to the
x_root field. |
int |
x()
Returns the value of the
x field. |
XCrossingEvent |
x(int value)
Sets the specified value to the
x field. |
int |
y_root()
Returns the value of the
y_root field. |
XCrossingEvent |
y_root(int value)
Sets the specified value to the
y_root field. |
int |
y()
Returns the value of the
y field. |
XCrossingEvent |
y(int value)
Sets the specified value to the
y 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 ROOT
public static final int SUBWINDOW
public static final int TIME
public static final int X
public static final int Y
public static final int X_ROOT
public static final int Y_ROOT
public static final int MODE
public static final int DETAIL
public static final int SAME_SCREEN
public static final int FOCUS
public static final int STATE
public XCrossingEvent(java.nio.ByteBuffer container)
XCrossingEvent 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 long root()
root field.public long subwindow()
subwindow field.public long time()
time field.public int x()
x field.public int y()
y field.public int x_root()
x_root field.public int y_root()
y_root field.public int mode()
mode field.public int detail()
detail field.public int same_screen()
same_screen field.public int focus()
focus field.public int state()
state field.public XCrossingEvent type(int value)
type field.public XCrossingEvent serial(long value)
serial field.public XCrossingEvent send_event(boolean value)
send_event field.public XCrossingEvent display(long value)
display field.public XCrossingEvent window(long value)
window field.public XCrossingEvent root(long value)
root field.public XCrossingEvent subwindow(long value)
subwindow field.public XCrossingEvent time(long value)
time field.public XCrossingEvent x(int value)
x field.public XCrossingEvent y(int value)
y field.public XCrossingEvent x_root(int value)
x_root field.public XCrossingEvent y_root(int value)
y_root field.public XCrossingEvent mode(int value)
mode field.public XCrossingEvent detail(int value)
detail field.public XCrossingEvent same_screen(int value)
same_screen field.public XCrossingEvent focus(int value)
focus field.public XCrossingEvent state(int value)
state 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)
public XCrossingEvent set(XCrossingEvent src)
src - the source structpublic static XCrossingEvent malloc()
XCrossingEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XCrossingEvent calloc()
XCrossingEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XCrossingEvent create()
XCrossingEvent instance allocated with BufferUtils.public static XCrossingEvent create(long address)
XCrossingEvent instance for the specified memory address.@Nullable public static XCrossingEvent createSafe(long address)
public static XCrossingEvent.Buffer malloc(int capacity)
XCrossingEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XCrossingEvent.Buffer calloc(int capacity)
XCrossingEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XCrossingEvent.Buffer create(int capacity)
XCrossingEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XCrossingEvent.Buffer create(long address, int capacity)
XCrossingEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XCrossingEvent.Buffer createSafe(long address, int capacity)
public static XCrossingEvent mallocStack()
XCrossingEvent instance allocated on the thread-local MemoryStack.public static XCrossingEvent callocStack()
XCrossingEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XCrossingEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XCrossingEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XCrossingEvent callocStack(org.lwjgl.system.MemoryStack stack)
XCrossingEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XCrossingEvent.Buffer mallocStack(int capacity)
XCrossingEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XCrossingEvent.Buffer callocStack(int capacity)
XCrossingEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XCrossingEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XCrossingEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XCrossingEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XCrossingEvent.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 long nroot(long struct)
root().public static long nsubwindow(long struct)
subwindow().public static long ntime(long struct)
time().public static int nx(long struct)
x().public static int ny(long struct)
y().public static int nx_root(long struct)
x_root().public static int ny_root(long struct)
y_root().public static int nmode(long struct)
mode().public static int ndetail(long struct)
detail().public static int nsame_screen(long struct)
same_screen().public static int nfocus(long struct)
focus().public static int nstate(long struct)
state().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 nroot(long struct,
long value)
root.public static void nsubwindow(long struct,
long value)
subwindow.public static void ntime(long struct,
long value)
time.public static void nx(long struct,
int value)
x.public static void ny(long struct,
int value)
y.public static void nx_root(long struct,
int value)
x_root.public static void ny_root(long struct,
int value)
y_root.public static void nmode(long struct,
int value)
mode.public static void ndetail(long struct,
int value)
detail.public static void nsame_screen(long struct,
int value)
same_screen.public static void nfocus(long struct,
int value)
focus.public static void nstate(long struct,
int value)
state.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.