Package org.lwjgl.system.linux
Class XEvent
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.XEvent
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class XEvent extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
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 Class Summary
Nested Classes Modifier and Type Class Description static class
XEvent.Buffer
An array ofXEvent
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
SIZEOF
The struct size in bytes.static int
TYPE
XANY
XBUTTON
XCIRCULATE
XCIRCULATEREQUEST
XCLIENT
XCOLORMAP
XCONFIGURE
XCONFIGUREREQUEST
XCOOKIE
XCREATEWINDOW
XCROSSING
XDESTROYWINDOW
XERROR
XEXPOSE
XFOCUS
XGENERIC
XGRAPHICSEXPOSE
XGRAVITY
XKEY
XKEYMAP
XMAP
XMAPPING
XMAPREQUEST
XMOTION
XNOEXPOSE
XPROPERTY
XREPARENT
XRESIZEREQUEST
XSELECTION
XSELECTIONCLEAR
XSELECTIONREQUEST
XUNMAP
XVISIBILITYThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XEvent(java.nio.ByteBuffer container)
Creates aXEvent
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static XEvent
calloc()
Returns a newXEvent
instance allocated withmemCalloc
.static XEvent.Buffer
calloc(int capacity)
Returns a newXEvent.Buffer
instance allocated withmemCalloc
.static XEvent.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXEvent.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XEvent
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXEvent
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XEvent
callocStack()
Deprecated.static XEvent.Buffer
callocStack(int capacity)
Deprecated.static XEvent.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static XEvent
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static XEvent
create()
Returns a newXEvent
instance allocated withBufferUtils
.static XEvent.Buffer
create(int capacity)
Returns a newXEvent.Buffer
instance allocated withBufferUtils
.static XEvent
create(long address)
Returns a newXEvent
instance for the specified memory address.static XEvent.Buffer
create(long address, int capacity)
Create aXEvent.Buffer
instance at the specified memory.static XEvent
createSafe(long address)
static XEvent.Buffer
createSafe(long address, int capacity)
static XEvent
malloc()
Returns a newXEvent
instance allocated withmemAlloc
.static XEvent.Buffer
malloc(int capacity)
Returns a newXEvent.Buffer
instance allocated withmemAlloc
.static XEvent.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXEvent.Buffer
instance allocated on the specifiedMemoryStack
.static XEvent
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXEvent
instance allocated on the specifiedMemoryStack
.static XEvent
mallocStack()
Deprecated.static XEvent.Buffer
mallocStack(int capacity)
Deprecated.static XEvent.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static XEvent
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static int
ntype(long struct)
Unsafe version oftype()
.static XAnyEvent
nxany(long struct)
Unsafe version ofxany()
.static XButtonEvent
nxbutton(long struct)
Unsafe version ofxbutton()
.static XCirculateEvent
nxcirculate(long struct)
Unsafe version ofxcirculate()
.static XCirculateRequestEvent
nxcirculaterequest(long struct)
Unsafe version ofxcirculaterequest()
.static XClientMessageEvent
nxclient(long struct)
Unsafe version ofxclient()
.static XColormapEvent
nxcolormap(long struct)
Unsafe version ofxcolormap()
.static XConfigureEvent
nxconfigure(long struct)
Unsafe version ofxconfigure()
.static XConfigureRequestEvent
nxconfigurerequest(long struct)
Unsafe version ofxconfigurerequest()
.static XGenericEventCookie
nxcookie(long struct)
Unsafe version ofxcookie()
.static XCreateWindowEvent
nxcreatewindow(long struct)
Unsafe version ofxcreatewindow()
.static XCrossingEvent
nxcrossing(long struct)
Unsafe version ofxcrossing()
.static XDestroyWindowEvent
nxdestroywindow(long struct)
Unsafe version ofxdestroywindow()
.static XErrorEvent
nxerror(long struct)
Unsafe version ofxerror()
.static XExposeEvent
nxexpose(long struct)
Unsafe version ofxexpose()
.static XFocusChangeEvent
nxfocus(long struct)
Unsafe version ofxfocus()
.static XGenericEvent
nxgeneric(long struct)
Unsafe version ofxgeneric()
.static XGraphicsExposeEvent
nxgraphicsexpose(long struct)
Unsafe version ofxgraphicsexpose()
.static XGravityEvent
nxgravity(long struct)
Unsafe version ofxgravity()
.static XKeyEvent
nxkey(long struct)
Unsafe version ofxkey()
.static XKeymapEvent
nxkeymap(long struct)
Unsafe version ofxkeymap()
.static XMapEvent
nxmap(long struct)
Unsafe version ofxmap()
.static XMappingEvent
nxmapping(long struct)
Unsafe version ofxmapping()
.static XMapRequestEvent
nxmaprequest(long struct)
Unsafe version ofxmaprequest()
.static XMotionEvent
nxmotion(long struct)
Unsafe version ofxmotion()
.static XNoExposeEvent
nxnoexpose(long struct)
Unsafe version ofxnoexpose()
.static XPropertyEvent
nxproperty(long struct)
Unsafe version ofxproperty()
.static XReparentEvent
nxreparent(long struct)
Unsafe version ofxreparent()
.static XResizeRequestEvent
nxresizerequest(long struct)
Unsafe version ofxresizerequest()
.static XSelectionEvent
nxselection(long struct)
Unsafe version ofxselection()
.static XSelectionClearEvent
nxselectionclear(long struct)
Unsafe version ofxselectionclear()
.static XSelectionRequestEvent
nxselectionrequest(long struct)
Unsafe version ofxselectionrequest()
.static XUnmapEvent
nxunmap(long struct)
Unsafe version ofxunmap()
.static XVisibilityEvent
nxvisibility(long struct)
Unsafe version ofxvisibility()
.int
sizeof()
int
type()
XAnyEvent
xany()
XButtonEvent
xbutton()
XCirculateEvent
xcirculate()
XCirculateRequestEvent
xcirculaterequest()
XClientMessageEvent
xclient()
XColormapEvent
xcolormap()
XConfigureEvent
xconfigure()
XConfigureRequestEvent
xconfigurerequest()
XGenericEventCookie
xcookie()
XCreateWindowEvent
xcreatewindow()
XCrossingEvent
xcrossing()
XDestroyWindowEvent
xdestroywindow()
XErrorEvent
xerror()
XExposeEvent
xexpose()
XFocusChangeEvent
xfocus()
XGenericEvent
xgeneric()
XGraphicsExposeEvent
xgraphicsexpose()
XGravityEvent
xgravity()
XKeyEvent
xkey()
XKeymapEvent
xkeymap()
XMapEvent
xmap()
XMappingEvent
xmapping()
XMapRequestEvent
xmaprequest()
XMotionEvent
xmotion()
XNoExposeEvent
xnoexpose()
XPropertyEvent
xproperty()
XReparentEvent
xreparent()
XResizeRequestEvent
xresizerequest()
XSelectionEvent
xselection()
XSelectionClearEvent
xselectionclear()
XSelectionRequestEvent
xselectionrequest()
XUnmapEvent
xunmap()
XVisibilityEvent
xvisibility()
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
TYPE, XANY, XKEY, XBUTTON, XMOTION, XCROSSING, XFOCUS, XEXPOSE, XGRAPHICSEXPOSE, XNOEXPOSE, XVISIBILITY, XCREATEWINDOW, XDESTROYWINDOW, XUNMAP, XMAP, XMAPREQUEST, XREPARENT, XCONFIGURE, XGRAVITY, XRESIZEREQUEST, XCONFIGUREREQUEST, XCIRCULATE, XCIRCULATEREQUEST, XPROPERTY, XSELECTIONCLEAR, XSELECTIONREQUEST, XSELECTION, XCOLORMAP, XCLIENT, XMAPPING, XERROR, XKEYMAP, XGENERIC, XCOOKIE
The struct member offsets.
-
-
Constructor Detail
-
XEvent
public XEvent(java.nio.ByteBuffer container)
Creates aXEvent
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
type
public int type()
- Returns:
- the value of the
type
field.
-
xbutton
public XButtonEvent xbutton()
- Returns:
- a
XButtonEvent
view of thexbutton
field.
-
xmotion
public XMotionEvent xmotion()
- Returns:
- a
XMotionEvent
view of thexmotion
field.
-
xcrossing
public XCrossingEvent xcrossing()
- Returns:
- a
XCrossingEvent
view of thexcrossing
field.
-
xfocus
public XFocusChangeEvent xfocus()
- Returns:
- a
XFocusChangeEvent
view of thexfocus
field.
-
xexpose
public XExposeEvent xexpose()
- Returns:
- a
XExposeEvent
view of thexexpose
field.
-
xgraphicsexpose
public XGraphicsExposeEvent xgraphicsexpose()
- Returns:
- a
XGraphicsExposeEvent
view of thexgraphicsexpose
field.
-
xnoexpose
public XNoExposeEvent xnoexpose()
- Returns:
- a
XNoExposeEvent
view of thexnoexpose
field.
-
xvisibility
public XVisibilityEvent xvisibility()
- Returns:
- a
XVisibilityEvent
view of thexvisibility
field.
-
xcreatewindow
public XCreateWindowEvent xcreatewindow()
- Returns:
- a
XCreateWindowEvent
view of thexcreatewindow
field.
-
xdestroywindow
public XDestroyWindowEvent xdestroywindow()
- Returns:
- a
XDestroyWindowEvent
view of thexdestroywindow
field.
-
xunmap
public XUnmapEvent xunmap()
- Returns:
- a
XUnmapEvent
view of thexunmap
field.
-
xmaprequest
public XMapRequestEvent xmaprequest()
- Returns:
- a
XMapRequestEvent
view of thexmaprequest
field.
-
xreparent
public XReparentEvent xreparent()
- Returns:
- a
XReparentEvent
view of thexreparent
field.
-
xconfigure
public XConfigureEvent xconfigure()
- Returns:
- a
XConfigureEvent
view of thexconfigure
field.
-
xgravity
public XGravityEvent xgravity()
- Returns:
- a
XGravityEvent
view of thexgravity
field.
-
xresizerequest
public XResizeRequestEvent xresizerequest()
- Returns:
- a
XResizeRequestEvent
view of thexresizerequest
field.
-
xconfigurerequest
public XConfigureRequestEvent xconfigurerequest()
- Returns:
- a
XConfigureRequestEvent
view of thexconfigurerequest
field.
-
xcirculate
public XCirculateEvent xcirculate()
- Returns:
- a
XCirculateEvent
view of thexcirculate
field.
-
xcirculaterequest
public XCirculateRequestEvent xcirculaterequest()
- Returns:
- a
XCirculateRequestEvent
view of thexcirculaterequest
field.
-
xproperty
public XPropertyEvent xproperty()
- Returns:
- a
XPropertyEvent
view of thexproperty
field.
-
xselectionclear
public XSelectionClearEvent xselectionclear()
- Returns:
- a
XSelectionClearEvent
view of thexselectionclear
field.
-
xselectionrequest
public XSelectionRequestEvent xselectionrequest()
- Returns:
- a
XSelectionRequestEvent
view of thexselectionrequest
field.
-
xselection
public XSelectionEvent xselection()
- Returns:
- a
XSelectionEvent
view of thexselection
field.
-
xcolormap
public XColormapEvent xcolormap()
- Returns:
- a
XColormapEvent
view of thexcolormap
field.
-
xclient
public XClientMessageEvent xclient()
- Returns:
- a
XClientMessageEvent
view of thexclient
field.
-
xmapping
public XMappingEvent xmapping()
- Returns:
- a
XMappingEvent
view of thexmapping
field.
-
xerror
public XErrorEvent xerror()
- Returns:
- a
XErrorEvent
view of thexerror
field.
-
xkeymap
public XKeymapEvent xkeymap()
- Returns:
- a
XKeymapEvent
view of thexkeymap
field.
-
xgeneric
public XGenericEvent xgeneric()
- Returns:
- a
XGenericEvent
view of thexgeneric
field.
-
xcookie
public XGenericEventCookie xcookie()
- Returns:
- a
XGenericEventCookie
view of thexcookie
field.
-
malloc
public static XEvent malloc()
Returns a newXEvent
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static XEvent calloc()
Returns a newXEvent
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static XEvent create()
Returns a newXEvent
instance allocated withBufferUtils
.
-
create
public static XEvent create(long address)
Returns a newXEvent
instance for the specified memory address.
-
createSafe
@Nullable public static XEvent createSafe(long address)
-
malloc
public static XEvent.Buffer malloc(int capacity)
Returns a newXEvent.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static XEvent.Buffer calloc(int capacity)
Returns a newXEvent.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static XEvent.Buffer create(int capacity)
Returns a newXEvent.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static XEvent.Buffer create(long address, int capacity)
Create aXEvent.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static XEvent.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static XEvent mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static XEvent callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static XEvent mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static XEvent callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static XEvent.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static XEvent.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
mallocStack
@Deprecated public static XEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static XEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
malloc
public static XEvent malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXEvent
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static XEvent calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXEvent
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static XEvent.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXEvent.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static XEvent.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXEvent.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype()
.
-
nxbutton
public static XButtonEvent nxbutton(long struct)
Unsafe version ofxbutton()
.
-
nxmotion
public static XMotionEvent nxmotion(long struct)
Unsafe version ofxmotion()
.
-
nxcrossing
public static XCrossingEvent nxcrossing(long struct)
Unsafe version ofxcrossing()
.
-
nxfocus
public static XFocusChangeEvent nxfocus(long struct)
Unsafe version ofxfocus()
.
-
nxexpose
public static XExposeEvent nxexpose(long struct)
Unsafe version ofxexpose()
.
-
nxgraphicsexpose
public static XGraphicsExposeEvent nxgraphicsexpose(long struct)
Unsafe version ofxgraphicsexpose()
.
-
nxnoexpose
public static XNoExposeEvent nxnoexpose(long struct)
Unsafe version ofxnoexpose()
.
-
nxvisibility
public static XVisibilityEvent nxvisibility(long struct)
Unsafe version ofxvisibility()
.
-
nxcreatewindow
public static XCreateWindowEvent nxcreatewindow(long struct)
Unsafe version ofxcreatewindow()
.
-
nxdestroywindow
public static XDestroyWindowEvent nxdestroywindow(long struct)
Unsafe version ofxdestroywindow()
.
-
nxunmap
public static XUnmapEvent nxunmap(long struct)
Unsafe version ofxunmap()
.
-
nxmaprequest
public static XMapRequestEvent nxmaprequest(long struct)
Unsafe version ofxmaprequest()
.
-
nxreparent
public static XReparentEvent nxreparent(long struct)
Unsafe version ofxreparent()
.
-
nxconfigure
public static XConfigureEvent nxconfigure(long struct)
Unsafe version ofxconfigure()
.
-
nxgravity
public static XGravityEvent nxgravity(long struct)
Unsafe version ofxgravity()
.
-
nxresizerequest
public static XResizeRequestEvent nxresizerequest(long struct)
Unsafe version ofxresizerequest()
.
-
nxconfigurerequest
public static XConfigureRequestEvent nxconfigurerequest(long struct)
Unsafe version ofxconfigurerequest()
.
-
nxcirculate
public static XCirculateEvent nxcirculate(long struct)
Unsafe version ofxcirculate()
.
-
nxcirculaterequest
public static XCirculateRequestEvent nxcirculaterequest(long struct)
Unsafe version ofxcirculaterequest()
.
-
nxproperty
public static XPropertyEvent nxproperty(long struct)
Unsafe version ofxproperty()
.
-
nxselectionclear
public static XSelectionClearEvent nxselectionclear(long struct)
Unsafe version ofxselectionclear()
.
-
nxselectionrequest
public static XSelectionRequestEvent nxselectionrequest(long struct)
Unsafe version ofxselectionrequest()
.
-
nxselection
public static XSelectionEvent nxselection(long struct)
Unsafe version ofxselection()
.
-
nxcolormap
public static XColormapEvent nxcolormap(long struct)
Unsafe version ofxcolormap()
.
-
nxclient
public static XClientMessageEvent nxclient(long struct)
Unsafe version ofxclient()
.
-
nxmapping
public static XMappingEvent nxmapping(long struct)
Unsafe version ofxmapping()
.
-
nxerror
public static XErrorEvent nxerror(long struct)
Unsafe version ofxerror()
.
-
nxkeymap
public static XKeymapEvent nxkeymap(long struct)
Unsafe version ofxkeymap()
.
-
nxgeneric
public static XGenericEvent nxgeneric(long struct)
Unsafe version ofxgeneric()
.
-
nxcookie
public static XGenericEventCookie nxcookie(long struct)
Unsafe version ofxcookie()
.
-
-