public class XExposeEvent
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 tocount – if non-zero, at least this many more
struct XExposeEvent {
int type;
unsigned long serial;
Bool send_event;
Display * display;
Window window;
int x;
int y;
int width;
int height;
int count;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XExposeEvent.Buffer
An array of
XExposeEvent structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COUNT
The struct member offsets.
|
static int |
DISPLAY
The struct member offsets.
|
static int |
HEIGHT
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 |
TYPE
The struct member offsets.
|
static int |
WIDTH
The struct member offsets.
|
static int |
WINDOW
The struct member offsets.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
XExposeEvent(java.nio.ByteBuffer container)
Creates a
XExposeEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XExposeEvent |
calloc()
Returns a new
XExposeEvent instance allocated with memCalloc. |
static XExposeEvent.Buffer |
calloc(int capacity)
Returns a new
XExposeEvent.Buffer instance allocated with memCalloc. |
static XExposeEvent |
callocStack()
Returns a new
XExposeEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XExposeEvent.Buffer |
callocStack(int capacity)
Returns a new
XExposeEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XExposeEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XExposeEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XExposeEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XExposeEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
count()
Returns the value of the
count field. |
XExposeEvent |
count(int value)
Sets the specified value to the
count field. |
static XExposeEvent |
create()
Returns a new
XExposeEvent instance allocated with BufferUtils. |
static XExposeEvent.Buffer |
create(int capacity)
Returns a new
XExposeEvent.Buffer instance allocated with BufferUtils. |
static XExposeEvent |
create(long address)
Returns a new
XExposeEvent instance for the specified memory address. |
static XExposeEvent.Buffer |
create(long address,
int capacity)
Create a
XExposeEvent.Buffer instance at the specified memory. |
static XExposeEvent |
createSafe(long address)
|
static XExposeEvent.Buffer |
createSafe(long address,
int capacity)
|
long |
display()
Returns the value of the
display field. |
XExposeEvent |
display(long value)
Sets the specified value to the
display field. |
int |
height()
Returns the value of the
height field. |
XExposeEvent |
height(int value)
Sets the specified value to the
height field. |
static XExposeEvent |
malloc()
Returns a new
XExposeEvent instance allocated with memAlloc. |
static XExposeEvent.Buffer |
malloc(int capacity)
Returns a new
XExposeEvent.Buffer instance allocated with memAlloc. |
static XExposeEvent |
mallocStack()
Returns a new
XExposeEvent instance allocated on the thread-local MemoryStack. |
static XExposeEvent.Buffer |
mallocStack(int capacity)
Returns a new
XExposeEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XExposeEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XExposeEvent.Buffer instance allocated on the specified MemoryStack. |
static XExposeEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XExposeEvent instance allocated on the specified MemoryStack. |
static int |
ncount(long struct)
Unsafe version of
count(). |
static void |
ncount(long struct,
int value)
Unsafe version of
count. |
static long |
ndisplay(long struct)
Unsafe version of
display(). |
static void |
ndisplay(long struct,
long value)
Unsafe version of
display. |
static int |
nheight(long struct)
Unsafe version of
height(). |
static void |
nheight(long struct,
int value)
Unsafe version of
height. |
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 |
ntype(long struct)
Unsafe version of
type(). |
static void |
ntype(long struct,
int value)
Unsafe version of
type. |
static int |
nwidth(long struct)
Unsafe version of
width(). |
static void |
nwidth(long struct,
int value)
Unsafe version of
width. |
static long |
nwindow(long struct)
Unsafe version of
window(). |
static void |
nwindow(long struct,
long value)
Unsafe version of
window. |
static int |
nx(long struct)
Unsafe version of
x(). |
static void |
nx(long struct,
int value)
Unsafe version of
x. |
static int |
ny(long struct)
Unsafe version of
y(). |
static void |
ny(long struct,
int value)
Unsafe version of
y. |
boolean |
send_event()
Returns the value of the
send_event field. |
XExposeEvent |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XExposeEvent |
serial(long value)
Sets the specified value to the
serial field. |
XExposeEvent |
set(int type,
long serial,
boolean send_event,
long display,
long window,
int x,
int y,
int width,
int height,
int count)
Initializes this struct with the specified values.
|
XExposeEvent |
set(XExposeEvent src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
XExposeEvent |
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. |
int |
width()
Returns the value of the
width field. |
XExposeEvent |
width(int value)
Sets the specified value to the
width field. |
long |
window()
Returns the value of the
window field. |
XExposeEvent |
window(long value)
Sets the specified value to the
window field. |
int |
x()
Returns the value of the
x field. |
XExposeEvent |
x(int value)
Sets the specified value to the
x field. |
int |
y()
Returns the value of the
y field. |
XExposeEvent |
y(int value)
Sets the specified value to the
y 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 X
public static final int Y
public static final int WIDTH
public static final int HEIGHT
public static final int COUNT
public XExposeEvent(java.nio.ByteBuffer container)
XExposeEvent 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 int x()
x field.public int y()
y field.public int width()
width field.public int height()
height field.public int count()
count field.public XExposeEvent type(int value)
type field.public XExposeEvent serial(long value)
serial field.public XExposeEvent send_event(boolean value)
send_event field.public XExposeEvent display(long value)
display field.public XExposeEvent window(long value)
window field.public XExposeEvent x(int value)
x field.public XExposeEvent y(int value)
y field.public XExposeEvent width(int value)
width field.public XExposeEvent height(int value)
height field.public XExposeEvent count(int value)
count field.public XExposeEvent set(int type, long serial, boolean send_event, long display, long window, int x, int y, int width, int height, int count)
public XExposeEvent set(XExposeEvent src)
src - the source structpublic static XExposeEvent malloc()
XExposeEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XExposeEvent calloc()
XExposeEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XExposeEvent create()
XExposeEvent instance allocated with BufferUtils.public static XExposeEvent create(long address)
XExposeEvent instance for the specified memory address.@Nullable public static XExposeEvent createSafe(long address)
public static XExposeEvent.Buffer malloc(int capacity)
XExposeEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XExposeEvent.Buffer calloc(int capacity)
XExposeEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XExposeEvent.Buffer create(int capacity)
XExposeEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XExposeEvent.Buffer create(long address, int capacity)
XExposeEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XExposeEvent.Buffer createSafe(long address, int capacity)
public static XExposeEvent mallocStack()
XExposeEvent instance allocated on the thread-local MemoryStack.public static XExposeEvent callocStack()
XExposeEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XExposeEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XExposeEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XExposeEvent callocStack(org.lwjgl.system.MemoryStack stack)
XExposeEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XExposeEvent.Buffer mallocStack(int capacity)
XExposeEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XExposeEvent.Buffer callocStack(int capacity)
XExposeEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XExposeEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XExposeEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XExposeEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XExposeEvent.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 int nx(long struct)
x().public static int ny(long struct)
y().public static int nwidth(long struct)
width().public static int nheight(long struct)
height().public static int ncount(long struct)
count().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 nx(long struct,
int value)
x.public static void ny(long struct,
int value)
y.public static void nwidth(long struct,
int value)
width.public static void nheight(long struct,
int value)
height.public static void ncount(long struct,
int value)
count.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.