Package org.lwjgl.system.linux
Class XClientMessageEvent
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXClientMessageEvent(ByteBuffer container) Creates aXClientMessageEventinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XClientMessageEventcalloc()Returns a newXClientMessageEventinstance allocated withmemCalloc.static XClientMessageEvent.Buffercalloc(int capacity) Returns a newXClientMessageEvent.Bufferinstance allocated withmemCalloc.static XClientMessageEvent.Buffercalloc(int capacity, MemoryStack stack) Returns a newXClientMessageEvent.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XClientMessageEventcalloc(MemoryStack stack) Returns a newXClientMessageEventinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XClientMessageEventDeprecated.static XClientMessageEvent.BuffercallocStack(int capacity) Deprecated.static XClientMessageEvent.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static XClientMessageEventcallocStack(MemoryStack stack) Deprecated.static XClientMessageEventcreate()Returns a newXClientMessageEventinstance allocated withBufferUtils.static XClientMessageEvent.Buffercreate(int capacity) Returns a newXClientMessageEvent.Bufferinstance allocated withBufferUtils.static XClientMessageEventcreate(long address) Returns a newXClientMessageEventinstance for the specified memory address.static XClientMessageEvent.Buffercreate(long address, int capacity) Create aXClientMessageEvent.Bufferinstance at the specified memory.static @Nullable XClientMessageEventcreateSafe(long address) static @Nullable XClientMessageEvent.BuffercreateSafe(long address, int capacity) data_b()bytedata_b(int index) data_b(int index, byte value) Sets the specified value at the specified index of thebfield.data_b(ByteBuffer value) Copies the specifiedByteBufferto thebfield.data_l()longdata_l(int index) data_l(int index, long value) Sets the specified value at the specified index of thelfield.data_l(CLongBuffer value) Copies the specifiedCLongBufferto thelfield.data_s()shortdata_s(int index) data_s(int index, short value) Sets the specified value at the specified index of thesfield.data_s(ShortBuffer value) Copies the specifiedShortBufferto thesfield.longdisplay()display(long value) Sets the specified value to thedisplayfield.intformat()format(int value) Sets the specified value to theformatfield.static XClientMessageEventmalloc()Returns a newXClientMessageEventinstance allocated withmemAlloc.static XClientMessageEvent.Buffermalloc(int capacity) Returns a newXClientMessageEvent.Bufferinstance allocated withmemAlloc.static XClientMessageEvent.Buffermalloc(int capacity, MemoryStack stack) Returns a newXClientMessageEvent.Bufferinstance allocated on the specifiedMemoryStack.static XClientMessageEventmalloc(MemoryStack stack) Returns a newXClientMessageEventinstance allocated on the specifiedMemoryStack.static XClientMessageEventDeprecated.static XClientMessageEvent.BuffermallocStack(int capacity) Deprecated.static XClientMessageEvent.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static XClientMessageEventmallocStack(MemoryStack stack) Deprecated.longmessage_type(long value) Sets the specified value to themessage_typefield.static ByteBufferndata_b(long struct) Unsafe version ofdata_b().static bytendata_b(long struct, int index) Unsafe version ofdata_b.static voidndata_b(long struct, int index, byte value) Unsafe version ofdata_b.static voidndata_b(long struct, ByteBuffer value) Unsafe version ofdata_b.static CLongBufferndata_l(long struct) Unsafe version ofdata_l().static longndata_l(long struct, int index) Unsafe version ofdata_l.static voidndata_l(long struct, int index, long value) Unsafe version ofdata_l.static voidndata_l(long struct, CLongBuffer value) Unsafe version ofdata_l.static ShortBufferndata_s(long struct) Unsafe version ofdata_s().static shortndata_s(long struct, int index) Unsafe version ofdata_s.static voidndata_s(long struct, int index, short value) Unsafe version ofdata_s.static voidndata_s(long struct, ShortBuffer value) Unsafe version ofdata_s.static longndisplay(long struct) Unsafe version ofdisplay().static voidndisplay(long struct, long value) Unsafe version ofdisplay.static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static longnmessage_type(long struct) Unsafe version ofmessage_type().static voidnmessage_type(long struct, long value) Unsafe version ofmessage_type.static intnsend_event(long struct) Unsafe version ofsend_event().static voidnsend_event(long struct, int value) Unsafe version ofsend_event.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.static longnwindow(long struct) Unsafe version ofwindow().static voidnwindow(long struct, long value) Unsafe version ofwindow.booleansend_event(boolean value) Sets the specified value to thesend_eventfield.longserial()serial(long value) Sets the specified value to theserialfield.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.set(XClientMessageEvent src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.longwindow()window(long value) Sets the specified value to thewindowfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
SERIAL
public static final int SERIALThe struct member offsets. -
SEND_EVENT
public static final int SEND_EVENTThe struct member offsets. -
DISPLAY
public static final int DISPLAYThe struct member offsets. -
WINDOW
public static final int WINDOWThe struct member offsets. -
MESSAGE_TYPE
public static final int MESSAGE_TYPEThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
DATA
public static final int DATAThe struct member offsets. -
DATA_B
public static final int DATA_BThe struct member offsets. -
DATA_S
public static final int DATA_SThe struct member offsets. -
DATA_L
public static final int DATA_LThe struct member offsets.
-
-
Constructor Details
-
XClientMessageEvent
Creates aXClientMessageEventinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XClientMessageEvent>
-
type
public int type()- Returns:
- the value of the
typefield.
-
serial
public long serial()- Returns:
- the value of the
serialfield.
-
send_event
public boolean send_event()- Returns:
- the value of the
send_eventfield.
-
display
public long display()- Returns:
- the value of the
displayfield.
-
window
public long window()- Returns:
- the value of the
windowfield.
-
message_type
public long message_type()- Returns:
- the value of the
message_typefield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
data_b
- Returns:
- a
ByteBufferview of thedata.bfield.
-
data_b
public byte data_b(int index) - Returns:
- the value at the specified index of the
data.bfield.
-
data_s
- Returns:
- a
ShortBufferview of thedata.sfield.
-
data_s
public short data_s(int index) - Returns:
- the value at the specified index of the
data.sfield.
-
data_l
- Returns:
- a
CLongBufferview of thedata.lfield.
-
data_l
public long data_l(int index) - Returns:
- the value at the specified index of the
data.lfield.
-
type
Sets the specified value to thetypefield. -
serial
Sets the specified value to theserialfield. -
send_event
Sets the specified value to thesend_eventfield. -
display
Sets the specified value to thedisplayfield. -
window
Sets the specified value to thewindowfield. -
message_type
Sets the specified value to themessage_typefield. -
format
Sets the specified value to theformatfield. -
data_b
Copies the specifiedByteBufferto thebfield. -
data_b
Sets the specified value at the specified index of thebfield. -
data_s
Copies the specifiedShortBufferto thesfield. -
data_s
Sets the specified value at the specified index of thesfield. -
data_l
Copies the specifiedCLongBufferto thelfield. -
data_l
Sets the specified value at the specified index of thelfield. -
set
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. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXClientMessageEventinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXClientMessageEventinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXClientMessageEventinstance allocated withBufferUtils. -
create
Returns a newXClientMessageEventinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXClientMessageEvent.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXClientMessageEvent.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXClientMessageEvent.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXClientMessageEvent.Bufferinstance 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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newXClientMessageEventinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXClientMessageEventinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXClientMessageEvent.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXClientMessageEvent.Bufferinstance allocated on the specifiedMemoryStackand 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(). -
nserial
public static long nserial(long struct) Unsafe version ofserial(). -
nsend_event
public static int nsend_event(long struct) Unsafe version ofsend_event(). -
ndisplay
public static long ndisplay(long struct) Unsafe version ofdisplay(). -
nwindow
public static long nwindow(long struct) Unsafe version ofwindow(). -
nmessage_type
public static long nmessage_type(long struct) Unsafe version ofmessage_type(). -
nformat
public static int nformat(long struct) Unsafe version offormat(). -
ndata_b
Unsafe version ofdata_b(). -
ndata_b
public static byte ndata_b(long struct, int index) Unsafe version ofdata_b. -
ndata_s
Unsafe version ofdata_s(). -
ndata_s
public static short ndata_s(long struct, int index) Unsafe version ofdata_s. -
ndata_l
Unsafe version ofdata_l(). -
ndata_l
public static long ndata_l(long struct, int index) Unsafe version ofdata_l. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nserial
public static void nserial(long struct, long value) Unsafe version ofserial. -
nsend_event
public static void nsend_event(long struct, int value) Unsafe version ofsend_event. -
ndisplay
public static void ndisplay(long struct, long value) Unsafe version ofdisplay. -
nwindow
public static void nwindow(long struct, long value) Unsafe version ofwindow. -
nmessage_type
public static void nmessage_type(long struct, long value) Unsafe version ofmessage_type. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat. -
ndata_b
Unsafe version ofdata_b. -
ndata_b
public static void ndata_b(long struct, int index, byte value) Unsafe version ofdata_b. -
ndata_s
Unsafe version ofdata_s. -
ndata_s
public static void ndata_s(long struct, int index, short value) Unsafe version ofdata_s. -
ndata_l
Unsafe version ofdata_l. -
ndata_l
public static void ndata_l(long struct, int index, long value) Unsafe version ofdata_l. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-