public class XErrorEvent
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
display – display the event was read fromresourceid – resource idserial – serial number of failed requesterror_code – error code of failed requestrequest_code – major op-code of failed requestminor_code – minor op-code of failed request
struct XErrorEvent {
int type;
Display * display;
XID resourceid;
unsigned long serial;
unsigned char error_code;
unsigned char request_code;
unsigned char minor_code;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XErrorEvent.Buffer
An array of
XErrorEvent structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DISPLAY
The struct member offsets.
|
static int |
ERROR_CODE
The struct member offsets.
|
static int |
MINOR_CODE
The struct member offsets.
|
static int |
REQUEST_CODE
The struct member offsets.
|
static int |
RESOURCEID
The struct member offsets.
|
static int |
SERIAL
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
XErrorEvent(java.nio.ByteBuffer container)
Creates a
XErrorEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XErrorEvent |
calloc()
Returns a new
XErrorEvent instance allocated with memCalloc. |
static XErrorEvent.Buffer |
calloc(int capacity)
Returns a new
XErrorEvent.Buffer instance allocated with memCalloc. |
static XErrorEvent |
callocStack()
Returns a new
XErrorEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XErrorEvent.Buffer |
callocStack(int capacity)
Returns a new
XErrorEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XErrorEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XErrorEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XErrorEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XErrorEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XErrorEvent |
create()
Returns a new
XErrorEvent instance allocated with BufferUtils. |
static XErrorEvent.Buffer |
create(int capacity)
Returns a new
XErrorEvent.Buffer instance allocated with BufferUtils. |
static XErrorEvent |
create(long address)
Returns a new
XErrorEvent instance for the specified memory address. |
static XErrorEvent.Buffer |
create(long address,
int capacity)
Create a
XErrorEvent.Buffer instance at the specified memory. |
static XErrorEvent |
createSafe(long address)
|
static XErrorEvent.Buffer |
createSafe(long address,
int capacity)
|
long |
display()
Returns the value of the
display field. |
XErrorEvent |
display(long value)
Sets the specified value to the
display field. |
byte |
error_code()
Returns the value of the
error_code field. |
XErrorEvent |
error_code(byte value)
Sets the specified value to the
error_code field. |
static XErrorEvent |
malloc()
Returns a new
XErrorEvent instance allocated with memAlloc. |
static XErrorEvent.Buffer |
malloc(int capacity)
Returns a new
XErrorEvent.Buffer instance allocated with memAlloc. |
static XErrorEvent |
mallocStack()
Returns a new
XErrorEvent instance allocated on the thread-local MemoryStack. |
static XErrorEvent.Buffer |
mallocStack(int capacity)
Returns a new
XErrorEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XErrorEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XErrorEvent.Buffer instance allocated on the specified MemoryStack. |
static XErrorEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XErrorEvent instance allocated on the specified MemoryStack. |
byte |
minor_code()
Returns the value of the
minor_code field. |
XErrorEvent |
minor_code(byte value)
Sets the specified value to the
minor_code field. |
static long |
ndisplay(long struct)
Unsafe version of
display(). |
static void |
ndisplay(long struct,
long value)
Unsafe version of
display. |
static byte |
nerror_code(long struct)
Unsafe version of
error_code(). |
static void |
nerror_code(long struct,
byte value)
Unsafe version of
error_code. |
static byte |
nminor_code(long struct)
Unsafe version of
minor_code(). |
static void |
nminor_code(long struct,
byte value)
Unsafe version of
minor_code. |
static byte |
nrequest_code(long struct)
Unsafe version of
request_code(). |
static void |
nrequest_code(long struct,
byte value)
Unsafe version of
request_code. |
static long |
nresourceid(long struct)
Unsafe version of
resourceid(). |
static void |
nresourceid(long struct,
long value)
Unsafe version of
resourceid. |
static long |
nserial(long struct)
Unsafe version of
serial(). |
static void |
nserial(long struct,
long value)
Unsafe version of
serial. |
static int |
ntype(long struct)
Unsafe version of
type(). |
static void |
ntype(long struct,
int value)
Unsafe version of
type. |
byte |
request_code()
Returns the value of the
request_code field. |
XErrorEvent |
request_code(byte value)
Sets the specified value to the
request_code field. |
long |
resourceid()
Returns the value of the
resourceid field. |
XErrorEvent |
resourceid(long value)
Sets the specified value to the
resourceid field. |
long |
serial()
Returns the value of the
serial field. |
XErrorEvent |
serial(long value)
Sets the specified value to the
serial field. |
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.
|
XErrorEvent |
set(XErrorEvent src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
XErrorEvent |
type(int value)
Sets the specified value to the
type field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TYPE
public static final int DISPLAY
public static final int RESOURCEID
public static final int SERIAL
public static final int ERROR_CODE
public static final int REQUEST_CODE
public static final int MINOR_CODE
public XErrorEvent(java.nio.ByteBuffer container)
XErrorEvent instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int type()
type field.public long display()
display field.public long resourceid()
resourceid field.public long serial()
serial field.public byte error_code()
error_code field.public byte request_code()
request_code field.public byte minor_code()
minor_code field.public XErrorEvent type(int value)
type field.public XErrorEvent display(long value)
display field.public XErrorEvent resourceid(long value)
resourceid field.public XErrorEvent serial(long value)
serial field.public XErrorEvent error_code(byte value)
error_code field.public XErrorEvent request_code(byte value)
request_code field.public XErrorEvent minor_code(byte value)
minor_code field.public XErrorEvent set(int type, long display, long resourceid, long serial, byte error_code, byte request_code, byte minor_code)
public XErrorEvent set(XErrorEvent src)
src - the source structpublic static XErrorEvent malloc()
XErrorEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XErrorEvent calloc()
XErrorEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XErrorEvent create()
XErrorEvent instance allocated with BufferUtils.public static XErrorEvent create(long address)
XErrorEvent instance for the specified memory address.@Nullable public static XErrorEvent createSafe(long address)
public static XErrorEvent.Buffer malloc(int capacity)
XErrorEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XErrorEvent.Buffer calloc(int capacity)
XErrorEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XErrorEvent.Buffer create(int capacity)
XErrorEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XErrorEvent.Buffer create(long address, int capacity)
XErrorEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XErrorEvent.Buffer createSafe(long address, int capacity)
public static XErrorEvent mallocStack()
XErrorEvent instance allocated on the thread-local MemoryStack.public static XErrorEvent callocStack()
XErrorEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XErrorEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XErrorEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XErrorEvent callocStack(org.lwjgl.system.MemoryStack stack)
XErrorEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XErrorEvent.Buffer mallocStack(int capacity)
XErrorEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XErrorEvent.Buffer callocStack(int capacity)
XErrorEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XErrorEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XErrorEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XErrorEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XErrorEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int ntype(long struct)
type().public static long ndisplay(long struct)
display().public static long nresourceid(long struct)
resourceid().public static long nserial(long struct)
serial().public static byte nerror_code(long struct)
error_code().public static byte nrequest_code(long struct)
request_code().public static byte nminor_code(long struct)
minor_code().public static void ntype(long struct,
int value)
type.public static void ndisplay(long struct,
long value)
display.public static void nresourceid(long struct,
long value)
resourceid.public static void nserial(long struct,
long value)
serial.public static void nerror_code(long struct,
byte value)
error_code.public static void nrequest_code(long struct,
byte value)
request_code.public static void nminor_code(long struct,
byte value)
minor_code.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.