public class XSelectionRequestEvent
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 from
struct XSelectionRequestEvent {
int type;
unsigned long serial;
Bool send_event;
Display * display;
Window owner;
Window requestor;
Atom selection;
Atom target;
Atom property;
Time time;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XSelectionRequestEvent.Buffer
An array of
XSelectionRequestEvent structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DISPLAY
The struct member offsets.
|
static int |
OWNER
The struct member offsets.
|
static int |
PROPERTY
The struct member offsets.
|
static int |
REQUESTOR
The struct member offsets.
|
static int |
SELECTION
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 |
TARGET
The struct member offsets.
|
static int |
TIME
The struct member offsets.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
XSelectionRequestEvent(java.nio.ByteBuffer container)
Creates a
XSelectionRequestEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XSelectionRequestEvent |
calloc()
Returns a new
XSelectionRequestEvent instance allocated with memCalloc. |
static XSelectionRequestEvent.Buffer |
calloc(int capacity)
Returns a new
XSelectionRequestEvent.Buffer instance allocated with memCalloc. |
static XSelectionRequestEvent |
callocStack()
Returns a new
XSelectionRequestEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XSelectionRequestEvent.Buffer |
callocStack(int capacity)
Returns a new
XSelectionRequestEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XSelectionRequestEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XSelectionRequestEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XSelectionRequestEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XSelectionRequestEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XSelectionRequestEvent |
create()
Returns a new
XSelectionRequestEvent instance allocated with BufferUtils. |
static XSelectionRequestEvent.Buffer |
create(int capacity)
Returns a new
XSelectionRequestEvent.Buffer instance allocated with BufferUtils. |
static XSelectionRequestEvent |
create(long address)
Returns a new
XSelectionRequestEvent instance for the specified memory address. |
static XSelectionRequestEvent.Buffer |
create(long address,
int capacity)
Create a
XSelectionRequestEvent.Buffer instance at the specified memory. |
static XSelectionRequestEvent |
createSafe(long address)
|
static XSelectionRequestEvent.Buffer |
createSafe(long address,
int capacity)
|
long |
display()
Returns the value of the
display field. |
XSelectionRequestEvent |
display(long value)
Sets the specified value to the
display field. |
static XSelectionRequestEvent |
malloc()
Returns a new
XSelectionRequestEvent instance allocated with memAlloc. |
static XSelectionRequestEvent.Buffer |
malloc(int capacity)
Returns a new
XSelectionRequestEvent.Buffer instance allocated with memAlloc. |
static XSelectionRequestEvent |
mallocStack()
Returns a new
XSelectionRequestEvent instance allocated on the thread-local MemoryStack. |
static XSelectionRequestEvent.Buffer |
mallocStack(int capacity)
Returns a new
XSelectionRequestEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XSelectionRequestEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XSelectionRequestEvent.Buffer instance allocated on the specified MemoryStack. |
static XSelectionRequestEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XSelectionRequestEvent instance allocated on the specified MemoryStack. |
static long |
ndisplay(long struct)
Unsafe version of
display(). |
static void |
ndisplay(long struct,
long value)
Unsafe version of
display. |
static long |
nowner(long struct)
Unsafe version of
owner(). |
static void |
nowner(long struct,
long value)
Unsafe version of
owner. |
static long |
nproperty(long struct)
Unsafe version of
property(). |
static void |
nproperty(long struct,
long value)
Unsafe version of
property. |
static long |
nrequestor(long struct)
Unsafe version of
requestor(). |
static void |
nrequestor(long struct,
long value)
Unsafe version of
requestor. |
static long |
nselection(long struct)
Unsafe version of
selection(). |
static void |
nselection(long struct,
long value)
Unsafe version of
selection. |
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 long |
ntarget(long struct)
Unsafe version of
target(). |
static void |
ntarget(long struct,
long value)
Unsafe version of
target. |
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. |
long |
owner()
Returns the value of the
owner field. |
XSelectionRequestEvent |
owner(long value)
Sets the specified value to the
owner field. |
long |
property()
Returns the value of the
property field. |
XSelectionRequestEvent |
property(long value)
Sets the specified value to the
property field. |
long |
requestor()
Returns the value of the
requestor field. |
XSelectionRequestEvent |
requestor(long value)
Sets the specified value to the
requestor field. |
long |
selection()
Returns the value of the
selection field. |
XSelectionRequestEvent |
selection(long value)
Sets the specified value to the
selection field. |
boolean |
send_event()
Returns the value of the
send_event field. |
XSelectionRequestEvent |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XSelectionRequestEvent |
serial(long value)
Sets the specified value to the
serial field. |
XSelectionRequestEvent |
set(int type,
long serial,
boolean send_event,
long display,
long owner,
long requestor,
long selection,
long target,
long property,
long time)
Initializes this struct with the specified values.
|
XSelectionRequestEvent |
set(XSelectionRequestEvent src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
long |
target()
Returns the value of the
target field. |
XSelectionRequestEvent |
target(long value)
Sets the specified value to the
target field. |
long |
time()
Returns the value of the
time field. |
XSelectionRequestEvent |
time(long value)
Sets the specified value to the
time field. |
int |
type()
Returns the value of the
type field. |
XSelectionRequestEvent |
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. |
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 OWNER
public static final int REQUESTOR
public static final int SELECTION
public static final int TARGET
public static final int PROPERTY
public static final int TIME
public XSelectionRequestEvent(java.nio.ByteBuffer container)
XSelectionRequestEvent 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 owner()
owner field.public long requestor()
requestor field.public long selection()
selection field.public long target()
target field.public long property()
property field.public long time()
time field.public XSelectionRequestEvent type(int value)
type field.public XSelectionRequestEvent serial(long value)
serial field.public XSelectionRequestEvent send_event(boolean value)
send_event field.public XSelectionRequestEvent display(long value)
display field.public XSelectionRequestEvent owner(long value)
owner field.public XSelectionRequestEvent requestor(long value)
requestor field.public XSelectionRequestEvent selection(long value)
selection field.public XSelectionRequestEvent target(long value)
target field.public XSelectionRequestEvent property(long value)
property field.public XSelectionRequestEvent time(long value)
time field.public XSelectionRequestEvent set(int type, long serial, boolean send_event, long display, long owner, long requestor, long selection, long target, long property, long time)
public XSelectionRequestEvent set(XSelectionRequestEvent src)
src - the source structpublic static XSelectionRequestEvent malloc()
XSelectionRequestEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XSelectionRequestEvent calloc()
XSelectionRequestEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XSelectionRequestEvent create()
XSelectionRequestEvent instance allocated with BufferUtils.public static XSelectionRequestEvent create(long address)
XSelectionRequestEvent instance for the specified memory address.@Nullable public static XSelectionRequestEvent createSafe(long address)
public static XSelectionRequestEvent.Buffer malloc(int capacity)
XSelectionRequestEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XSelectionRequestEvent.Buffer calloc(int capacity)
XSelectionRequestEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XSelectionRequestEvent.Buffer create(int capacity)
XSelectionRequestEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XSelectionRequestEvent.Buffer create(long address, int capacity)
XSelectionRequestEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XSelectionRequestEvent.Buffer createSafe(long address, int capacity)
public static XSelectionRequestEvent mallocStack()
XSelectionRequestEvent instance allocated on the thread-local MemoryStack.public static XSelectionRequestEvent callocStack()
XSelectionRequestEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XSelectionRequestEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XSelectionRequestEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XSelectionRequestEvent callocStack(org.lwjgl.system.MemoryStack stack)
XSelectionRequestEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XSelectionRequestEvent.Buffer mallocStack(int capacity)
XSelectionRequestEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XSelectionRequestEvent.Buffer callocStack(int capacity)
XSelectionRequestEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XSelectionRequestEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XSelectionRequestEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XSelectionRequestEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XSelectionRequestEvent.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 nowner(long struct)
owner().public static long nrequestor(long struct)
requestor().public static long nselection(long struct)
selection().public static long ntarget(long struct)
target().public static long nproperty(long struct)
property().public static long ntime(long struct)
time().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 nowner(long struct,
long value)
owner.public static void nrequestor(long struct,
long value)
requestor.public static void nselection(long struct,
long value)
selection.public static void ntarget(long struct,
long value)
target.public static void nproperty(long struct,
long value)
property.public static void ntime(long struct,
long value)
time.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.