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