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