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.NativeResourceThis 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[24]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXEvent.BufferAn array ofXEventstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.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.
-
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 Deprecated 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 XEvent.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXEvent.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XEventcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXEventinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XEventcallocStack()Deprecated.static XEvent.BuffercallocStack(int capacity)Deprecated.static XEvent.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static XEventcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 XEvent.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXEvent.Bufferinstance allocated on the specifiedMemoryStack.static XEventmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXEventinstance allocated on the specifiedMemoryStack.static XEventmallocStack()Deprecated.static XEvent.BuffermallocStack(int capacity)Deprecated.static XEvent.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static XEventmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()inttype()XAnyEventxany()XButtonEventxbutton()XCirculateEventxcirculate()XCirculateRequestEventxcirculaterequest()XClientMessageEventxclient()XColormapEventxcolormap()XConfigureEventxconfigure()XConfigureRequestEventxconfigurerequest()XGenericEventCookiexcookie()XCreateWindowEventxcreatewindow()XCrossingEventxcrossing()XDestroyWindowEventxdestroywindow()XErrorEventxerror()XExposeEventxexpose()XFocusChangeEventxfocus()XGenericEventxgeneric()XGraphicsExposeEventxgraphicsexpose()XGravityEventxgravity()XKeyEventxkey()XKeymapEventxkeymap()XMapEventxmap()XMappingEventxmapping()XMapRequestEventxmaprequest()XMotionEventxmotion()XNoExposeEventxnoexpose()XPropertyEventxproperty()XReparentEventxreparent()XResizeRequestEventxresizerequest()XSelectionEventxselection()XSelectionClearEventxselectionclear()XSelectionRequestEventxselectionrequest()XUnmapEventxunmap()XVisibilityEventxvisibility()
-
-
-
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 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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
- Returns:
- the value of the
typefield.
-
xbutton
public XButtonEvent xbutton()
- Returns:
- a
XButtonEventview of thexbuttonfield.
-
xmotion
public XMotionEvent xmotion()
- Returns:
- a
XMotionEventview of thexmotionfield.
-
xcrossing
public XCrossingEvent xcrossing()
- Returns:
- a
XCrossingEventview of thexcrossingfield.
-
xfocus
public XFocusChangeEvent xfocus()
- Returns:
- a
XFocusChangeEventview of thexfocusfield.
-
xexpose
public XExposeEvent xexpose()
- Returns:
- a
XExposeEventview of thexexposefield.
-
xgraphicsexpose
public XGraphicsExposeEvent xgraphicsexpose()
- Returns:
- a
XGraphicsExposeEventview of thexgraphicsexposefield.
-
xnoexpose
public XNoExposeEvent xnoexpose()
- Returns:
- a
XNoExposeEventview of thexnoexposefield.
-
xvisibility
public XVisibilityEvent xvisibility()
- Returns:
- a
XVisibilityEventview of thexvisibilityfield.
-
xcreatewindow
public XCreateWindowEvent xcreatewindow()
- Returns:
- a
XCreateWindowEventview of thexcreatewindowfield.
-
xdestroywindow
public XDestroyWindowEvent xdestroywindow()
- Returns:
- a
XDestroyWindowEventview of thexdestroywindowfield.
-
xunmap
public XUnmapEvent xunmap()
- Returns:
- a
XUnmapEventview of thexunmapfield.
-
xmaprequest
public XMapRequestEvent xmaprequest()
- Returns:
- a
XMapRequestEventview of thexmaprequestfield.
-
xreparent
public XReparentEvent xreparent()
- Returns:
- a
XReparentEventview of thexreparentfield.
-
xconfigure
public XConfigureEvent xconfigure()
- Returns:
- a
XConfigureEventview of thexconfigurefield.
-
xgravity
public XGravityEvent xgravity()
- Returns:
- a
XGravityEventview of thexgravityfield.
-
xresizerequest
public XResizeRequestEvent xresizerequest()
- Returns:
- a
XResizeRequestEventview of thexresizerequestfield.
-
xconfigurerequest
public XConfigureRequestEvent xconfigurerequest()
- Returns:
- a
XConfigureRequestEventview of thexconfigurerequestfield.
-
xcirculate
public XCirculateEvent xcirculate()
- Returns:
- a
XCirculateEventview of thexcirculatefield.
-
xcirculaterequest
public XCirculateRequestEvent xcirculaterequest()
- Returns:
- a
XCirculateRequestEventview of thexcirculaterequestfield.
-
xproperty
public XPropertyEvent xproperty()
- Returns:
- a
XPropertyEventview of thexpropertyfield.
-
xselectionclear
public XSelectionClearEvent xselectionclear()
- Returns:
- a
XSelectionClearEventview of thexselectionclearfield.
-
xselectionrequest
public XSelectionRequestEvent xselectionrequest()
- Returns:
- a
XSelectionRequestEventview of thexselectionrequestfield.
-
xselection
public XSelectionEvent xselection()
- Returns:
- a
XSelectionEventview of thexselectionfield.
-
xcolormap
public XColormapEvent xcolormap()
- Returns:
- a
XColormapEventview of thexcolormapfield.
-
xclient
public XClientMessageEvent xclient()
- Returns:
- a
XClientMessageEventview of thexclientfield.
-
xmapping
public XMappingEvent xmapping()
- Returns:
- a
XMappingEventview of thexmappingfield.
-
xerror
public XErrorEvent xerror()
- Returns:
- a
XErrorEventview of thexerrorfield.
-
xkeymap
public XKeymapEvent xkeymap()
- Returns:
- a
XKeymapEventview of thexkeymapfield.
-
xgeneric
public XGenericEvent xgeneric()
- Returns:
- a
XGenericEventview of thexgenericfield.
-
xcookie
public XGenericEventCookie xcookie()
- Returns:
- a
XGenericEventCookieview 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
@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 newXEventinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XEvent calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXEventinstance allocated on the specifiedMemoryStackand 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.Bufferinstance 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.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().
-
-