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;XAnyEventxany;XKeyEventxkey;XButtonEventxbutton;XMotionEventxmotion;XCrossingEventxcrossing;XFocusChangeEventxfocus;XExposeEventxexpose;XGraphicsExposeEventxgraphicsexpose;XNoExposeEventxnoexpose;XVisibilityEventxvisibility;XCreateWindowEventxcreatewindow;XDestroyWindowEventxdestroywindow;XUnmapEventxunmap;XMapEventxmap;XMapRequestEventxmaprequest;XReparentEventxreparent;XConfigureEventxconfigure;XGravityEventxgravity;XResizeRequestEventxresizerequest;XConfigureRequestEventxconfigurerequest;XCirculateEventxcirculate;XCirculateRequestEventxcirculaterequest;XPropertyEventxproperty;XSelectionClearEventxselectionclear;XSelectionRequestEventxselectionrequest;XSelectionEventxselection;XColormapEventxcolormap;XClientMessageEventxclient;XMappingEventxmapping;XErrorEventxerror;XKeymapEventxkeymap;XGenericEventxgeneric;XGenericEventCookiexcookie; long pad[24]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXEvent.BufferAn array ofXEventstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPADThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPE
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 aXEventinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XEventcalloc()Returns a newXEventinstance allocated withmemCalloc.static XEvent.Buffercalloc(int capacity)Returns a newXEvent.Bufferinstance allocated withmemCalloc.static XEventcallocStack()Returns a newXEventinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static XEvent.BuffercallocStack(int capacity)Returns a newXEvent.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static XEvent.BuffercallocStack(int capacity, MemoryStack stack)Returns a newXEvent.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XEventcallocStack(MemoryStack stack)Returns a newXEventinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XEventcreate()Returns a newXEventinstance allocated withBufferUtils.static XEvent.Buffercreate(int capacity)Returns a newXEvent.Bufferinstance allocated withBufferUtils.static XEventcreate(long address)Returns a newXEventinstance for the specified memory address.static XEvent.Buffercreate(long address, int capacity)Create aXEvent.Bufferinstance at the specified memory.static XEventcreateSafe(long address)static XEvent.BuffercreateSafe(long address, int capacity)static XEventmalloc()Returns a newXEventinstance allocated withmemAlloc.static XEvent.Buffermalloc(int capacity)Returns a newXEvent.Bufferinstance allocated withmemAlloc.static XEventmallocStack()Returns a newXEventinstance allocated on the thread-localMemoryStack.static XEvent.BuffermallocStack(int capacity)Returns a newXEvent.Bufferinstance allocated on the thread-localMemoryStack.static XEvent.BuffermallocStack(int capacity, MemoryStack stack)Returns a newXEvent.Bufferinstance allocated on the specifiedMemoryStack.static XEventmallocStack(MemoryStack stack)Returns a newXEventinstance allocated on the specifiedMemoryStack.static CLongBuffernpad(long struct)static longnpad(long struct, int index)static intntype(long struct)Unsafe version oftype().static XAnyEventnxany(long struct)Unsafe version ofxany().static XButtonEventnxbutton(long struct)Unsafe version ofxbutton().static XCirculateEventnxcirculate(long struct)Unsafe version ofxcirculate().static XCirculateRequestEventnxcirculaterequest(long struct)Unsafe version ofxcirculaterequest().static XClientMessageEventnxclient(long struct)Unsafe version ofxclient().static XColormapEventnxcolormap(long struct)Unsafe version ofxcolormap().static XConfigureEventnxconfigure(long struct)Unsafe version ofxconfigure().static XConfigureRequestEventnxconfigurerequest(long struct)Unsafe version ofxconfigurerequest().static XGenericEventCookienxcookie(long struct)Unsafe version ofxcookie().static XCreateWindowEventnxcreatewindow(long struct)Unsafe version ofxcreatewindow().static XCrossingEventnxcrossing(long struct)Unsafe version ofxcrossing().static XDestroyWindowEventnxdestroywindow(long struct)Unsafe version ofxdestroywindow().static XErrorEventnxerror(long struct)Unsafe version ofxerror().static XExposeEventnxexpose(long struct)Unsafe version ofxexpose().static XFocusChangeEventnxfocus(long struct)Unsafe version ofxfocus().static XGenericEventnxgeneric(long struct)Unsafe version ofxgeneric().static XGraphicsExposeEventnxgraphicsexpose(long struct)Unsafe version ofxgraphicsexpose().static XGravityEventnxgravity(long struct)Unsafe version ofxgravity().static XKeyEventnxkey(long struct)Unsafe version ofxkey().static XKeymapEventnxkeymap(long struct)Unsafe version ofxkeymap().static XMapEventnxmap(long struct)Unsafe version ofxmap().static XMappingEventnxmapping(long struct)Unsafe version ofxmapping().static XMapRequestEventnxmaprequest(long struct)Unsafe version ofxmaprequest().static XMotionEventnxmotion(long struct)Unsafe version ofxmotion().static XNoExposeEventnxnoexpose(long struct)Unsafe version ofxnoexpose().static XPropertyEventnxproperty(long struct)Unsafe version ofxproperty().static XReparentEventnxreparent(long struct)Unsafe version ofxreparent().static XResizeRequestEventnxresizerequest(long struct)Unsafe version ofxresizerequest().static XSelectionEventnxselection(long struct)Unsafe version ofxselection().static XSelectionClearEventnxselectionclear(long struct)Unsafe version ofxselectionclear().static XSelectionRequestEventnxselectionrequest(long struct)Unsafe version ofxselectionrequest().static XUnmapEventnxunmap(long struct)Unsafe version ofxunmap().static XVisibilityEventnxvisibility(long struct)Unsafe version ofxvisibility().intsizeof()Returnssizeof(struct).inttype()Returns the value of thetypefield.XAnyEventxany()Returns aXAnyEventview of thexanyfield.XButtonEventxbutton()Returns aXButtonEventview of thexbuttonfield.XCirculateEventxcirculate()Returns aXCirculateEventview of thexcirculatefield.XCirculateRequestEventxcirculaterequest()Returns aXCirculateRequestEventview of thexcirculaterequestfield.XClientMessageEventxclient()Returns aXClientMessageEventview of thexclientfield.XColormapEventxcolormap()Returns aXColormapEventview of thexcolormapfield.XConfigureEventxconfigure()Returns aXConfigureEventview of thexconfigurefield.XConfigureRequestEventxconfigurerequest()Returns aXConfigureRequestEventview of thexconfigurerequestfield.XGenericEventCookiexcookie()Returns aXGenericEventCookieview of thexcookiefield.XCreateWindowEventxcreatewindow()Returns aXCreateWindowEventview of thexcreatewindowfield.XCrossingEventxcrossing()Returns aXCrossingEventview of thexcrossingfield.XDestroyWindowEventxdestroywindow()Returns aXDestroyWindowEventview of thexdestroywindowfield.XErrorEventxerror()Returns aXErrorEventview of thexerrorfield.XExposeEventxexpose()Returns aXExposeEventview of thexexposefield.XFocusChangeEventxfocus()Returns aXFocusChangeEventview of thexfocusfield.XGenericEventxgeneric()Returns aXGenericEventview of thexgenericfield.XGraphicsExposeEventxgraphicsexpose()Returns aXGraphicsExposeEventview of thexgraphicsexposefield.XGravityEventxgravity()Returns aXGravityEventview of thexgravityfield.XKeyEventxkey()Returns aXKeyEventview of thexkeyfield.XKeymapEventxkeymap()Returns aXKeymapEventview of thexkeymapfield.XMapEventxmap()Returns aXMapEventview of thexmapfield.XMappingEventxmapping()Returns aXMappingEventview of thexmappingfield.XMapRequestEventxmaprequest()Returns aXMapRequestEventview of thexmaprequestfield.XMotionEventxmotion()Returns aXMotionEventview of thexmotionfield.XNoExposeEventxnoexpose()Returns aXNoExposeEventview of thexnoexposefield.XPropertyEventxproperty()Returns aXPropertyEventview of thexpropertyfield.XReparentEventxreparent()Returns aXReparentEventview of thexreparentfield.XResizeRequestEventxresizerequest()Returns aXResizeRequestEventview of thexresizerequestfield.XSelectionEventxselection()Returns aXSelectionEventview of thexselectionfield.XSelectionClearEventxselectionclear()Returns aXSelectionClearEventview of thexselectionclearfield.XSelectionRequestEventxselectionrequest()Returns aXSelectionRequestEventview of thexselectionrequestfield.XUnmapEventxunmap()Returns aXUnmapEventview of thexunmapfield.XVisibilityEventxvisibility()Returns aXVisibilityEventview of thexvisibilityfield.-
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 aXEventinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).
-
type
public int type()
Returns the value of thetypefield.
-
xbutton
public XButtonEvent xbutton()
Returns aXButtonEventview of thexbuttonfield.
-
xmotion
public XMotionEvent xmotion()
Returns aXMotionEventview of thexmotionfield.
-
xcrossing
public XCrossingEvent xcrossing()
Returns aXCrossingEventview of thexcrossingfield.
-
xfocus
public XFocusChangeEvent xfocus()
Returns aXFocusChangeEventview of thexfocusfield.
-
xexpose
public XExposeEvent xexpose()
Returns aXExposeEventview of thexexposefield.
-
xgraphicsexpose
public XGraphicsExposeEvent xgraphicsexpose()
Returns aXGraphicsExposeEventview of thexgraphicsexposefield.
-
xnoexpose
public XNoExposeEvent xnoexpose()
Returns aXNoExposeEventview of thexnoexposefield.
-
xvisibility
public XVisibilityEvent xvisibility()
Returns aXVisibilityEventview of thexvisibilityfield.
-
xcreatewindow
public XCreateWindowEvent xcreatewindow()
Returns aXCreateWindowEventview of thexcreatewindowfield.
-
xdestroywindow
public XDestroyWindowEvent xdestroywindow()
Returns aXDestroyWindowEventview of thexdestroywindowfield.
-
xunmap
public XUnmapEvent xunmap()
Returns aXUnmapEventview of thexunmapfield.
-
xmaprequest
public XMapRequestEvent xmaprequest()
Returns aXMapRequestEventview of thexmaprequestfield.
-
xreparent
public XReparentEvent xreparent()
Returns aXReparentEventview of thexreparentfield.
-
xconfigure
public XConfigureEvent xconfigure()
Returns aXConfigureEventview of thexconfigurefield.
-
xgravity
public XGravityEvent xgravity()
Returns aXGravityEventview of thexgravityfield.
-
xresizerequest
public XResizeRequestEvent xresizerequest()
Returns aXResizeRequestEventview of thexresizerequestfield.
-
xconfigurerequest
public XConfigureRequestEvent xconfigurerequest()
Returns aXConfigureRequestEventview of thexconfigurerequestfield.
-
xcirculate
public XCirculateEvent xcirculate()
Returns aXCirculateEventview of thexcirculatefield.
-
xcirculaterequest
public XCirculateRequestEvent xcirculaterequest()
Returns aXCirculateRequestEventview of thexcirculaterequestfield.
-
xproperty
public XPropertyEvent xproperty()
Returns aXPropertyEventview of thexpropertyfield.
-
xselectionclear
public XSelectionClearEvent xselectionclear()
Returns aXSelectionClearEventview of thexselectionclearfield.
-
xselectionrequest
public XSelectionRequestEvent xselectionrequest()
Returns aXSelectionRequestEventview of thexselectionrequestfield.
-
xselection
public XSelectionEvent xselection()
Returns aXSelectionEventview of thexselectionfield.
-
xcolormap
public XColormapEvent xcolormap()
Returns aXColormapEventview of thexcolormapfield.
-
xclient
public XClientMessageEvent xclient()
Returns aXClientMessageEventview of thexclientfield.
-
xmapping
public XMappingEvent xmapping()
Returns aXMappingEventview of thexmappingfield.
-
xerror
public XErrorEvent xerror()
Returns aXErrorEventview of thexerrorfield.
-
xkeymap
public XKeymapEvent xkeymap()
Returns aXKeymapEventview of thexkeymapfield.
-
xgeneric
public XGenericEvent xgeneric()
Returns aXGenericEventview of thexgenericfield.
-
xcookie
public XGenericEventCookie xcookie()
Returns aXGenericEventCookieview of thexcookiefield.
-
malloc
public static XEvent malloc()
Returns a newXEventinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XEvent calloc()
Returns a newXEventinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XEvent create()
Returns a newXEventinstance allocated withBufferUtils.
-
create
public static XEvent create(long address)
Returns a newXEventinstance for the specified memory address.
-
createSafe
@Nullable public static XEvent createSafe(long address)
-
malloc
public static XEvent.Buffer malloc(int capacity)
Returns a newXEvent.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XEvent.Buffer calloc(int capacity)
Returns a newXEvent.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XEvent.Buffer create(int capacity)
Returns a newXEvent.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XEvent.Buffer create(long address, int capacity)
Create aXEvent.Bufferinstance 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 newXEventinstance allocated on the thread-localMemoryStack.
-
callocStack
public static XEvent callocStack()
Returns a newXEventinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static XEvent mallocStack(MemoryStack stack)
Returns a newXEventinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static XEvent callocStack(MemoryStack stack)
Returns a newXEventinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static XEvent.Buffer callocStack(int capacity)
Returns a newXEvent.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static XEvent.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newXEvent.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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)
-
-