Package org.lwjgl.system.linux
Class XEvent
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XEvent>
org.lwjgl.system.linux.XEvent
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class XEvent
extends org.lwjgl.system.Struct<XEvent>
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/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionXEvent
(ByteBuffer container) Creates aXEvent
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
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
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()
xany()
xbutton()
xclient()
xcookie()
xerror()
xexpose()
xfocus()
xgeneric()
xgravity()
xkey()
xkeymap()
xmap()
xmapping()
xmotion()
xunmap()
Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeof
in classorg.lwjgl.system.Struct<XEvent>
-
type
public int type()- Returns:
- the value of the
type
field.
-
xany
- Returns:
- a
XAnyEvent
view of thexany
field.
-
xkey
- Returns:
- a
XKeyEvent
view of thexkey
field.
-
xbutton
- Returns:
- a
XButtonEvent
view of thexbutton
field.
-
xmotion
- Returns:
- a
XMotionEvent
view of thexmotion
field.
-
xcrossing
- Returns:
- a
XCrossingEvent
view of thexcrossing
field.
-
xfocus
- Returns:
- a
XFocusChangeEvent
view of thexfocus
field.
-
xexpose
- Returns:
- a
XExposeEvent
view of thexexpose
field.
-
xgraphicsexpose
- Returns:
- a
XGraphicsExposeEvent
view of thexgraphicsexpose
field.
-
xnoexpose
- Returns:
- a
XNoExposeEvent
view of thexnoexpose
field.
-
xvisibility
- Returns:
- a
XVisibilityEvent
view of thexvisibility
field.
-
xcreatewindow
- Returns:
- a
XCreateWindowEvent
view of thexcreatewindow
field.
-
xdestroywindow
- Returns:
- a
XDestroyWindowEvent
view of thexdestroywindow
field.
-
xunmap
- Returns:
- a
XUnmapEvent
view of thexunmap
field.
-
xmap
- Returns:
- a
XMapEvent
view of thexmap
field.
-
xmaprequest
- Returns:
- a
XMapRequestEvent
view of thexmaprequest
field.
-
xreparent
- Returns:
- a
XReparentEvent
view of thexreparent
field.
-
xconfigure
- Returns:
- a
XConfigureEvent
view of thexconfigure
field.
-
xgravity
- Returns:
- a
XGravityEvent
view of thexgravity
field.
-
xresizerequest
- Returns:
- a
XResizeRequestEvent
view of thexresizerequest
field.
-
xconfigurerequest
- Returns:
- a
XConfigureRequestEvent
view of thexconfigurerequest
field.
-
xcirculate
- Returns:
- a
XCirculateEvent
view of thexcirculate
field.
-
xcirculaterequest
- Returns:
- a
XCirculateRequestEvent
view of thexcirculaterequest
field.
-
xproperty
- Returns:
- a
XPropertyEvent
view of thexproperty
field.
-
xselectionclear
- Returns:
- a
XSelectionClearEvent
view of thexselectionclear
field.
-
xselectionrequest
- Returns:
- a
XSelectionRequestEvent
view of thexselectionrequest
field.
-
xselection
- Returns:
- a
XSelectionEvent
view of thexselection
field.
-
xcolormap
- Returns:
- a
XColormapEvent
view of thexcolormap
field.
-
xclient
- Returns:
- a
XClientMessageEvent
view of thexclient
field.
-
xmapping
- Returns:
- a
XMappingEvent
view of thexmapping
field.
-
xerror
- Returns:
- a
XErrorEvent
view of thexerror
field.
-
xkeymap
- Returns:
- a
XKeymapEvent
view of thexkeymap
field.
-
xgeneric
- Returns:
- a
XGenericEvent
view of thexgeneric
field.
-
xcookie
- Returns:
- a
XGenericEventCookie
view of thexcookie
field.
-
malloc
Returns a newXEvent
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXEvent
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXEvent
instance allocated withBufferUtils
. -
create
Returns a newXEvent
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXEvent.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXEvent.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXEvent.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXEvent.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
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
Returns a newXEvent
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXEvent
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXEvent.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXEvent.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-