public class XEvent
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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 pad[24];
}| Modifier and Type | Class and Description |
|---|---|
static class |
XEvent.Buffer
An array of
XEvent structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PAD
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
static int |
XANY
The struct member offsets.
|
static int |
XBUTTON
The struct member offsets.
|
static int |
XCIRCULATE
The struct member offsets.
|
static int |
XCIRCULATEREQUEST
The struct member offsets.
|
static int |
XCLIENT
The struct member offsets.
|
static int |
XCOLORMAP
The struct member offsets.
|
static int |
XCONFIGURE
The struct member offsets.
|
static int |
XCONFIGUREREQUEST
The struct member offsets.
|
static int |
XCOOKIE
The struct member offsets.
|
static int |
XCREATEWINDOW
The struct member offsets.
|
static int |
XCROSSING
The struct member offsets.
|
static int |
XDESTROYWINDOW
The struct member offsets.
|
static int |
XERROR
The struct member offsets.
|
static int |
XEXPOSE
The struct member offsets.
|
static int |
XFOCUS
The struct member offsets.
|
static int |
XGENERIC
The struct member offsets.
|
static int |
XGRAPHICSEXPOSE
The struct member offsets.
|
static int |
XGRAVITY
The struct member offsets.
|
static int |
XKEY
The struct member offsets.
|
static int |
XKEYMAP
The struct member offsets.
|
static int |
XMAP
The struct member offsets.
|
static int |
XMAPPING
The struct member offsets.
|
static int |
XMAPREQUEST
The struct member offsets.
|
static int |
XMOTION
The struct member offsets.
|
static int |
XNOEXPOSE
The struct member offsets.
|
static int |
XPROPERTY
The struct member offsets.
|
static int |
XREPARENT
The struct member offsets.
|
static int |
XRESIZEREQUEST
The struct member offsets.
|
static int |
XSELECTION
The struct member offsets.
|
static int |
XSELECTIONCLEAR
The struct member offsets.
|
static int |
XSELECTIONREQUEST
The struct member offsets.
|
static int |
XUNMAP
The struct member offsets.
|
static int |
XVISIBILITY
The struct member offsets.
|
| Constructor and Description |
|---|
XEvent(java.nio.ByteBuffer container)
Creates a
XEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XEvent |
calloc()
Returns a new
XEvent instance allocated with memCalloc. |
static XEvent.Buffer |
calloc(int capacity)
Returns a new
XEvent.Buffer instance allocated with memCalloc. |
static XEvent |
callocStack()
Returns a new
XEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XEvent.Buffer |
callocStack(int capacity)
Returns a new
XEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XEvent |
create()
Returns a new
XEvent instance allocated with BufferUtils. |
static XEvent.Buffer |
create(int capacity)
Returns a new
XEvent.Buffer instance allocated with BufferUtils. |
static XEvent |
create(long address)
Returns a new
XEvent instance for the specified memory address. |
static XEvent.Buffer |
create(long address,
int capacity)
Create a
XEvent.Buffer instance at the specified memory. |
static XEvent |
createSafe(long address)
|
static XEvent.Buffer |
createSafe(long address,
int capacity)
|
static XEvent |
malloc()
Returns a new
XEvent instance allocated with memAlloc. |
static XEvent.Buffer |
malloc(int capacity)
Returns a new
XEvent.Buffer instance allocated with memAlloc. |
static XEvent |
mallocStack()
Returns a new
XEvent instance allocated on the thread-local MemoryStack. |
static XEvent.Buffer |
mallocStack(int capacity)
Returns a new
XEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XEvent.Buffer instance allocated on the specified MemoryStack. |
static XEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XEvent instance allocated on the specified MemoryStack. |
static org.lwjgl.CLongBuffer |
npad(long struct) |
static long |
npad(long struct,
int index) |
static int |
ntype(long struct)
Unsafe version of
type(). |
static XAnyEvent |
nxany(long struct)
Unsafe version of
xany(). |
static XButtonEvent |
nxbutton(long struct)
Unsafe version of
xbutton(). |
static XCirculateEvent |
nxcirculate(long struct)
Unsafe version of
xcirculate(). |
static XCirculateRequestEvent |
nxcirculaterequest(long struct)
Unsafe version of
xcirculaterequest(). |
static XClientMessageEvent |
nxclient(long struct)
Unsafe version of
xclient(). |
static XColormapEvent |
nxcolormap(long struct)
Unsafe version of
xcolormap(). |
static XConfigureEvent |
nxconfigure(long struct)
Unsafe version of
xconfigure(). |
static XConfigureRequestEvent |
nxconfigurerequest(long struct)
Unsafe version of
xconfigurerequest(). |
static XGenericEventCookie |
nxcookie(long struct)
Unsafe version of
xcookie(). |
static XCreateWindowEvent |
nxcreatewindow(long struct)
Unsafe version of
xcreatewindow(). |
static XCrossingEvent |
nxcrossing(long struct)
Unsafe version of
xcrossing(). |
static XDestroyWindowEvent |
nxdestroywindow(long struct)
Unsafe version of
xdestroywindow(). |
static XErrorEvent |
nxerror(long struct)
Unsafe version of
xerror(). |
static XExposeEvent |
nxexpose(long struct)
Unsafe version of
xexpose(). |
static XFocusChangeEvent |
nxfocus(long struct)
Unsafe version of
xfocus(). |
static XGenericEvent |
nxgeneric(long struct)
Unsafe version of
xgeneric(). |
static XGraphicsExposeEvent |
nxgraphicsexpose(long struct)
Unsafe version of
xgraphicsexpose(). |
static XGravityEvent |
nxgravity(long struct)
Unsafe version of
xgravity(). |
static XKeyEvent |
nxkey(long struct)
Unsafe version of
xkey(). |
static XKeymapEvent |
nxkeymap(long struct)
Unsafe version of
xkeymap(). |
static XMapEvent |
nxmap(long struct)
Unsafe version of
xmap(). |
static XMappingEvent |
nxmapping(long struct)
Unsafe version of
xmapping(). |
static XMapRequestEvent |
nxmaprequest(long struct)
Unsafe version of
xmaprequest(). |
static XMotionEvent |
nxmotion(long struct)
Unsafe version of
xmotion(). |
static XNoExposeEvent |
nxnoexpose(long struct)
Unsafe version of
xnoexpose(). |
static XPropertyEvent |
nxproperty(long struct)
Unsafe version of
xproperty(). |
static XReparentEvent |
nxreparent(long struct)
Unsafe version of
xreparent(). |
static XResizeRequestEvent |
nxresizerequest(long struct)
Unsafe version of
xresizerequest(). |
static XSelectionEvent |
nxselection(long struct)
Unsafe version of
xselection(). |
static XSelectionClearEvent |
nxselectionclear(long struct)
Unsafe version of
xselectionclear(). |
static XSelectionRequestEvent |
nxselectionrequest(long struct)
Unsafe version of
xselectionrequest(). |
static XUnmapEvent |
nxunmap(long struct)
Unsafe version of
xunmap(). |
static XVisibilityEvent |
nxvisibility(long struct)
Unsafe version of
xvisibility(). |
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
XAnyEvent |
xany()
Returns a
XAnyEvent view of the xany field. |
XButtonEvent |
xbutton()
Returns a
XButtonEvent view of the xbutton field. |
XCirculateEvent |
xcirculate()
Returns a
XCirculateEvent view of the xcirculate field. |
XCirculateRequestEvent |
xcirculaterequest()
Returns a
XCirculateRequestEvent view of the xcirculaterequest field. |
XClientMessageEvent |
xclient()
Returns a
XClientMessageEvent view of the xclient field. |
XColormapEvent |
xcolormap()
Returns a
XColormapEvent view of the xcolormap field. |
XConfigureEvent |
xconfigure()
Returns a
XConfigureEvent view of the xconfigure field. |
XConfigureRequestEvent |
xconfigurerequest()
Returns a
XConfigureRequestEvent view of the xconfigurerequest field. |
XGenericEventCookie |
xcookie()
Returns a
XGenericEventCookie view of the xcookie field. |
XCreateWindowEvent |
xcreatewindow()
Returns a
XCreateWindowEvent view of the xcreatewindow field. |
XCrossingEvent |
xcrossing()
Returns a
XCrossingEvent view of the xcrossing field. |
XDestroyWindowEvent |
xdestroywindow()
Returns a
XDestroyWindowEvent view of the xdestroywindow field. |
XErrorEvent |
xerror()
Returns a
XErrorEvent view of the xerror field. |
XExposeEvent |
xexpose()
Returns a
XExposeEvent view of the xexpose field. |
XFocusChangeEvent |
xfocus()
Returns a
XFocusChangeEvent view of the xfocus field. |
XGenericEvent |
xgeneric()
Returns a
XGenericEvent view of the xgeneric field. |
XGraphicsExposeEvent |
xgraphicsexpose()
Returns a
XGraphicsExposeEvent view of the xgraphicsexpose field. |
XGravityEvent |
xgravity()
Returns a
XGravityEvent view of the xgravity field. |
XKeyEvent |
xkey()
Returns a
XKeyEvent view of the xkey field. |
XKeymapEvent |
xkeymap()
Returns a
XKeymapEvent view of the xkeymap field. |
XMapEvent |
xmap()
Returns a
XMapEvent view of the xmap field. |
XMappingEvent |
xmapping()
Returns a
XMappingEvent view of the xmapping field. |
XMapRequestEvent |
xmaprequest()
Returns a
XMapRequestEvent view of the xmaprequest field. |
XMotionEvent |
xmotion()
Returns a
XMotionEvent view of the xmotion field. |
XNoExposeEvent |
xnoexpose()
Returns a
XNoExposeEvent view of the xnoexpose field. |
XPropertyEvent |
xproperty()
Returns a
XPropertyEvent view of the xproperty field. |
XReparentEvent |
xreparent()
Returns a
XReparentEvent view of the xreparent field. |
XResizeRequestEvent |
xresizerequest()
Returns a
XResizeRequestEvent view of the xresizerequest field. |
XSelectionEvent |
xselection()
Returns a
XSelectionEvent view of the xselection field. |
XSelectionClearEvent |
xselectionclear()
Returns a
XSelectionClearEvent view of the xselectionclear field. |
XSelectionRequestEvent |
xselectionrequest()
Returns a
XSelectionRequestEvent view of the xselectionrequest field. |
XUnmapEvent |
xunmap()
Returns a
XUnmapEvent view of the xunmap field. |
XVisibilityEvent |
xvisibility()
Returns a
XVisibilityEvent view of the xvisibility field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TYPE
public static final int XANY
public static final int XKEY
public static final int XBUTTON
public static final int XMOTION
public static final int XCROSSING
public static final int XFOCUS
public static final int XEXPOSE
public static final int XGRAPHICSEXPOSE
public static final int XNOEXPOSE
public static final int XVISIBILITY
public static final int XCREATEWINDOW
public static final int XDESTROYWINDOW
public static final int XUNMAP
public static final int XMAP
public static final int XMAPREQUEST
public static final int XREPARENT
public static final int XCONFIGURE
public static final int XGRAVITY
public static final int XRESIZEREQUEST
public static final int XCONFIGUREREQUEST
public static final int XCIRCULATE
public static final int XCIRCULATEREQUEST
public static final int XPROPERTY
public static final int XSELECTIONCLEAR
public static final int XSELECTIONREQUEST
public static final int XSELECTION
public static final int XCOLORMAP
public static final int XCLIENT
public static final int XMAPPING
public static final int XERROR
public static final int XKEYMAP
public static final int XGENERIC
public static final int XCOOKIE
public static final int PAD
public XEvent(java.nio.ByteBuffer container)
XEvent 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 XButtonEvent xbutton()
XButtonEvent view of the xbutton field.public XMotionEvent xmotion()
XMotionEvent view of the xmotion field.public XCrossingEvent xcrossing()
XCrossingEvent view of the xcrossing field.public XFocusChangeEvent xfocus()
XFocusChangeEvent view of the xfocus field.public XExposeEvent xexpose()
XExposeEvent view of the xexpose field.public XGraphicsExposeEvent xgraphicsexpose()
XGraphicsExposeEvent view of the xgraphicsexpose field.public XNoExposeEvent xnoexpose()
XNoExposeEvent view of the xnoexpose field.public XVisibilityEvent xvisibility()
XVisibilityEvent view of the xvisibility field.public XCreateWindowEvent xcreatewindow()
XCreateWindowEvent view of the xcreatewindow field.public XDestroyWindowEvent xdestroywindow()
XDestroyWindowEvent view of the xdestroywindow field.public XUnmapEvent xunmap()
XUnmapEvent view of the xunmap field.public XMapRequestEvent xmaprequest()
XMapRequestEvent view of the xmaprequest field.public XReparentEvent xreparent()
XReparentEvent view of the xreparent field.public XConfigureEvent xconfigure()
XConfigureEvent view of the xconfigure field.public XGravityEvent xgravity()
XGravityEvent view of the xgravity field.public XResizeRequestEvent xresizerequest()
XResizeRequestEvent view of the xresizerequest field.public XConfigureRequestEvent xconfigurerequest()
XConfigureRequestEvent view of the xconfigurerequest field.public XCirculateEvent xcirculate()
XCirculateEvent view of the xcirculate field.public XCirculateRequestEvent xcirculaterequest()
XCirculateRequestEvent view of the xcirculaterequest field.public XPropertyEvent xproperty()
XPropertyEvent view of the xproperty field.public XSelectionClearEvent xselectionclear()
XSelectionClearEvent view of the xselectionclear field.public XSelectionRequestEvent xselectionrequest()
XSelectionRequestEvent view of the xselectionrequest field.public XSelectionEvent xselection()
XSelectionEvent view of the xselection field.public XColormapEvent xcolormap()
XColormapEvent view of the xcolormap field.public XClientMessageEvent xclient()
XClientMessageEvent view of the xclient field.public XMappingEvent xmapping()
XMappingEvent view of the xmapping field.public XErrorEvent xerror()
XErrorEvent view of the xerror field.public XKeymapEvent xkeymap()
XKeymapEvent view of the xkeymap field.public XGenericEvent xgeneric()
XGenericEvent view of the xgeneric field.public XGenericEventCookie xcookie()
XGenericEventCookie view of the xcookie field.public static XEvent malloc()
XEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XEvent calloc()
XEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XEvent create()
XEvent instance allocated with BufferUtils.public static XEvent create(long address)
XEvent instance for the specified memory address.@Nullable public static XEvent createSafe(long address)
public static XEvent.Buffer malloc(int capacity)
XEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XEvent.Buffer calloc(int capacity)
XEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XEvent.Buffer create(int capacity)
XEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XEvent.Buffer create(long address, int capacity)
XEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XEvent.Buffer createSafe(long address, int capacity)
public static XEvent mallocStack()
XEvent instance allocated on the thread-local MemoryStack.public static XEvent callocStack()
XEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XEvent callocStack(org.lwjgl.system.MemoryStack stack)
XEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XEvent.Buffer mallocStack(int capacity)
XEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XEvent.Buffer callocStack(int capacity)
XEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XEvent.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 XButtonEvent nxbutton(long struct)
xbutton().public static XMotionEvent nxmotion(long struct)
xmotion().public static XCrossingEvent nxcrossing(long struct)
xcrossing().public static XFocusChangeEvent nxfocus(long struct)
xfocus().public static XExposeEvent nxexpose(long struct)
xexpose().public static XGraphicsExposeEvent nxgraphicsexpose(long struct)
xgraphicsexpose().public static XNoExposeEvent nxnoexpose(long struct)
xnoexpose().public static XVisibilityEvent nxvisibility(long struct)
xvisibility().public static XCreateWindowEvent nxcreatewindow(long struct)
xcreatewindow().public static XDestroyWindowEvent nxdestroywindow(long struct)
xdestroywindow().public static XUnmapEvent nxunmap(long struct)
xunmap().public static XMapRequestEvent nxmaprequest(long struct)
xmaprequest().public static XReparentEvent nxreparent(long struct)
xreparent().public static XConfigureEvent nxconfigure(long struct)
xconfigure().public static XGravityEvent nxgravity(long struct)
xgravity().public static XResizeRequestEvent nxresizerequest(long struct)
xresizerequest().public static XConfigureRequestEvent nxconfigurerequest(long struct)
xconfigurerequest().public static XCirculateEvent nxcirculate(long struct)
xcirculate().public static XCirculateRequestEvent nxcirculaterequest(long struct)
xcirculaterequest().public static XPropertyEvent nxproperty(long struct)
xproperty().public static XSelectionClearEvent nxselectionclear(long struct)
xselectionclear().public static XSelectionRequestEvent nxselectionrequest(long struct)
xselectionrequest().public static XSelectionEvent nxselection(long struct)
xselection().public static XColormapEvent nxcolormap(long struct)
xcolormap().public static XClientMessageEvent nxclient(long struct)
xclient().public static XMappingEvent nxmapping(long struct)
xmapping().public static XErrorEvent nxerror(long struct)
xerror().public static XKeymapEvent nxkeymap(long struct)
xkeymap().public static XGenericEvent nxgeneric(long struct)
xgeneric().public static XGenericEventCookie nxcookie(long struct)
xcookie().public static org.lwjgl.CLongBuffer npad(long struct)
public static long npad(long struct,
int index)
Copyright LWJGL. All Rights Reserved. License terms.