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
,NativeResource
,Pointer
public class XEvent extends Struct implements 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 pad[24]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XEvent.Buffer
An array ofXEvent
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field 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
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.-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
-
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 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
callocStack()
Returns a newXEvent
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static XEvent.Buffer
callocStack(int capacity)
Returns a newXEvent.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static XEvent.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newXEvent.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XEvent
callocStack(MemoryStack stack)
Returns a newXEvent
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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
mallocStack()
Returns a newXEvent
instance allocated on the thread-localMemoryStack
.static XEvent.Buffer
mallocStack(int capacity)
Returns a newXEvent.Buffer
instance allocated on the thread-localMemoryStack
.static XEvent.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newXEvent.Buffer
instance allocated on the specifiedMemoryStack
.static XEvent
mallocStack(MemoryStack stack)
Returns a newXEvent
instance allocated on the specifiedMemoryStack
.static CLongBuffer
npad(long struct)
static long
npad(long struct, int index)
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()
Returnssizeof(struct)
.int
type()
Returns the value of thetype
field.XAnyEvent
xany()
Returns aXAnyEvent
view of thexany
field.XButtonEvent
xbutton()
Returns aXButtonEvent
view of thexbutton
field.XCirculateEvent
xcirculate()
Returns aXCirculateEvent
view of thexcirculate
field.XCirculateRequestEvent
xcirculaterequest()
Returns aXCirculateRequestEvent
view of thexcirculaterequest
field.XClientMessageEvent
xclient()
Returns aXClientMessageEvent
view of thexclient
field.XColormapEvent
xcolormap()
Returns aXColormapEvent
view of thexcolormap
field.XConfigureEvent
xconfigure()
Returns aXConfigureEvent
view of thexconfigure
field.XConfigureRequestEvent
xconfigurerequest()
Returns aXConfigureRequestEvent
view of thexconfigurerequest
field.XGenericEventCookie
xcookie()
Returns aXGenericEventCookie
view of thexcookie
field.XCreateWindowEvent
xcreatewindow()
Returns aXCreateWindowEvent
view of thexcreatewindow
field.XCrossingEvent
xcrossing()
Returns aXCrossingEvent
view of thexcrossing
field.XDestroyWindowEvent
xdestroywindow()
Returns aXDestroyWindowEvent
view of thexdestroywindow
field.XErrorEvent
xerror()
Returns aXErrorEvent
view of thexerror
field.XExposeEvent
xexpose()
Returns aXExposeEvent
view of thexexpose
field.XFocusChangeEvent
xfocus()
Returns aXFocusChangeEvent
view of thexfocus
field.XGenericEvent
xgeneric()
Returns aXGenericEvent
view of thexgeneric
field.XGraphicsExposeEvent
xgraphicsexpose()
Returns aXGraphicsExposeEvent
view of thexgraphicsexpose
field.XGravityEvent
xgravity()
Returns aXGravityEvent
view of thexgravity
field.XKeyEvent
xkey()
Returns aXKeyEvent
view of thexkey
field.XKeymapEvent
xkeymap()
Returns aXKeymapEvent
view of thexkeymap
field.XMapEvent
xmap()
Returns aXMapEvent
view of thexmap
field.XMappingEvent
xmapping()
Returns aXMappingEvent
view of thexmapping
field.XMapRequestEvent
xmaprequest()
Returns aXMapRequestEvent
view of thexmaprequest
field.XMotionEvent
xmotion()
Returns aXMotionEvent
view of thexmotion
field.XNoExposeEvent
xnoexpose()
Returns aXNoExposeEvent
view of thexnoexpose
field.XPropertyEvent
xproperty()
Returns aXPropertyEvent
view of thexproperty
field.XReparentEvent
xreparent()
Returns aXReparentEvent
view of thexreparent
field.XResizeRequestEvent
xresizerequest()
Returns aXResizeRequestEvent
view of thexresizerequest
field.XSelectionEvent
xselection()
Returns aXSelectionEvent
view of thexselection
field.XSelectionClearEvent
xselectionclear()
Returns aXSelectionClearEvent
view of thexselectionclear
field.XSelectionRequestEvent
xselectionrequest()
Returns aXSelectionRequestEvent
view of thexselectionrequest
field.XUnmapEvent
xunmap()
Returns aXUnmapEvent
view of thexunmap
field.XVisibilityEvent
xvisibility()
Returns aXVisibilityEvent
view of thexvisibility
field.-
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
-
-
-
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, PAD
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()
Description copied from class:Struct
Returnssizeof(struct)
.
-
type
public int type()
Returns the value of thetype
field.
-
xbutton
public XButtonEvent xbutton()
Returns aXButtonEvent
view of thexbutton
field.
-
xmotion
public XMotionEvent xmotion()
Returns aXMotionEvent
view of thexmotion
field.
-
xcrossing
public XCrossingEvent xcrossing()
Returns aXCrossingEvent
view of thexcrossing
field.
-
xfocus
public XFocusChangeEvent xfocus()
Returns aXFocusChangeEvent
view of thexfocus
field.
-
xexpose
public XExposeEvent xexpose()
Returns aXExposeEvent
view of thexexpose
field.
-
xgraphicsexpose
public XGraphicsExposeEvent xgraphicsexpose()
Returns aXGraphicsExposeEvent
view of thexgraphicsexpose
field.
-
xnoexpose
public XNoExposeEvent xnoexpose()
Returns aXNoExposeEvent
view of thexnoexpose
field.
-
xvisibility
public XVisibilityEvent xvisibility()
Returns aXVisibilityEvent
view of thexvisibility
field.
-
xcreatewindow
public XCreateWindowEvent xcreatewindow()
Returns aXCreateWindowEvent
view of thexcreatewindow
field.
-
xdestroywindow
public XDestroyWindowEvent xdestroywindow()
Returns aXDestroyWindowEvent
view of thexdestroywindow
field.
-
xunmap
public XUnmapEvent xunmap()
Returns aXUnmapEvent
view of thexunmap
field.
-
xmaprequest
public XMapRequestEvent xmaprequest()
Returns aXMapRequestEvent
view of thexmaprequest
field.
-
xreparent
public XReparentEvent xreparent()
Returns aXReparentEvent
view of thexreparent
field.
-
xconfigure
public XConfigureEvent xconfigure()
Returns aXConfigureEvent
view of thexconfigure
field.
-
xgravity
public XGravityEvent xgravity()
Returns aXGravityEvent
view of thexgravity
field.
-
xresizerequest
public XResizeRequestEvent xresizerequest()
Returns aXResizeRequestEvent
view of thexresizerequest
field.
-
xconfigurerequest
public XConfigureRequestEvent xconfigurerequest()
Returns aXConfigureRequestEvent
view of thexconfigurerequest
field.
-
xcirculate
public XCirculateEvent xcirculate()
Returns aXCirculateEvent
view of thexcirculate
field.
-
xcirculaterequest
public XCirculateRequestEvent xcirculaterequest()
Returns aXCirculateRequestEvent
view of thexcirculaterequest
field.
-
xproperty
public XPropertyEvent xproperty()
Returns aXPropertyEvent
view of thexproperty
field.
-
xselectionclear
public XSelectionClearEvent xselectionclear()
Returns aXSelectionClearEvent
view of thexselectionclear
field.
-
xselectionrequest
public XSelectionRequestEvent xselectionrequest()
Returns aXSelectionRequestEvent
view of thexselectionrequest
field.
-
xselection
public XSelectionEvent xselection()
Returns aXSelectionEvent
view of thexselection
field.
-
xcolormap
public XColormapEvent xcolormap()
Returns aXColormapEvent
view of thexcolormap
field.
-
xclient
public XClientMessageEvent xclient()
Returns aXClientMessageEvent
view of thexclient
field.
-
xmapping
public XMappingEvent xmapping()
Returns aXMappingEvent
view of thexmapping
field.
-
xerror
public XErrorEvent xerror()
Returns aXErrorEvent
view of thexerror
field.
-
xkeymap
public XKeymapEvent xkeymap()
Returns aXKeymapEvent
view of thexkeymap
field.
-
xgeneric
public XGenericEvent xgeneric()
Returns aXGenericEvent
view of thexgeneric
field.
-
xcookie
public XGenericEventCookie xcookie()
Returns aXGenericEventCookie
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
public static XEvent mallocStack()
Returns a newXEvent
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static XEvent callocStack()
Returns a newXEvent
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static XEvent mallocStack(MemoryStack stack)
Returns a newXEvent
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static XEvent callocStack(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
-
mallocStack
public static XEvent.Buffer mallocStack(int capacity)
Returns a newXEvent.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static XEvent.Buffer callocStack(int capacity)
Returns a newXEvent.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static XEvent.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newXEvent.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static XEvent.Buffer callocStack(int capacity, 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()
.
-
npad
public static CLongBuffer npad(long struct)
-
npad
public static long npad(long struct, int index)
-
-