public class XPropertyEvent
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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 tostate – one of:X11.PropertyNewValue | X11.PropertyDelete |
struct XPropertyEvent {
int type;
unsigned long serial;
Bool send_event;
Display * display;
Window window;
Atom atom;
Time time;
int state;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XPropertyEvent.Buffer
An array of
XPropertyEvent structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ATOM
The struct member offsets.
|
static int |
DISPLAY
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 |
STATE
The struct member offsets.
|
static int |
TIME
The struct member offsets.
|
static int |
TYPE
The struct member offsets.
|
static int |
WINDOW
The struct member offsets.
|
| Constructor and Description |
|---|
XPropertyEvent(java.nio.ByteBuffer container)
Creates a
XPropertyEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
atom()
Returns the value of the
atom field. |
XPropertyEvent |
atom(long value)
Sets the specified value to the
atom field. |
static XPropertyEvent |
calloc()
Returns a new
XPropertyEvent instance allocated with memCalloc. |
static XPropertyEvent.Buffer |
calloc(int capacity)
Returns a new
XPropertyEvent.Buffer instance allocated with memCalloc. |
static XPropertyEvent |
callocStack()
Returns a new
XPropertyEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XPropertyEvent.Buffer |
callocStack(int capacity)
Returns a new
XPropertyEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XPropertyEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XPropertyEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XPropertyEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XPropertyEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XPropertyEvent |
create()
Returns a new
XPropertyEvent instance allocated with BufferUtils. |
static XPropertyEvent.Buffer |
create(int capacity)
Returns a new
XPropertyEvent.Buffer instance allocated with BufferUtils. |
static XPropertyEvent |
create(long address)
Returns a new
XPropertyEvent instance for the specified memory address. |
static XPropertyEvent.Buffer |
create(long address,
int capacity)
Create a
XPropertyEvent.Buffer instance at the specified memory. |
static XPropertyEvent |
createSafe(long address)
|
static XPropertyEvent.Buffer |
createSafe(long address,
int capacity)
|
long |
display()
Returns the value of the
display field. |
XPropertyEvent |
display(long value)
Sets the specified value to the
display field. |
static XPropertyEvent |
malloc()
Returns a new
XPropertyEvent instance allocated with memAlloc. |
static XPropertyEvent.Buffer |
malloc(int capacity)
Returns a new
XPropertyEvent.Buffer instance allocated with memAlloc. |
static XPropertyEvent |
mallocStack()
Returns a new
XPropertyEvent instance allocated on the thread-local MemoryStack. |
static XPropertyEvent.Buffer |
mallocStack(int capacity)
Returns a new
XPropertyEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XPropertyEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XPropertyEvent.Buffer instance allocated on the specified MemoryStack. |
static XPropertyEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XPropertyEvent instance allocated on the specified MemoryStack. |
static long |
natom(long struct)
Unsafe version of
atom(). |
static void |
natom(long struct,
long value)
Unsafe version of
atom. |
static long |
ndisplay(long struct)
Unsafe version of
display(). |
static void |
ndisplay(long struct,
long value)
Unsafe version of
display. |
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 |
nstate(long struct)
Unsafe version of
state(). |
static void |
nstate(long struct,
int value)
Unsafe version of
state. |
static long |
ntime(long struct)
Unsafe version of
time(). |
static void |
ntime(long struct,
long value)
Unsafe version of
time. |
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. |
XPropertyEvent |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XPropertyEvent |
serial(long value)
Sets the specified value to the
serial field. |
XPropertyEvent |
set(int type,
long serial,
boolean send_event,
long display,
long window,
long atom,
long time,
int state)
Initializes this struct with the specified values.
|
XPropertyEvent |
set(XPropertyEvent src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
state()
Returns the value of the
state field. |
XPropertyEvent |
state(int value)
Sets the specified value to the
state field. |
long |
time()
Returns the value of the
time field. |
XPropertyEvent |
time(long value)
Sets the specified value to the
time field. |
int |
type()
Returns the value of the
type field. |
XPropertyEvent |
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. |
XPropertyEvent |
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 ATOM
public static final int TIME
public static final int STATE
public XPropertyEvent(java.nio.ByteBuffer container)
XPropertyEvent 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 atom()
atom field.public long time()
time field.public int state()
state field.public XPropertyEvent type(int value)
type field.public XPropertyEvent serial(long value)
serial field.public XPropertyEvent send_event(boolean value)
send_event field.public XPropertyEvent display(long value)
display field.public XPropertyEvent window(long value)
window field.public XPropertyEvent atom(long value)
atom field.public XPropertyEvent time(long value)
time field.public XPropertyEvent state(int value)
state field.public XPropertyEvent set(int type, long serial, boolean send_event, long display, long window, long atom, long time, int state)
public XPropertyEvent set(XPropertyEvent src)
src - the source structpublic static XPropertyEvent malloc()
XPropertyEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XPropertyEvent calloc()
XPropertyEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XPropertyEvent create()
XPropertyEvent instance allocated with BufferUtils.public static XPropertyEvent create(long address)
XPropertyEvent instance for the specified memory address.@Nullable public static XPropertyEvent createSafe(long address)
public static XPropertyEvent.Buffer malloc(int capacity)
XPropertyEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XPropertyEvent.Buffer calloc(int capacity)
XPropertyEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XPropertyEvent.Buffer create(int capacity)
XPropertyEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XPropertyEvent.Buffer create(long address, int capacity)
XPropertyEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XPropertyEvent.Buffer createSafe(long address, int capacity)
public static XPropertyEvent mallocStack()
XPropertyEvent instance allocated on the thread-local MemoryStack.public static XPropertyEvent callocStack()
XPropertyEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XPropertyEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XPropertyEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XPropertyEvent callocStack(org.lwjgl.system.MemoryStack stack)
XPropertyEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XPropertyEvent.Buffer mallocStack(int capacity)
XPropertyEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XPropertyEvent.Buffer callocStack(int capacity)
XPropertyEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XPropertyEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XPropertyEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XPropertyEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XPropertyEvent.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 natom(long struct)
atom().public static long ntime(long struct)
time().public static int nstate(long struct)
state().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 natom(long struct,
long value)
atom.public static void ntime(long struct,
long value)
time.public static void nstate(long struct,
int value)
state.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.