public class XClientMessageEvent
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The message_type member is set to an atom that indicates how the data should be interpreted by the receiving client. The format
member is set to 8, 16, or 32 and specifies whether the data should be viewed as a list of bytes, shorts, or longs. The data member is a
union that contains the members b, s, and l. The b, s, and l members represent data of twenty 8-bit
values, ten 16-bit values, and five 32-bit values. Particular message types might not make use of all these values. The X server places no
interpretation on the values in the window, message_type, or data members.
serial – # of last request processed by serversend_event – true if this came from an X11.XSendEvent(long, long, boolean, long, org.lwjgl.system.linux.XEvent) requestdisplay – Display the event was read fromwindow – window it reported relative to
struct XClientMessageEvent {
int type;
unsigned long serial;
Bool send_event;
Display * display;
Window window;
Atom message_type;
int format;
struct {
char b[20];
short s[10];
long l[5];
} data;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XClientMessageEvent.Buffer
An array of
XClientMessageEvent structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DATA
The struct member offsets.
|
static int |
DATA_B
The struct member offsets.
|
static int |
DATA_L
The struct member offsets.
|
static int |
DATA_S
The struct member offsets.
|
static int |
DISPLAY
The struct member offsets.
|
static int |
FORMAT
The struct member offsets.
|
static int |
MESSAGE_TYPE
The struct member offsets.
|
static int |
SEND_EVENT
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.
|
static int |
WINDOW
The struct member offsets.
|
| Constructor and Description |
|---|
XClientMessageEvent(java.nio.ByteBuffer container)
Creates a
XClientMessageEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XClientMessageEvent |
calloc()
Returns a new
XClientMessageEvent instance allocated with memCalloc. |
static XClientMessageEvent.Buffer |
calloc(int capacity)
Returns a new
XClientMessageEvent.Buffer instance allocated with memCalloc. |
static XClientMessageEvent |
callocStack()
Returns a new
XClientMessageEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XClientMessageEvent.Buffer |
callocStack(int capacity)
Returns a new
XClientMessageEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XClientMessageEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XClientMessageEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XClientMessageEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XClientMessageEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XClientMessageEvent |
create()
Returns a new
XClientMessageEvent instance allocated with BufferUtils. |
static XClientMessageEvent.Buffer |
create(int capacity)
Returns a new
XClientMessageEvent.Buffer instance allocated with BufferUtils. |
static XClientMessageEvent |
create(long address)
Returns a new
XClientMessageEvent instance for the specified memory address. |
static XClientMessageEvent.Buffer |
create(long address,
int capacity)
Create a
XClientMessageEvent.Buffer instance at the specified memory. |
static XClientMessageEvent |
createSafe(long address)
|
static XClientMessageEvent.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
data_b()
Returns a
ByteBuffer view of the data.b field. |
XClientMessageEvent |
data_b(java.nio.ByteBuffer value)
Copies the specified
ByteBuffer to the data.b field. |
byte |
data_b(int index)
Returns the value at the specified index of the
data.b field. |
XClientMessageEvent |
data_b(int index,
byte value)
Sets the specified value at the specified index of the
data.b field. |
org.lwjgl.CLongBuffer |
data_l()
Returns a
CLongBuffer view of the data.l field. |
XClientMessageEvent |
data_l(org.lwjgl.CLongBuffer value)
Copies the specified
CLongBuffer to the data.l field. |
long |
data_l(int index)
Returns the value at the specified index of the
data.l field. |
XClientMessageEvent |
data_l(int index,
long value)
Sets the specified value at the specified index of the
data.l field. |
java.nio.ShortBuffer |
data_s()
Returns a
ShortBuffer view of the data.s field. |
short |
data_s(int index)
Returns the value at the specified index of the
data.s field. |
XClientMessageEvent |
data_s(int index,
short value)
Sets the specified value at the specified index of the
data.s field. |
XClientMessageEvent |
data_s(java.nio.ShortBuffer value)
Copies the specified
ShortBuffer to the data.s field. |
long |
display()
Returns the value of the
display field. |
XClientMessageEvent |
display(long value)
Sets the specified value to the
display field. |
int |
format()
Returns the value of the
format field. |
XClientMessageEvent |
format(int value)
Sets the specified value to the
format field. |
static XClientMessageEvent |
malloc()
Returns a new
XClientMessageEvent instance allocated with memAlloc. |
static XClientMessageEvent.Buffer |
malloc(int capacity)
Returns a new
XClientMessageEvent.Buffer instance allocated with memAlloc. |
static XClientMessageEvent |
mallocStack()
Returns a new
XClientMessageEvent instance allocated on the thread-local MemoryStack. |
static XClientMessageEvent.Buffer |
mallocStack(int capacity)
Returns a new
XClientMessageEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XClientMessageEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XClientMessageEvent.Buffer instance allocated on the specified MemoryStack. |
static XClientMessageEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XClientMessageEvent instance allocated on the specified MemoryStack. |
long |
message_type()
Returns the value of the
message_type field. |
XClientMessageEvent |
message_type(long value)
Sets the specified value to the
message_type field. |
static java.nio.ByteBuffer |
ndata_b(long struct)
Unsafe version of
data_b(). |
static void |
ndata_b(long struct,
java.nio.ByteBuffer value)
Unsafe version of
data_b. |
static byte |
ndata_b(long struct,
int index)
Unsafe version of
data_b. |
static void |
ndata_b(long struct,
int index,
byte value)
Unsafe version of
data_b. |
static org.lwjgl.CLongBuffer |
ndata_l(long struct)
Unsafe version of
data_l(). |
static void |
ndata_l(long struct,
org.lwjgl.CLongBuffer value)
Unsafe version of
data_l. |
static long |
ndata_l(long struct,
int index)
Unsafe version of
data_l. |
static void |
ndata_l(long struct,
int index,
long value)
Unsafe version of
data_l. |
static java.nio.ShortBuffer |
ndata_s(long struct)
Unsafe version of
data_s(). |
static short |
ndata_s(long struct,
int index)
Unsafe version of
data_s. |
static void |
ndata_s(long struct,
int index,
short value)
Unsafe version of
data_s. |
static void |
ndata_s(long struct,
java.nio.ShortBuffer value)
Unsafe version of
data_s. |
static long |
ndisplay(long struct)
Unsafe version of
display(). |
static void |
ndisplay(long struct,
long value)
Unsafe version of
display. |
static int |
nformat(long struct)
Unsafe version of
format(). |
static void |
nformat(long struct,
int value)
Unsafe version of
format. |
static long |
nmessage_type(long struct)
Unsafe version of
message_type(). |
static void |
nmessage_type(long struct,
long value)
Unsafe version of
message_type. |
static int |
nsend_event(long struct)
Unsafe version of
send_event(). |
static void |
nsend_event(long struct,
int value)
Unsafe version of
send_event. |
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. |
static long |
nwindow(long struct)
Unsafe version of
window(). |
static void |
nwindow(long struct,
long value)
Unsafe version of
window. |
boolean |
send_event()
Returns the value of the
send_event field. |
XClientMessageEvent |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XClientMessageEvent |
serial(long value)
Sets the specified value to the
serial field. |
XClientMessageEvent |
set(int type,
long serial,
boolean send_event,
long display,
long window,
long message_type,
int format,
java.nio.ByteBuffer data_b,
java.nio.ShortBuffer data_s,
org.lwjgl.CLongBuffer data_l)
Initializes this struct with the specified values.
|
XClientMessageEvent |
set(XClientMessageEvent src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
XClientMessageEvent |
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. |
long |
window()
Returns the value of the
window field. |
XClientMessageEvent |
window(long value)
Sets the specified value to the
window field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TYPE
public static final int SERIAL
public static final int SEND_EVENT
public static final int DISPLAY
public static final int WINDOW
public static final int MESSAGE_TYPE
public static final int FORMAT
public static final int DATA
public static final int DATA_B
public static final int DATA_S
public static final int DATA_L
public XClientMessageEvent(java.nio.ByteBuffer container)
XClientMessageEvent 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 serial()
serial field.public boolean send_event()
send_event field.public long display()
display field.public long window()
window field.public long message_type()
message_type field.public int format()
format field.public java.nio.ByteBuffer data_b()
ByteBuffer view of the data.b field.public byte data_b(int index)
data.b field.public java.nio.ShortBuffer data_s()
ShortBuffer view of the data.s field.public short data_s(int index)
data.s field.public org.lwjgl.CLongBuffer data_l()
CLongBuffer view of the data.l field.public long data_l(int index)
data.l field.public XClientMessageEvent type(int value)
type field.public XClientMessageEvent serial(long value)
serial field.public XClientMessageEvent send_event(boolean value)
send_event field.public XClientMessageEvent display(long value)
display field.public XClientMessageEvent window(long value)
window field.public XClientMessageEvent message_type(long value)
message_type field.public XClientMessageEvent format(int value)
format field.public XClientMessageEvent data_b(java.nio.ByteBuffer value)
ByteBuffer to the data.b field.public XClientMessageEvent data_b(int index, byte value)
data.b field.public XClientMessageEvent data_s(java.nio.ShortBuffer value)
ShortBuffer to the data.s field.public XClientMessageEvent data_s(int index, short value)
data.s field.public XClientMessageEvent data_l(org.lwjgl.CLongBuffer value)
CLongBuffer to the data.l field.public XClientMessageEvent data_l(int index, long value)
data.l field.public XClientMessageEvent set(int type, long serial, boolean send_event, long display, long window, long message_type, int format, java.nio.ByteBuffer data_b, java.nio.ShortBuffer data_s, org.lwjgl.CLongBuffer data_l)
public XClientMessageEvent set(XClientMessageEvent src)
src - the source structpublic static XClientMessageEvent malloc()
XClientMessageEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XClientMessageEvent calloc()
XClientMessageEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XClientMessageEvent create()
XClientMessageEvent instance allocated with BufferUtils.public static XClientMessageEvent create(long address)
XClientMessageEvent instance for the specified memory address.@Nullable public static XClientMessageEvent createSafe(long address)
public static XClientMessageEvent.Buffer malloc(int capacity)
XClientMessageEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XClientMessageEvent.Buffer calloc(int capacity)
XClientMessageEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XClientMessageEvent.Buffer create(int capacity)
XClientMessageEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XClientMessageEvent.Buffer create(long address, int capacity)
XClientMessageEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XClientMessageEvent.Buffer createSafe(long address, int capacity)
public static XClientMessageEvent mallocStack()
XClientMessageEvent instance allocated on the thread-local MemoryStack.public static XClientMessageEvent callocStack()
XClientMessageEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XClientMessageEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XClientMessageEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XClientMessageEvent callocStack(org.lwjgl.system.MemoryStack stack)
XClientMessageEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XClientMessageEvent.Buffer mallocStack(int capacity)
XClientMessageEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XClientMessageEvent.Buffer callocStack(int capacity)
XClientMessageEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XClientMessageEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XClientMessageEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XClientMessageEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XClientMessageEvent.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 nserial(long struct)
serial().public static int nsend_event(long struct)
send_event().public static long ndisplay(long struct)
display().public static long nwindow(long struct)
window().public static long nmessage_type(long struct)
message_type().public static int nformat(long struct)
format().public static java.nio.ByteBuffer ndata_b(long struct)
data_b().public static byte ndata_b(long struct,
int index)
data_b.public static java.nio.ShortBuffer ndata_s(long struct)
data_s().public static short ndata_s(long struct,
int index)
data_s.public static org.lwjgl.CLongBuffer ndata_l(long struct)
data_l().public static long ndata_l(long struct,
int index)
data_l.public static void ntype(long struct,
int value)
type.public static void nserial(long struct,
long value)
serial.public static void nsend_event(long struct,
int value)
send_event.public static void ndisplay(long struct,
long value)
display.public static void nwindow(long struct,
long value)
window.public static void nmessage_type(long struct,
long value)
message_type.public static void nformat(long struct,
int value)
format.public static void ndata_b(long struct,
java.nio.ByteBuffer value)
data_b.public static void ndata_b(long struct,
int index,
byte value)
data_b.public static void ndata_s(long struct,
java.nio.ShortBuffer value)
data_s.public static void ndata_s(long struct,
int index,
short value)
data_s.public static void ndata_l(long struct,
org.lwjgl.CLongBuffer value)
data_l.public static void ndata_l(long struct,
int index,
long value)
data_l.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.