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