XGenericEvent.
struct XGenericEventCookie {
int type;
unsigned long serial;
Bool send_event;
Display * display;
int extension;
int evtype;
unsigned int cookie;
void * data;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XGenericEventCookie.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | COOKIE
The struct member offsets. |
| public static final int | DATA
The struct member offsets. |
| public static final int | DISPLAY
The struct member offsets. |
| public static final int | EVTYPE
The struct member offsets. |
| public static final int | EXTENSION
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. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XGenericEventCookie(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XGenericEventCookie | |
| public static XGenericEventCookie. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XGenericEventCookie | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XGenericEventCookie. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static XGenericEventCookie | |
| public static XGenericEventCookie | |
| public static XGenericEventCookie. | |
| public static XGenericEventCookie. | |
| public int | |
| public XGenericEventCookie | |
| protected XGenericEventCookie | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XGenericEventCookie | |
| public static XGenericEventCookie | |
| public static XGenericEventCookie. | create(int
the buffer capacity capacity)Returns a new |
| public static XGenericEventCookie. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XGenericEventCookie | |
| public static XGenericEventCookie. | |
| public ByteBuffer | |
| public XGenericEventCookie | |
| public long | |
| public XGenericEventCookie | |
| public int | |
| public XGenericEventCookie | |
| public int | |
| public XGenericEventCookie | |
| public static XGenericEventCookie | |
| public static XGenericEventCookie. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XGenericEventCookie | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XGenericEventCookie. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static XGenericEventCookie | |
| public static XGenericEventCookie | |
| public static XGenericEventCookie. | |
| public static XGenericEventCookie. | |
| public static int | |
| public static void | |
| public static ByteBuffer | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public boolean | |
| public XGenericEventCookie | |
| public long | |
| public XGenericEventCookie | |
| public XGenericEventCookie | set(int type, long serial, boolean send_event, long display, int extension, int evtype, int cookie, ByteBuffer data)
Initializes this struct with the specified values. |
| public XGenericEventCookie | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XGenericEventCookie | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| COOKIE | back to summary |
|---|---|
| public static final int COOKIE The struct member offsets. | |
| DATA | back to summary |
|---|---|
| public static final int DATA The struct member offsets. | |
| DISPLAY | back to summary |
|---|---|
| public static final int DISPLAY The struct member offsets. | |
| EVTYPE | back to summary |
|---|---|
| public static final int EVTYPE The struct member offsets. | |
| EXTENSION | back to summary |
|---|---|
| public static final int EXTENSION The struct member offsets. | |
| SEND_EVENT | back to summary |
|---|---|
| public static final int SEND_EVENT The struct member offsets. | |
| SERIAL | back to summary |
|---|---|
| public static final int SERIAL The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| XGenericEventCookie | back to summary |
|---|---|
| protected XGenericEventCookie(long address, ByteBuffer container) | |
| XGenericEventCookie | back to summary |
|---|---|
| public XGenericEventCookie(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XGenericEventCookie calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XGenericEventCookie. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XGenericEventCookie calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XGenericEventCookie. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static XGenericEventCookie callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static XGenericEventCookie callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static XGenericEventCookie. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static XGenericEventCookie. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| cookie | back to summary |
|---|---|
public int cookie()
| |
| cookie | back to summary |
|---|---|
| public XGenericEventCookie cookie(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected XGenericEventCookie create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XGenericEventCookie create() Returns a new | |
| create | back to summary |
|---|---|
| public static XGenericEventCookie create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XGenericEventCookie. Returns a new
| |
| create | back to summary |
|---|---|
| public static XGenericEventCookie. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XGenericEventCookie createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XGenericEventCookie. Like
| |
| data | back to summary |
|---|---|
public ByteBuffer data(int capacity)
| |
| data | back to summary |
|---|---|
| public XGenericEventCookie data(ByteBuffer value) Sets the address of the specified | |
| display | back to summary |
|---|---|
| public long display()
| |
| display | back to summary |
|---|---|
| public XGenericEventCookie display(long value) Sets the specified value to the | |
| evtype | back to summary |
|---|---|
| public int evtype() actual event type | |
| evtype | back to summary |
|---|---|
| public XGenericEventCookie evtype(int value) Sets the specified value to the | |
| extension | back to summary |
|---|---|
| public int extension() major opcode of extension that caused the event | |
| extension | back to summary |
|---|---|
| public XGenericEventCookie extension(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static XGenericEventCookie malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XGenericEventCookie. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XGenericEventCookie malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XGenericEventCookie. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static XGenericEventCookie mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static XGenericEventCookie mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static XGenericEventCookie. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static XGenericEventCookie. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ncookie | back to summary |
|---|---|
| public static int ncookie(long struct) Unsafe version of | |
| ncookie | back to summary |
|---|---|
| public static void ncookie(long struct, int value) Unsafe version of | |
| ndata | back to summary |
|---|---|
| public static ByteBuffer ndata(long struct, int capacity) Unsafe version of | |
| ndata | back to summary |
|---|---|
| public static void ndata(long struct, ByteBuffer value) Unsafe version of | |
| ndisplay | back to summary |
|---|---|
| public static long ndisplay(long struct) Unsafe version of | |
| ndisplay | back to summary |
|---|---|
| public static void ndisplay(long struct, long value) Unsafe version of | |
| nevtype | back to summary |
|---|---|
| public static int nevtype(long struct) Unsafe version of | |
| nevtype | back to summary |
|---|---|
| public static void nevtype(long struct, int value) Unsafe version of | |
| nextension | back to summary |
|---|---|
| public static int nextension(long struct) Unsafe version of | |
| nextension | back to summary |
|---|---|
| public static void nextension(long struct, int value) Unsafe version of | |
| nsend_event | back to summary |
|---|---|
| public static int nsend_event(long struct) Unsafe version of | |
| nsend_event | back to summary |
|---|---|
| public static void nsend_event(long struct, int value) Unsafe version of | |
| nserial | back to summary |
|---|---|
| public static long nserial(long struct) Unsafe version of | |
| nserial | back to summary |
|---|---|
| public static void nserial(long struct, long value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| send_event | back to summary |
|---|---|
| public boolean send_event() true if this came from an
| |
| send_event | back to summary |
|---|---|
| public XGenericEventCookie send_event(boolean value) Sets the specified value to the | |
| serial | back to summary |
|---|---|
| public long serial() # of last request processed by server
| |
| serial | back to summary |
|---|---|
| public XGenericEventCookie serial(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public XGenericEventCookie set(int type, long serial, boolean send_event, long display, int extension, int evtype, int cookie, ByteBuffer data) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XGenericEventCookie set(XGenericEventCookie src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary | |
|---|---|---|
| public int type() of event. Must be:
| ||
| type | back to summary |
|---|---|
| public XGenericEventCookie type(int value) Sets the specified value to the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
XGenericEventCookie structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XGenericEventCookie |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public XGenericEventCookie. | |
| public ByteBuffer | |
| public XGenericEventCookie. | |
| public long | |
| public XGenericEventCookie. | |
| public int | |
| public XGenericEventCookie. | |
| public int | |
| public XGenericEventCookie. | |
| protected XGenericEventCookie | |
| protected XGenericEventCookie. | |
| public boolean | |
| public XGenericEventCookie. | |
| public long | |
| public XGenericEventCookie. | |
| public int | |
| public XGenericEventCookie. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XGenericEventCookie ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| cookie | back to summary |
|---|---|
public int cookie()
| |
| cookie | back to summary |
|---|---|
| public XGenericEventCookie. Sets the specified value to the | |
| data | back to summary |
|---|---|
public ByteBuffer data(int capacity)
| |
| data | back to summary |
|---|---|
| public XGenericEventCookie. Sets the address of the specified | |
| display | back to summary |
|---|---|
public long display()
| |
| display | back to summary |
|---|---|
| public XGenericEventCookie. Sets the specified value to the | |
| evtype | back to summary |
|---|---|
public int evtype()
| |
| evtype | back to summary |
|---|---|
| public XGenericEventCookie. Sets the specified value to the | |
| extension | back to summary |
|---|---|
public int extension()
| |
| extension | back to summary |
|---|---|
| public XGenericEventCookie. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected XGenericEventCookie getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected XGenericEventCookie. Implements abstract org.
| |
| send_event | back to summary |
|---|---|
public boolean send_event()
| |
| send_event | back to summary |
|---|---|
| public XGenericEventCookie. Sets the specified value to the | |
| serial | back to summary |
|---|---|
public long serial()
| |
| serial | back to summary |
|---|---|
| public XGenericEventCookie. Sets the specified value to the | |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XGenericEventCookie. Sets the specified value to the | |