Package org.lwjgl.system.linux
Class XErrorEvent
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.XErrorEvent
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XErrorEvent extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceError event.Layout
struct XErrorEvent { int type; Display *display(); XIDresourceid(); unsigned longserial(); unsigned charerror_code(); unsigned charrequest_code(); unsigned charminor_code(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXErrorEvent.BufferAn array ofXErrorEventstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDISPLAY
ERROR_CODE
MINOR_CODE
REQUEST_CODE
RESOURCEID
SERIALThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XErrorEvent(java.nio.ByteBuffer container)Creates aXErrorEventinstance 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 XErrorEventcalloc()Returns a newXErrorEventinstance allocated withmemCalloc.static XErrorEvent.Buffercalloc(int capacity)Returns a newXErrorEvent.Bufferinstance allocated withmemCalloc.static XErrorEvent.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXErrorEvent.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XErrorEventcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXErrorEventinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XErrorEventcallocStack()Deprecated.static XErrorEvent.BuffercallocStack(int capacity)Deprecated.static XErrorEvent.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static XErrorEventcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static XErrorEventcreate()Returns a newXErrorEventinstance allocated withBufferUtils.static XErrorEvent.Buffercreate(int capacity)Returns a newXErrorEvent.Bufferinstance allocated withBufferUtils.static XErrorEventcreate(long address)Returns a newXErrorEventinstance for the specified memory address.static XErrorEvent.Buffercreate(long address, int capacity)Create aXErrorEvent.Bufferinstance at the specified memory.static XErrorEventcreateSafe(long address)static XErrorEvent.BuffercreateSafe(long address, int capacity)longdisplay()display the event was read fromXErrorEventdisplay(long value)Sets the specified value to thedisplay()field.byteerror_code()error code of failed requestXErrorEventerror_code(byte value)Sets the specified value to theerror_code()field.static XErrorEventmalloc()Returns a newXErrorEventinstance allocated withmemAlloc.static XErrorEvent.Buffermalloc(int capacity)Returns a newXErrorEvent.Bufferinstance allocated withmemAlloc.static XErrorEvent.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXErrorEvent.Bufferinstance allocated on the specifiedMemoryStack.static XErrorEventmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXErrorEventinstance allocated on the specifiedMemoryStack.static XErrorEventmallocStack()Deprecated.static XErrorEvent.BuffermallocStack(int capacity)Deprecated.static XErrorEvent.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static XErrorEventmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.byteminor_code()minor op-code of failed requestXErrorEventminor_code(byte value)Sets the specified value to theminor_code()field.static longndisplay(long struct)Unsafe version ofdisplay().static voidndisplay(long struct, long value)Unsafe version ofdisplay.static bytenerror_code(long struct)Unsafe version oferror_code().static voidnerror_code(long struct, byte value)Unsafe version oferror_code.static bytenminor_code(long struct)Unsafe version ofminor_code().static voidnminor_code(long struct, byte value)Unsafe version ofminor_code.static bytenrequest_code(long struct)Unsafe version ofrequest_code().static voidnrequest_code(long struct, byte value)Unsafe version ofrequest_code.static longnresourceid(long struct)Unsafe version ofresourceid().static voidnresourceid(long struct, long value)Unsafe version ofresourceid.static longnserial(long struct)Unsafe version ofserial().static voidnserial(long struct, long value)Unsafe version ofserial.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.byterequest_code()major op-code of failed requestXErrorEventrequest_code(byte value)Sets the specified value to therequest_code()field.longresourceid()resource idXErrorEventresourceid(long value)Sets the specified value to theresourceid()field.longserial()serial number of failed requestXErrorEventserial(long value)Sets the specified value to theserial()field.XErrorEventset(int type, long display, long resourceid, long serial, byte error_code, byte request_code, byte minor_code)Initializes this struct with the specified values.XErrorEventset(XErrorEvent src)Copies the specified struct data to this struct.intsizeof()inttype()XErrorEventtype(int value)Sets the specified value to thetypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XErrorEvent
public XErrorEvent(java.nio.ByteBuffer container)
Creates aXErrorEventinstance 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.
-
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
public XErrorEvent type(int value)
Sets the specified value to thetypefield.
-
display
public XErrorEvent display(long value)
Sets the specified value to thedisplay()field.
-
resourceid
public XErrorEvent resourceid(long value)
Sets the specified value to theresourceid()field.
-
serial
public XErrorEvent serial(long value)
Sets the specified value to theserial()field.
-
error_code
public XErrorEvent error_code(byte value)
Sets the specified value to theerror_code()field.
-
request_code
public XErrorEvent request_code(byte value)
Sets the specified value to therequest_code()field.
-
minor_code
public XErrorEvent minor_code(byte value)
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
public XErrorEvent set(XErrorEvent src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XErrorEvent malloc()
Returns a newXErrorEventinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XErrorEvent calloc()
Returns a newXErrorEventinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XErrorEvent create()
Returns a newXErrorEventinstance allocated withBufferUtils.
-
create
public static XErrorEvent create(long address)
Returns a newXErrorEventinstance for the specified memory address.
-
createSafe
@Nullable public static XErrorEvent createSafe(long address)
-
malloc
public static XErrorEvent.Buffer malloc(int capacity)
Returns a newXErrorEvent.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XErrorEvent.Buffer calloc(int capacity)
Returns a newXErrorEvent.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XErrorEvent.Buffer create(int capacity)
Returns a newXErrorEvent.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XErrorEvent.Buffer create(long address, int capacity)
Create aXErrorEvent.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XErrorEvent.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static XErrorEvent mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static XErrorEvent callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static XErrorEvent mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static XErrorEvent callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static XErrorEvent.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static XErrorEvent.Buffer callocStack(int capacity)
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
public static XErrorEvent malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXErrorEventinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XErrorEvent calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXErrorEventinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XErrorEvent.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXErrorEvent.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XErrorEvent.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXErrorEvent.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().
-
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
-
-