Package org.lwjgl.system.linux
Class XEvent
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXEvent(ByteBuffer container) Creates aXEventinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XEventcalloc()Returns a newXEventinstance allocated withmemCalloc.static XEvent.Buffercalloc(int capacity) Returns a newXEvent.Bufferinstance allocated withmemCalloc.static XEvent.Buffercalloc(int capacity, MemoryStack stack) Returns a newXEvent.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XEventcalloc(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 @Nullable XEventcreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newXEvent.Bufferinstance allocated on the specifiedMemoryStack.static XEventmalloc(MemoryStack stack) Returns a newXEventinstance allocated on the specifiedMemoryStack.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()xany()xbutton()xclient()xcookie()xerror()xexpose()xfocus()xgeneric()xgravity()xkey()xkeymap()xmap()xmapping()xmotion()xunmap()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
XANY
public static final int XANYThe struct member offsets. -
XKEY
public static final int XKEYThe struct member offsets. -
XBUTTON
public static final int XBUTTONThe struct member offsets. -
XMOTION
public static final int XMOTIONThe struct member offsets. -
XCROSSING
public static final int XCROSSINGThe struct member offsets. -
XFOCUS
public static final int XFOCUSThe struct member offsets. -
XEXPOSE
public static final int XEXPOSEThe struct member offsets. -
XGRAPHICSEXPOSE
public static final int XGRAPHICSEXPOSEThe struct member offsets. -
XNOEXPOSE
public static final int XNOEXPOSEThe struct member offsets. -
XVISIBILITY
public static final int XVISIBILITYThe struct member offsets. -
XCREATEWINDOW
public static final int XCREATEWINDOWThe struct member offsets. -
XDESTROYWINDOW
public static final int XDESTROYWINDOWThe struct member offsets. -
XUNMAP
public static final int XUNMAPThe struct member offsets. -
XMAP
public static final int XMAPThe struct member offsets. -
XMAPREQUEST
public static final int XMAPREQUESTThe struct member offsets. -
XREPARENT
public static final int XREPARENTThe struct member offsets. -
XCONFIGURE
public static final int XCONFIGUREThe struct member offsets. -
XGRAVITY
public static final int XGRAVITYThe struct member offsets. -
XRESIZEREQUEST
public static final int XRESIZEREQUESTThe struct member offsets. -
XCONFIGUREREQUEST
public static final int XCONFIGUREREQUESTThe struct member offsets. -
XCIRCULATE
public static final int XCIRCULATEThe struct member offsets. -
XCIRCULATEREQUEST
public static final int XCIRCULATEREQUESTThe struct member offsets. -
XPROPERTY
public static final int XPROPERTYThe struct member offsets. -
XSELECTIONCLEAR
public static final int XSELECTIONCLEARThe struct member offsets. -
XSELECTIONREQUEST
public static final int XSELECTIONREQUESTThe struct member offsets. -
XSELECTION
public static final int XSELECTIONThe struct member offsets. -
XCOLORMAP
public static final int XCOLORMAPThe struct member offsets. -
XCLIENT
public static final int XCLIENTThe struct member offsets. -
XMAPPING
public static final int XMAPPINGThe struct member offsets. -
XERROR
public static final int XERRORThe struct member offsets. -
XKEYMAP
public static final int XKEYMAPThe struct member offsets. -
XGENERIC
public static final int XGENERICThe struct member offsets. -
XCOOKIE
public static final int XCOOKIEThe struct member offsets.
-
-
Constructor Details
-
XEvent
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
type
public int type()- Returns:
- the value of the
typefield.
-
xany
- Returns:
- a
XAnyEventview of thexanyfield.
-
xkey
- Returns:
- a
XKeyEventview of thexkeyfield.
-
xbutton
- Returns:
- a
XButtonEventview of thexbuttonfield.
-
xmotion
- Returns:
- a
XMotionEventview of thexmotionfield.
-
xcrossing
- Returns:
- a
XCrossingEventview of thexcrossingfield.
-
xfocus
- Returns:
- a
XFocusChangeEventview of thexfocusfield.
-
xexpose
- Returns:
- a
XExposeEventview of thexexposefield.
-
xgraphicsexpose
- Returns:
- a
XGraphicsExposeEventview of thexgraphicsexposefield.
-
xnoexpose
- Returns:
- a
XNoExposeEventview of thexnoexposefield.
-
xvisibility
- Returns:
- a
XVisibilityEventview of thexvisibilityfield.
-
xcreatewindow
- Returns:
- a
XCreateWindowEventview of thexcreatewindowfield.
-
xdestroywindow
- Returns:
- a
XDestroyWindowEventview of thexdestroywindowfield.
-
xunmap
- Returns:
- a
XUnmapEventview of thexunmapfield.
-
xmap
- Returns:
- a
XMapEventview of thexmapfield.
-
xmaprequest
- Returns:
- a
XMapRequestEventview of thexmaprequestfield.
-
xreparent
- Returns:
- a
XReparentEventview of thexreparentfield.
-
xconfigure
- Returns:
- a
XConfigureEventview of thexconfigurefield.
-
xgravity
- Returns:
- a
XGravityEventview of thexgravityfield.
-
xresizerequest
- Returns:
- a
XResizeRequestEventview of thexresizerequestfield.
-
xconfigurerequest
- Returns:
- a
XConfigureRequestEventview of thexconfigurerequestfield.
-
xcirculate
- Returns:
- a
XCirculateEventview of thexcirculatefield.
-
xcirculaterequest
- Returns:
- a
XCirculateRequestEventview of thexcirculaterequestfield.
-
xproperty
- Returns:
- a
XPropertyEventview of thexpropertyfield.
-
xselectionclear
- Returns:
- a
XSelectionClearEventview of thexselectionclearfield.
-
xselectionrequest
- Returns:
- a
XSelectionRequestEventview of thexselectionrequestfield.
-
xselection
- Returns:
- a
XSelectionEventview of thexselectionfield.
-
xcolormap
- Returns:
- a
XColormapEventview of thexcolormapfield.
-
xclient
- Returns:
- a
XClientMessageEventview of thexclientfield.
-
xmapping
- Returns:
- a
XMappingEventview of thexmappingfield.
-
xerror
- Returns:
- a
XErrorEventview of thexerrorfield.
-
xkeymap
- Returns:
- a
XKeymapEventview of thexkeymapfield.
-
xgeneric
- Returns:
- a
XGenericEventview of thexgenericfield.
-
xcookie
- Returns:
- a
XGenericEventCookieview of thexcookiefield.
-
malloc
Returns a newXEventinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXEventinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXEventinstance allocated withBufferUtils. -
create
Returns a newXEventinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXEvent.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXEvent.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXEvent.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXEvent.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXEventinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXEventinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXEvent.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXEvent.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nxany
Unsafe version ofxany(). -
nxkey
Unsafe version ofxkey(). -
nxbutton
Unsafe version ofxbutton(). -
nxmotion
Unsafe version ofxmotion(). -
nxcrossing
Unsafe version ofxcrossing(). -
nxfocus
Unsafe version ofxfocus(). -
nxexpose
Unsafe version ofxexpose(). -
nxgraphicsexpose
Unsafe version ofxgraphicsexpose(). -
nxnoexpose
Unsafe version ofxnoexpose(). -
nxvisibility
Unsafe version ofxvisibility(). -
nxcreatewindow
Unsafe version ofxcreatewindow(). -
nxdestroywindow
Unsafe version ofxdestroywindow(). -
nxunmap
Unsafe version ofxunmap(). -
nxmap
Unsafe version ofxmap(). -
nxmaprequest
Unsafe version ofxmaprequest(). -
nxreparent
Unsafe version ofxreparent(). -
nxconfigure
Unsafe version ofxconfigure(). -
nxgravity
Unsafe version ofxgravity(). -
nxresizerequest
Unsafe version ofxresizerequest(). -
nxconfigurerequest
Unsafe version ofxconfigurerequest(). -
nxcirculate
Unsafe version ofxcirculate(). -
nxcirculaterequest
Unsafe version ofxcirculaterequest(). -
nxproperty
Unsafe version ofxproperty(). -
nxselectionclear
Unsafe version ofxselectionclear(). -
nxselectionrequest
Unsafe version ofxselectionrequest(). -
nxselection
Unsafe version ofxselection(). -
nxcolormap
Unsafe version ofxcolormap(). -
nxclient
Unsafe version ofxclient(). -
nxmapping
Unsafe version ofxmapping(). -
nxerror
Unsafe version ofxerror(). -
nxkeymap
Unsafe version ofxkeymap(). -
nxgeneric
Unsafe version ofxgeneric(). -
nxcookie
Unsafe version ofxcookie().
-