Top Description Inners Fields Constructors Methods
org.lwjgl.system.linux

public Class XClientMessageEvent

extends Struct<XClientMessageEvent>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Client message event.

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.

Layout


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;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
DATA

The struct member offsets.

public static final int
DATA_B

The struct member offsets.

public static final int
DATA_L

The struct member offsets.

public static final int
DATA_S

The struct member offsets.

public static final int
DISPLAY

The struct member offsets.

public static final int
FORMAT

The struct member offsets.

public static final int
MESSAGE_TYPE

The struct member offsets.

public static final int
SEND_EVENT

The struct member offsets.

public static final int
SERIAL

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TYPE

The struct member offsets.

public static final int
WINDOW

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
XClientMessageEvent(long address, ByteBuffer container)

public
XClientMessageEvent(ByteBuffer container)

Creates a XClientMessageEvent instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static XClientMessageEvent
calloc()

Returns a new XClientMessageEvent instance allocated with memCalloc.

public static XClientMessageEvent.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new XClientMessageEvent.Buffer instance allocated with memCalloc.

public static XClientMessageEvent
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XClientMessageEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XClientMessageEvent.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XClientMessageEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XClientMessageEvent
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static XClientMessageEvent
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static XClientMessageEvent.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static XClientMessageEvent.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected XClientMessageEvent
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static XClientMessageEvent
create()

Returns a new XClientMessageEvent instance allocated with BufferUtils.

public static XClientMessageEvent
create(long address)

Returns a new XClientMessageEvent instance for the specified memory address.

public static XClientMessageEvent.Buffer
create(int
the buffer capacity
capacity
)

Returns a new XClientMessageEvent.Buffer instance allocated with BufferUtils.

public static XClientMessageEvent.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a XClientMessageEvent.Buffer instance at the specified memory.

public static XClientMessageEvent
createSafe(long address)

Like create, but returns null if address is NULL.

public static XClientMessageEvent.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public ByteBuffer

Returns:

a ByteBuffer view of the data.b field.
data_b
()

public byte

Returns:

the value at the specified index of the data.b field.
data_b
(int index)

public XClientMessageEvent
data_b(ByteBuffer value)

Copies the specified ByteBuffer to the b field.

public XClientMessageEvent
data_b(int index, byte value)

Sets the specified value at the specified index of the b field.

public CLongBuffer

Returns:

a CLongBuffer view of the data.l field.
data_l
()

public long

Returns:

the value at the specified index of the data.l field.
data_l
(int index)

public XClientMessageEvent
data_l(CLongBuffer value)

Copies the specified CLongBuffer to the l field.

public XClientMessageEvent
data_l(int index, long value)

Sets the specified value at the specified index of the l field.

public ShortBuffer

Returns:

a ShortBuffer view of the data.s field.
data_s
()

public short

Returns:

the value at the specified index of the data.s field.
data_s
(int index)

public XClientMessageEvent
data_s(ShortBuffer value)

Copies the specified ShortBuffer to the s field.

public XClientMessageEvent
data_s(int index, short value)

Sets the specified value at the specified index of the s field.

public long
display()

Display the event was read from

public XClientMessageEvent
display(long value)

Sets the specified value to the display field.

public int

Returns:

the value of the format field.
format
()

public XClientMessageEvent
format(int value)

Sets the specified value to the format field.

public static XClientMessageEvent
malloc()

Returns a new XClientMessageEvent instance allocated with memAlloc.

public static XClientMessageEvent.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new XClientMessageEvent.Buffer instance allocated with memAlloc.

public static XClientMessageEvent
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XClientMessageEvent instance allocated on the specified MemoryStack.

public static XClientMessageEvent.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XClientMessageEvent.Buffer instance allocated on the specified MemoryStack.

public static XClientMessageEvent
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static XClientMessageEvent
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static XClientMessageEvent.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static XClientMessageEvent.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public long

Returns:

the value of the message_type field.
message_type
()

public XClientMessageEvent
message_type(long value)

Sets the specified value to the message_type field.

public static ByteBuffer
ndata_b(long struct)

Unsafe version of data_b.

public static byte
ndata_b(long struct, int index)

Unsafe version of data_b.

public static void
ndata_b(long struct, ByteBuffer value)

Unsafe version of data_b.

public static void
ndata_b(long struct, int index, byte value)

Unsafe version of data_b.

public static CLongBuffer
ndata_l(long struct)

Unsafe version of data_l.

public static long
ndata_l(long struct, int index)

Unsafe version of data_l.

public static void
ndata_l(long struct, CLongBuffer value)

Unsafe version of data_l.

public static void
ndata_l(long struct, int index, long value)

Unsafe version of data_l.

public static ShortBuffer
ndata_s(long struct)

Unsafe version of data_s.

public static short
ndata_s(long struct, int index)

Unsafe version of data_s.

public static void
ndata_s(long struct, ShortBuffer value)

Unsafe version of data_s.

public static void
ndata_s(long struct, int index, short value)

Unsafe version of data_s.

public static long
ndisplay(long struct)

Unsafe version of display.

public static void
ndisplay(long struct, long value)

Unsafe version of display.

public static int
nformat(long struct)

Unsafe version of format.

public static void
nformat(long struct, int value)

Unsafe version of format.

public static long
nmessage_type(long struct)

Unsafe version of message_type.

public static void
nmessage_type(long struct, long value)

Unsafe version of message_type.

public static int
nsend_event(long struct)

Unsafe version of send_event.

public static void
nsend_event(long struct, int value)

Unsafe version of send_event.

public static long
nserial(long struct)

Unsafe version of serial.

public static void
nserial(long struct, long value)

Unsafe version of serial.

public static int
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public static long
nwindow(long struct)

Unsafe version of window.

public static void
nwindow(long struct, long value)

Unsafe version of window.

public boolean
send_event()

true if this came from an X11#XSendEvent request

public XClientMessageEvent
send_event(boolean value)

Sets the specified value to the send_event field.

public long
serial()

# of last request processed by server

public XClientMessageEvent
serial(long value)

Sets the specified value to the serial field.

public XClientMessageEvent
set(int type, long serial, boolean send_event, long display, long window, long message_type, int format, ByteBuffer data_b, ShortBuffer data_s, CLongBuffer data_l)

Initializes this struct with the specified values.

public XClientMessageEvent

Returns:

this struct
set
(XClientMessageEvent
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int

Returns:

the value of the type field.
type
()

public XClientMessageEvent
type(int value)

Sets the specified value to the type field.

public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public long
window()

window it reported relative to

public XClientMessageEvent
window(long value)

Sets the specified value to the window field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate