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

public Class XCreateWindowEvent

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

Layout


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;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BORDER_WIDTH

The struct member offsets.

public static final int
DISPLAY

The struct member offsets.

public static final int
HEIGHT

The struct member offsets.

public static final int
OVERRIDE_REDIRECT

The struct member offsets.

public static final int
PARENT

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
TYPE

The struct member offsets.

public static final int
WIDTH

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
Y

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
XCreateWindowEvent(long address, ByteBuffer container)

public
XCreateWindowEvent(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public int
border_width()

border width

public XCreateWindowEvent
border_width(int value)

Sets the specified value to the border_width field.

public static XCreateWindowEvent
calloc()

Returns a new XCreateWindowEvent instance allocated with memCalloc.

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

Returns a new XCreateWindowEvent.Buffer instance allocated with memCalloc.

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

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

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

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

public static XCreateWindowEvent
callocStack()

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

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

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

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

Returns a new XCreateWindowEvent instance allocated with BufferUtils.

public static XCreateWindowEvent
create(long address)

Returns a new XCreateWindowEvent instance for the specified memory address.

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

Returns a new XCreateWindowEvent.Buffer instance allocated with BufferUtils.

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

Create a XCreateWindowEvent.Buffer instance at the specified memory.

public static XCreateWindowEvent
createSafe(long address)

Like create, but returns null if address is NULL.

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

Sets the specified value to the display field.

public int
height()

size of window

public XCreateWindowEvent
height(int value)

Sets the specified value to the height field.

public static XCreateWindowEvent
malloc()

Returns a new XCreateWindowEvent instance allocated with memAlloc.

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

Returns a new XCreateWindowEvent.Buffer instance allocated with memAlloc.

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

Returns a new XCreateWindowEvent instance allocated on the specified MemoryStack.

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

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

public static XCreateWindowEvent
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public static int
nborder_width(long struct)

Unsafe version of border_width.

public static void
nborder_width(long struct, int value)

Unsafe version of border_width.

public static long
ndisplay(long struct)

Unsafe version of display.

public static void
ndisplay(long struct, long value)

Unsafe version of display.

public static int
nheight(long struct)

Unsafe version of height.

public static void
nheight(long struct, int value)

Unsafe version of height.

public static int
noverride_redirect(long struct)

Unsafe version of override_redirect.

public static void
noverride_redirect(long struct, int value)

Unsafe version of override_redirect.

public static long
nparent(long struct)

Unsafe version of parent.

public static void
nparent(long struct, long value)

Unsafe version of parent.

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
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public static int
nwidth(long struct)

Unsafe version of width.

public static void
nwidth(long struct, int value)

Unsafe version of width.

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
ny(long struct)

Unsafe version of y.

public static void
ny(long struct, int value)

Unsafe version of y.

public int
override_redirect()

creation should be overridden

public XCreateWindowEvent
override_redirect(int value)

Sets the specified value to the override_redirect field.

public long
parent()

parent of the window

public XCreateWindowEvent
parent(long value)

Sets the specified value to the parent field.

public boolean
send_event()

true if this came from an X11#XSendEvent request

public XCreateWindowEvent
send_event(boolean value)

Sets the specified value to the send_event field.

public long
serial()

# of last request processed by server

public XCreateWindowEvent
serial(long value)

Sets the specified value to the serial 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)

Initializes this struct with the specified values.

public XCreateWindowEvent

Returns:

this struct
set
(XCreateWindowEvent
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

Returns:

the value of the type field.
type
()

public XCreateWindowEvent
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 int
width()

size of window

public XCreateWindowEvent
width(int value)

Sets the specified value to the width field.

public long
window()

window id of window created

public XCreateWindowEvent
window(long value)

Sets the specified value to the window field.

public int
x()

window location

public XCreateWindowEvent
x(int value)

Sets the specified value to the x field.

public int
y()

window location

public XCreateWindowEvent
y(int value)

Sets the specified value to the y field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate