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