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

public Class XEvent

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

This union is defined so Xlib can always use the same sized event structure internally, to avoid memory fragmentation.

Layout


union XEvent {
    int type;
    XAnyEvent xany;
    XKeyEvent xkey;
    XButtonEvent xbutton;
    XMotionEvent xmotion;
    XCrossingEvent xcrossing;
    XFocusChangeEvent xfocus;
    XExposeEvent xexpose;
    XGraphicsExposeEvent xgraphicsexpose;
    XNoExposeEvent xnoexpose;
    XVisibilityEvent xvisibility;
    XCreateWindowEvent xcreatewindow;
    XDestroyWindowEvent xdestroywindow;
    XUnmapEvent xunmap;
    XMapEvent xmap;
    XMapRequestEvent xmaprequest;
    XReparentEvent xreparent;
    XConfigureEvent xconfigure;
    XGravityEvent xgravity;
    XResizeRequestEvent xresizerequest;
    XConfigureRequestEvent xconfigurerequest;
    XCirculateEvent xcirculate;
    XCirculateRequestEvent xcirculaterequest;
    XPropertyEvent xproperty;
    XSelectionClearEvent xselectionclear;
    XSelectionRequestEvent xselectionrequest;
    XSelectionEvent xselection;
    XColormapEvent xcolormap;
    XClientMessageEvent xclient;
    XMappingEvent xmapping;
    XErrorEvent xerror;
    XKeymapEvent xkeymap;
    XGenericEvent xgeneric;
    XGenericEventCookie xcookie;
    long[24];
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
XEvent.Buffer

An array of XEvent structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TYPE

The struct member offsets.

public static final int
XANY

The struct member offsets.

public static final int
XBUTTON

The struct member offsets.

public static final int
XCIRCULATE

The struct member offsets.

public static final int
XCIRCULATEREQUEST

The struct member offsets.

public static final int
XCLIENT

The struct member offsets.

public static final int
XCOLORMAP

The struct member offsets.

public static final int
XCONFIGURE

The struct member offsets.

public static final int
XCONFIGUREREQUEST

The struct member offsets.

public static final int
XCOOKIE

The struct member offsets.

public static final int
XCREATEWINDOW

The struct member offsets.

public static final int
XCROSSING

The struct member offsets.

public static final int
XDESTROYWINDOW

The struct member offsets.

public static final int
XERROR

The struct member offsets.

public static final int
XEXPOSE

The struct member offsets.

public static final int
XFOCUS

The struct member offsets.

public static final int
XGENERIC

The struct member offsets.

public static final int
XGRAPHICSEXPOSE

The struct member offsets.

public static final int
XGRAVITY

The struct member offsets.

public static final int
XKEY

The struct member offsets.

public static final int
XKEYMAP

The struct member offsets.

public static final int
XMAP

The struct member offsets.

public static final int
XMAPPING

The struct member offsets.

public static final int
XMAPREQUEST

The struct member offsets.

public static final int
XMOTION

The struct member offsets.

public static final int
XNOEXPOSE

The struct member offsets.

public static final int
XPROPERTY

The struct member offsets.

public static final int
XREPARENT

The struct member offsets.

public static final int
XRESIZEREQUEST

The struct member offsets.

public static final int
XSELECTION

The struct member offsets.

public static final int
XSELECTIONCLEAR

The struct member offsets.

public static final int
XSELECTIONREQUEST

The struct member offsets.

public static final int
XUNMAP

The struct member offsets.

public static final int
XVISIBILITY

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
XEvent(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static XEvent
calloc()

Returns a new XEvent instance allocated with memCalloc.

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

Returns a new XEvent.Buffer instance allocated with memCalloc.

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

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

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

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

public static XEvent
callocStack()

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

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

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

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

Returns a new XEvent instance allocated with BufferUtils.

public static XEvent
create(long address)

Returns a new XEvent instance for the specified memory address.

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

Returns a new XEvent.Buffer instance allocated with BufferUtils.

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

Create a XEvent.Buffer instance at the specified memory.

public static XEvent
createSafe(long address)

Like create, but returns null if address is NULL.

public static XEvent.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static XEvent
malloc()

Returns a new XEvent instance allocated with memAlloc.

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

Returns a new XEvent.Buffer instance allocated with memAlloc.

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

Returns a new XEvent instance allocated on the specified MemoryStack.

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

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

public static XEvent
mallocStack()

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

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

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

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

Unsafe version of type.

public static XAnyEvent
nxany(long struct)

Unsafe version of xany.

public static XButtonEvent
nxbutton(long struct)

Unsafe version of xbutton.

public static XCirculateEvent
nxcirculate(long struct)

Unsafe version of xcirculate.

public static XCirculateRequestEvent
nxcirculaterequest(long struct)

Unsafe version of xcirculaterequest.

public static XClientMessageEvent
nxclient(long struct)

Unsafe version of xclient.

public static XColormapEvent
nxcolormap(long struct)

Unsafe version of xcolormap.

public static XConfigureEvent
nxconfigure(long struct)

Unsafe version of xconfigure.

public static XConfigureRequestEvent
nxconfigurerequest(long struct)

Unsafe version of xconfigurerequest.

public static XGenericEventCookie
nxcookie(long struct)

Unsafe version of xcookie.

public static XCreateWindowEvent
nxcreatewindow(long struct)

Unsafe version of xcreatewindow.

public static XCrossingEvent
nxcrossing(long struct)

Unsafe version of xcrossing.

public static XDestroyWindowEvent
nxdestroywindow(long struct)

Unsafe version of xdestroywindow.

public static XErrorEvent
nxerror(long struct)

Unsafe version of xerror.

public static XExposeEvent
nxexpose(long struct)

Unsafe version of xexpose.

public static XFocusChangeEvent
nxfocus(long struct)

Unsafe version of xfocus.

public static XGenericEvent
nxgeneric(long struct)

Unsafe version of xgeneric.

public static XGraphicsExposeEvent
nxgraphicsexpose(long struct)

Unsafe version of xgraphicsexpose.

public static XGravityEvent
nxgravity(long struct)

Unsafe version of xgravity.

public static XKeyEvent
nxkey(long struct)

Unsafe version of xkey.

public static XKeymapEvent
nxkeymap(long struct)

Unsafe version of xkeymap.

public static XMapEvent
nxmap(long struct)

Unsafe version of xmap.

public static XMappingEvent
nxmapping(long struct)

Unsafe version of xmapping.

public static XMapRequestEvent
nxmaprequest(long struct)

Unsafe version of xmaprequest.

public static XMotionEvent
nxmotion(long struct)

Unsafe version of xmotion.

public static XNoExposeEvent
nxnoexpose(long struct)

Unsafe version of xnoexpose.

public static XPropertyEvent
nxproperty(long struct)

Unsafe version of xproperty.

public static XReparentEvent
nxreparent(long struct)

Unsafe version of xreparent.

public static XResizeRequestEvent
nxresizerequest(long struct)

Unsafe version of xresizerequest.

public static XSelectionEvent
nxselection(long struct)

Unsafe version of xselection.

public static XSelectionClearEvent
nxselectionclear(long struct)

Unsafe version of xselectionclear.

public static XSelectionRequestEvent
nxselectionrequest(long struct)

Unsafe version of xselectionrequest.

public static XUnmapEvent
nxunmap(long struct)

Unsafe version of xunmap.

public static XVisibilityEvent
nxvisibility(long struct)

Unsafe version of xvisibility.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int

Returns:

the value of the type field.
type
()

public XAnyEvent

Returns:

a XAnyEvent view of the xany field.
xany
()

public XButtonEvent

Returns:

a XButtonEvent view of the xbutton field.
xbutton
()

public XCirculateEvent

Returns:

a XCirculateEvent view of the xcirculate field.
xcirculate
()

public XCirculateRequestEvent

Returns:

a XCirculateRequestEvent view of the xcirculaterequest field.
xcirculaterequest
()

public XClientMessageEvent

Returns:

a XClientMessageEvent view of the xclient field.
xclient
()

public XColormapEvent

Returns:

a XColormapEvent view of the xcolormap field.
xcolormap
()

public XConfigureEvent

Returns:

a XConfigureEvent view of the xconfigure field.
xconfigure
()

public XConfigureRequestEvent

Returns:

a XConfigureRequestEvent view of the xconfigurerequest field.
xconfigurerequest
()

public XGenericEventCookie

Returns:

a XGenericEventCookie view of the xcookie field.
xcookie
()

public XCreateWindowEvent

Returns:

a XCreateWindowEvent view of the xcreatewindow field.
xcreatewindow
()

public XCrossingEvent

Returns:

a XCrossingEvent view of the xcrossing field.
xcrossing
()

public XDestroyWindowEvent

Returns:

a XDestroyWindowEvent view of the xdestroywindow field.
xdestroywindow
()

public XErrorEvent

Returns:

a XErrorEvent view of the xerror field.
xerror
()

public XExposeEvent

Returns:

a XExposeEvent view of the xexpose field.
xexpose
()

public XFocusChangeEvent

Returns:

a XFocusChangeEvent view of the xfocus field.
xfocus
()

public XGenericEvent

Returns:

a XGenericEvent view of the xgeneric field.
xgeneric
()

public XGraphicsExposeEvent

Returns:

a XGraphicsExposeEvent view of the xgraphicsexpose field.
xgraphicsexpose
()

public XGravityEvent

Returns:

a XGravityEvent view of the xgravity field.
xgravity
()

public XKeyEvent

Returns:

a XKeyEvent view of the xkey field.
xkey
()

public XKeymapEvent

Returns:

a XKeymapEvent view of the xkeymap field.
xkeymap
()

public XMapEvent

Returns:

a XMapEvent view of the xmap field.
xmap
()

public XMappingEvent

Returns:

a XMappingEvent view of the xmapping field.
xmapping
()

public XMapRequestEvent

Returns:

a XMapRequestEvent view of the xmaprequest field.
xmaprequest
()

public XMotionEvent

Returns:

a XMotionEvent view of the xmotion field.
xmotion
()

public XNoExposeEvent

Returns:

a XNoExposeEvent view of the xnoexpose field.
xnoexpose
()

public XPropertyEvent

Returns:

a XPropertyEvent view of the xproperty field.
xproperty
()

public XReparentEvent

Returns:

a XReparentEvent view of the xreparent field.
xreparent
()

public XResizeRequestEvent

Returns:

a XResizeRequestEvent view of the xresizerequest field.
xresizerequest
()

public XSelectionEvent

Returns:

a XSelectionEvent view of the xselection field.
xselection
()

public XSelectionClearEvent

Returns:

a XSelectionClearEvent view of the xselectionclear field.
xselectionclear
()

public XSelectionRequestEvent

Returns:

a XSelectionRequestEvent view of the xselectionrequest field.
xselectionrequest
()

public XUnmapEvent

Returns:

a XUnmapEvent view of the xunmap field.
xunmap
()

public XVisibilityEvent

Returns:

a XVisibilityEvent view of the xvisibility field.
xvisibility
()

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate