Package org.lwjgl.system.linux
Class XErrorEvent
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XErrorEvent>
org.lwjgl.system.linux.XErrorEvent
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class XErrorEvent
extends org.lwjgl.system.Struct<XErrorEvent>
implements org.lwjgl.system.NativeResource
Error event.
Layout
struct XErrorEvent {
int type;
Display * display()
;
XID resourceid()
;
unsigned long serial()
;
unsigned char error_code()
;
unsigned char request_code()
;
unsigned char minor_code()
;
}
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment 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 size in bytes.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
ConstructorsConstructorDescriptionXErrorEvent
(ByteBuffer container) Creates aXErrorEvent
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XErrorEvent
calloc()
Returns a newXErrorEvent
instance allocated withmemCalloc
.static XErrorEvent.Buffer
calloc
(int capacity) Returns a newXErrorEvent.Buffer
instance allocated withmemCalloc
.static XErrorEvent.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXErrorEvent.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XErrorEvent
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newXErrorEvent
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XErrorEvent
Deprecated.static XErrorEvent.Buffer
callocStack
(int capacity) Deprecated.static XErrorEvent.Buffer
callocStack
(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static XErrorEvent
callocStack
(org.lwjgl.system.MemoryStack stack) Deprecated.static XErrorEvent
create()
Returns a newXErrorEvent
instance allocated withBufferUtils
.static XErrorEvent.Buffer
create
(int capacity) Returns a newXErrorEvent.Buffer
instance allocated withBufferUtils
.static XErrorEvent
create
(long address) Returns a newXErrorEvent
instance for the specified memory address.static XErrorEvent.Buffer
create
(long address, int capacity) Create aXErrorEvent.Buffer
instance at the specified memory.static XErrorEvent
createSafe
(long address) static XErrorEvent.Buffer
createSafe
(long address, int capacity) long
display()
display the event was read fromdisplay
(long value) Sets the specified value to thedisplay()
field.byte
error code of failed requesterror_code
(byte value) Sets the specified value to theerror_code()
field.static XErrorEvent
malloc()
Returns a newXErrorEvent
instance allocated withmemAlloc
.static XErrorEvent.Buffer
malloc
(int capacity) Returns a newXErrorEvent.Buffer
instance allocated withmemAlloc
.static XErrorEvent.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXErrorEvent.Buffer
instance allocated on the specifiedMemoryStack
.static XErrorEvent
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newXErrorEvent
instance allocated on the specifiedMemoryStack
.static XErrorEvent
Deprecated.static XErrorEvent.Buffer
mallocStack
(int capacity) Deprecated.static XErrorEvent.Buffer
mallocStack
(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static XErrorEvent
mallocStack
(org.lwjgl.system.MemoryStack stack) Deprecated.byte
minor op-code of failed requestminor_code
(byte value) Sets the specified value to theminor_code()
field.static long
ndisplay
(long struct) Unsafe version ofdisplay()
.static void
ndisplay
(long struct, long value) Unsafe version ofdisplay
.static byte
nerror_code
(long struct) Unsafe version oferror_code()
.static void
nerror_code
(long struct, byte value) Unsafe version oferror_code
.static byte
nminor_code
(long struct) Unsafe version ofminor_code()
.static void
nminor_code
(long struct, byte value) Unsafe version ofminor_code
.static byte
nrequest_code
(long struct) Unsafe version ofrequest_code()
.static void
nrequest_code
(long struct, byte value) Unsafe version ofrequest_code
.static long
nresourceid
(long struct) Unsafe version ofresourceid()
.static void
nresourceid
(long struct, long value) Unsafe version ofresourceid
.static long
nserial
(long struct) Unsafe version ofserial()
.static void
nserial
(long struct, long value) Unsafe version ofserial
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.byte
major op-code of failed requestrequest_code
(byte value) Sets the specified value to therequest_code()
field.long
resource idresourceid
(long value) Sets the specified value to theresourceid()
field.long
serial()
serial number of failed requestserial
(long value) Sets the specified value to theserial()
field.set
(int type, long display, long resourceid, long serial, byte error_code, byte request_code, byte minor_code) Initializes this struct with the specified values.set
(XErrorEvent src) Copies the specified struct data to this struct.int
sizeof()
int
type()
type
(int value) Sets the specified value to thetype
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
DISPLAY
public static final int DISPLAYThe struct member offsets. -
RESOURCEID
public static final int RESOURCEIDThe struct member offsets. -
SERIAL
public static final int SERIALThe struct member offsets. -
ERROR_CODE
public static final int ERROR_CODEThe struct member offsets. -
REQUEST_CODE
public static final int REQUEST_CODEThe struct member offsets. -
MINOR_CODE
public static final int MINOR_CODEThe struct member offsets.
-
-
Constructor Details
-
XErrorEvent
Creates aXErrorEvent
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<XErrorEvent>
-
type
public int type()- Returns:
- the value of the
type
field.
-
display
public long display()display the event was read from -
resourceid
public long resourceid()resource id -
serial
public long serial()serial number of failed request -
error_code
public byte error_code()error code of failed request -
request_code
public byte request_code()major op-code of failed request -
minor_code
public byte minor_code()minor op-code of failed request -
type
Sets the specified value to thetype
field. -
display
Sets the specified value to thedisplay()
field. -
resourceid
Sets the specified value to theresourceid()
field. -
serial
Sets the specified value to theserial()
field. -
error_code
Sets the specified value to theerror_code()
field. -
request_code
Sets the specified value to therequest_code()
field. -
minor_code
Sets the specified value to theminor_code()
field. -
set
public XErrorEvent set(int type, long display, long resourceid, long serial, byte error_code, byte request_code, byte minor_code) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newXErrorEvent
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXErrorEvent
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXErrorEvent
instance allocated withBufferUtils
. -
create
Returns a newXErrorEvent
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXErrorEvent.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXErrorEvent.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXErrorEvent.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXErrorEvent.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 XErrorEvent.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 XErrorEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newXErrorEvent
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXErrorEvent
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXErrorEvent.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXErrorEvent.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()
. -
ndisplay
public static long ndisplay(long struct) Unsafe version ofdisplay()
. -
nresourceid
public static long nresourceid(long struct) Unsafe version ofresourceid()
. -
nserial
public static long nserial(long struct) Unsafe version ofserial()
. -
nerror_code
public static byte nerror_code(long struct) Unsafe version oferror_code()
. -
nrequest_code
public static byte nrequest_code(long struct) Unsafe version ofrequest_code()
. -
nminor_code
public static byte nminor_code(long struct) Unsafe version ofminor_code()
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
ndisplay
public static void ndisplay(long struct, long value) Unsafe version ofdisplay
. -
nresourceid
public static void nresourceid(long struct, long value) Unsafe version ofresourceid
. -
nserial
public static void nserial(long struct, long value) Unsafe version ofserial
. -
nerror_code
public static void nerror_code(long struct, byte value) Unsafe version oferror_code
. -
nrequest_code
public static void nrequest_code(long struct, byte value) Unsafe version ofrequest_code
. -
nminor_code
public static void nminor_code(long struct, byte value) Unsafe version ofminor_code
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-