public class XCreateWindowEvent
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 fromparent – parent of the windowwindow – window id of window createdx – window locationy – window locationwidth – size of windowheight – size of windowborder_width – border widthoverride_redirect – creation should be overridden
struct XCreateWindowEvent {
int type;
unsigned long serial;
Bool send_event;
Display * display;
Window parent;
Window window;
int x;
int y;
int width;
int height;
int border_width;
int override_redirect;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XCreateWindowEvent.Buffer
An array of
XCreateWindowEvent structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BORDER_WIDTH
The struct member offsets.
|
static int |
DISPLAY
The struct member offsets.
|
static int |
HEIGHT
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 |
WIDTH
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 |
|---|
XCreateWindowEvent(java.nio.ByteBuffer container)
Creates a
XCreateWindowEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
border_width()
Returns the value of the
border_width field. |
XCreateWindowEvent |
border_width(int value)
Sets the specified value to the
border_width field. |
static XCreateWindowEvent |
calloc()
Returns a new
XCreateWindowEvent instance allocated with memCalloc. |
static XCreateWindowEvent.Buffer |
calloc(int capacity)
Returns a new
XCreateWindowEvent.Buffer instance allocated with memCalloc. |
static XCreateWindowEvent |
callocStack()
Returns a new
XCreateWindowEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XCreateWindowEvent.Buffer |
callocStack(int capacity)
Returns a new
XCreateWindowEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XCreateWindowEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XCreateWindowEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XCreateWindowEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XCreateWindowEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XCreateWindowEvent |
create()
Returns a new
XCreateWindowEvent instance allocated with BufferUtils. |
static XCreateWindowEvent.Buffer |
create(int capacity)
Returns a new
XCreateWindowEvent.Buffer instance allocated with BufferUtils. |
static XCreateWindowEvent |
create(long address)
Returns a new
XCreateWindowEvent instance for the specified memory address. |
static XCreateWindowEvent.Buffer |
create(long address,
int capacity)
Create a
XCreateWindowEvent.Buffer instance at the specified memory. |
static XCreateWindowEvent |
createSafe(long address)
|
static XCreateWindowEvent.Buffer |
createSafe(long address,
int capacity)
|
long |
display()
Returns the value of the
display field. |
XCreateWindowEvent |
display(long value)
Sets the specified value to the
display field. |
int |
height()
Returns the value of the
height field. |
XCreateWindowEvent |
height(int value)
Sets the specified value to the
height field. |
static XCreateWindowEvent |
malloc()
Returns a new
XCreateWindowEvent instance allocated with memAlloc. |
static XCreateWindowEvent.Buffer |
malloc(int capacity)
Returns a new
XCreateWindowEvent.Buffer instance allocated with memAlloc. |
static XCreateWindowEvent |
mallocStack()
Returns a new
XCreateWindowEvent instance allocated on the thread-local MemoryStack. |
static XCreateWindowEvent.Buffer |
mallocStack(int capacity)
Returns a new
XCreateWindowEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XCreateWindowEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XCreateWindowEvent.Buffer instance allocated on the specified MemoryStack. |
static XCreateWindowEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XCreateWindowEvent instance allocated on the specified MemoryStack. |
static int |
nborder_width(long struct)
Unsafe version of
border_width(). |
static void |
nborder_width(long struct,
int value)
Unsafe version of
border_width. |
static long |
ndisplay(long struct)
Unsafe version of
display(). |
static void |
ndisplay(long struct,
long value)
Unsafe version of
display. |
static int |
nheight(long struct)
Unsafe version of
height(). |
static void |
nheight(long struct,
int value)
Unsafe version of
height. |
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 int |
nwidth(long struct)
Unsafe version of
width(). |
static void |
nwidth(long struct,
int value)
Unsafe version of
width. |
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. |
XCreateWindowEvent |
override_redirect(int value)
Sets the specified value to the
override_redirect field. |
long |
parent()
Returns the value of the
parent field. |
XCreateWindowEvent |
parent(long value)
Sets the specified value to the
parent field. |
boolean |
send_event()
Returns the value of the
send_event field. |
XCreateWindowEvent |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XCreateWindowEvent |
serial(long value)
Sets the specified value to the
serial field. |
XCreateWindowEvent |
set(int type,
long serial,
boolean send_event,
long display,
long parent,
long window,
int x,
int y,
int width,
int height,
int border_width,
int override_redirect)
Initializes this struct with the specified values.
|
XCreateWindowEvent |
set(XCreateWindowEvent src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
XCreateWindowEvent |
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. |
int |
width()
Returns the value of the
width field. |
XCreateWindowEvent |
width(int value)
Sets the specified value to the
width field. |
long |
window()
Returns the value of the
window field. |
XCreateWindowEvent |
window(long value)
Sets the specified value to the
window field. |
int |
x()
Returns the value of the
x field. |
XCreateWindowEvent |
x(int value)
Sets the specified value to the
x field. |
int |
y()
Returns the value of the
y field. |
XCreateWindowEvent |
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 PARENT
public static final int WINDOW
public static final int X
public static final int Y
public static final int WIDTH
public static final int HEIGHT
public static final int BORDER_WIDTH
public static final int OVERRIDE_REDIRECT
public XCreateWindowEvent(java.nio.ByteBuffer container)
XCreateWindowEvent 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 parent()
parent field.public long window()
window field.public int x()
x field.public int y()
y field.public int width()
width field.public int height()
height field.public int border_width()
border_width field.public int override_redirect()
override_redirect field.public XCreateWindowEvent type(int value)
type field.public XCreateWindowEvent serial(long value)
serial field.public XCreateWindowEvent send_event(boolean value)
send_event field.public XCreateWindowEvent display(long value)
display field.public XCreateWindowEvent parent(long value)
parent field.public XCreateWindowEvent window(long value)
window field.public XCreateWindowEvent x(int value)
x field.public XCreateWindowEvent y(int value)
y field.public XCreateWindowEvent width(int value)
width field.public XCreateWindowEvent height(int value)
height field.public XCreateWindowEvent border_width(int value)
border_width field.public XCreateWindowEvent override_redirect(int value)
override_redirect field.public XCreateWindowEvent set(int type, long serial, boolean send_event, long display, long parent, long window, int x, int y, int width, int height, int border_width, int override_redirect)
public XCreateWindowEvent set(XCreateWindowEvent src)
src - the source structpublic static XCreateWindowEvent malloc()
XCreateWindowEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XCreateWindowEvent calloc()
XCreateWindowEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XCreateWindowEvent create()
XCreateWindowEvent instance allocated with BufferUtils.public static XCreateWindowEvent create(long address)
XCreateWindowEvent instance for the specified memory address.@Nullable public static XCreateWindowEvent createSafe(long address)
public static XCreateWindowEvent.Buffer malloc(int capacity)
XCreateWindowEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XCreateWindowEvent.Buffer calloc(int capacity)
XCreateWindowEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XCreateWindowEvent.Buffer create(int capacity)
XCreateWindowEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XCreateWindowEvent.Buffer create(long address, int capacity)
XCreateWindowEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XCreateWindowEvent.Buffer createSafe(long address, int capacity)
public static XCreateWindowEvent mallocStack()
XCreateWindowEvent instance allocated on the thread-local MemoryStack.public static XCreateWindowEvent callocStack()
XCreateWindowEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XCreateWindowEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XCreateWindowEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XCreateWindowEvent callocStack(org.lwjgl.system.MemoryStack stack)
XCreateWindowEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XCreateWindowEvent.Buffer mallocStack(int capacity)
XCreateWindowEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XCreateWindowEvent.Buffer callocStack(int capacity)
XCreateWindowEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XCreateWindowEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XCreateWindowEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XCreateWindowEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XCreateWindowEvent.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 nparent(long struct)
parent().public static long nwindow(long struct)
window().public static int nx(long struct)
x().public static int ny(long struct)
y().public static int nwidth(long struct)
width().public static int nheight(long struct)
height().public static int nborder_width(long struct)
border_width().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 nparent(long struct,
long value)
parent.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 nwidth(long struct,
int value)
width.public static void nheight(long struct,
int value)
height.public static void nborder_width(long struct,
int value)
border_width.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.