public class XGraphicsExposeEvent
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 fromcount – if non-zero, at least this many moremajor_code – core is CopyArea or CopyPlaneminor_code – not defined in the core
struct XGraphicsExposeEvent {
int type;
unsigned long serial;
Bool send_event;
Display * display;
Drawable drawable;
int x;
int y;
int width;
int height;
int count;
int major_code;
int minor_code;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XGraphicsExposeEvent.Buffer
An array of
XGraphicsExposeEvent 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 |
DRAWABLE
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
MAJOR_CODE
The struct member offsets.
|
static int |
MINOR_CODE
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 |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
XGraphicsExposeEvent(java.nio.ByteBuffer container)
Creates a
XGraphicsExposeEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XGraphicsExposeEvent |
calloc()
Returns a new
XGraphicsExposeEvent instance allocated with memCalloc. |
static XGraphicsExposeEvent.Buffer |
calloc(int capacity)
Returns a new
XGraphicsExposeEvent.Buffer instance allocated with memCalloc. |
static XGraphicsExposeEvent |
callocStack()
Returns a new
XGraphicsExposeEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XGraphicsExposeEvent.Buffer |
callocStack(int capacity)
Returns a new
XGraphicsExposeEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XGraphicsExposeEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XGraphicsExposeEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XGraphicsExposeEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XGraphicsExposeEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
count()
Returns the value of the
count field. |
XGraphicsExposeEvent |
count(int value)
Sets the specified value to the
count field. |
static XGraphicsExposeEvent |
create()
Returns a new
XGraphicsExposeEvent instance allocated with BufferUtils. |
static XGraphicsExposeEvent.Buffer |
create(int capacity)
Returns a new
XGraphicsExposeEvent.Buffer instance allocated with BufferUtils. |
static XGraphicsExposeEvent |
create(long address)
Returns a new
XGraphicsExposeEvent instance for the specified memory address. |
static XGraphicsExposeEvent.Buffer |
create(long address,
int capacity)
Create a
XGraphicsExposeEvent.Buffer instance at the specified memory. |
static XGraphicsExposeEvent |
createSafe(long address)
|
static XGraphicsExposeEvent.Buffer |
createSafe(long address,
int capacity)
|
long |
display()
Returns the value of the
display field. |
XGraphicsExposeEvent |
display(long value)
Sets the specified value to the
display field. |
long |
drawable()
Returns the value of the
drawable field. |
XGraphicsExposeEvent |
drawable(long value)
Sets the specified value to the
drawable field. |
int |
height()
Returns the value of the
height field. |
XGraphicsExposeEvent |
height(int value)
Sets the specified value to the
height field. |
int |
major_code()
Returns the value of the
major_code field. |
XGraphicsExposeEvent |
major_code(int value)
Sets the specified value to the
major_code field. |
static XGraphicsExposeEvent |
malloc()
Returns a new
XGraphicsExposeEvent instance allocated with memAlloc. |
static XGraphicsExposeEvent.Buffer |
malloc(int capacity)
Returns a new
XGraphicsExposeEvent.Buffer instance allocated with memAlloc. |
static XGraphicsExposeEvent |
mallocStack()
Returns a new
XGraphicsExposeEvent instance allocated on the thread-local MemoryStack. |
static XGraphicsExposeEvent.Buffer |
mallocStack(int capacity)
Returns a new
XGraphicsExposeEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XGraphicsExposeEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XGraphicsExposeEvent.Buffer instance allocated on the specified MemoryStack. |
static XGraphicsExposeEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XGraphicsExposeEvent instance allocated on the specified MemoryStack. |
int |
minor_code()
Returns the value of the
minor_code field. |
XGraphicsExposeEvent |
minor_code(int value)
Sets the specified value to the
minor_code field. |
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 long |
ndrawable(long struct)
Unsafe version of
drawable(). |
static void |
ndrawable(long struct,
long value)
Unsafe version of
drawable. |
static int |
nheight(long struct)
Unsafe version of
height(). |
static void |
nheight(long struct,
int value)
Unsafe version of
height. |
static int |
nmajor_code(long struct)
Unsafe version of
major_code(). |
static void |
nmajor_code(long struct,
int value)
Unsafe version of
major_code. |
static int |
nminor_code(long struct)
Unsafe version of
minor_code(). |
static void |
nminor_code(long struct,
int value)
Unsafe version of
minor_code. |
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 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. |
XGraphicsExposeEvent |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XGraphicsExposeEvent |
serial(long value)
Sets the specified value to the
serial field. |
XGraphicsExposeEvent |
set(int type,
long serial,
boolean send_event,
long display,
long drawable,
int x,
int y,
int width,
int height,
int count,
int major_code,
int minor_code)
Initializes this struct with the specified values.
|
XGraphicsExposeEvent |
set(XGraphicsExposeEvent src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
XGraphicsExposeEvent |
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. |
XGraphicsExposeEvent |
width(int value)
Sets the specified value to the
width field. |
int |
x()
Returns the value of the
x field. |
XGraphicsExposeEvent |
x(int value)
Sets the specified value to the
x field. |
int |
y()
Returns the value of the
y field. |
XGraphicsExposeEvent |
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 DRAWABLE
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 static final int MAJOR_CODE
public static final int MINOR_CODE
public XGraphicsExposeEvent(java.nio.ByteBuffer container)
XGraphicsExposeEvent 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 drawable()
drawable 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 int major_code()
major_code field.public int minor_code()
minor_code field.public XGraphicsExposeEvent type(int value)
type field.public XGraphicsExposeEvent serial(long value)
serial field.public XGraphicsExposeEvent send_event(boolean value)
send_event field.public XGraphicsExposeEvent display(long value)
display field.public XGraphicsExposeEvent drawable(long value)
drawable field.public XGraphicsExposeEvent x(int value)
x field.public XGraphicsExposeEvent y(int value)
y field.public XGraphicsExposeEvent width(int value)
width field.public XGraphicsExposeEvent height(int value)
height field.public XGraphicsExposeEvent count(int value)
count field.public XGraphicsExposeEvent major_code(int value)
major_code field.public XGraphicsExposeEvent minor_code(int value)
minor_code field.public XGraphicsExposeEvent set(int type, long serial, boolean send_event, long display, long drawable, int x, int y, int width, int height, int count, int major_code, int minor_code)
public XGraphicsExposeEvent set(XGraphicsExposeEvent src)
src - the source structpublic static XGraphicsExposeEvent malloc()
XGraphicsExposeEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XGraphicsExposeEvent calloc()
XGraphicsExposeEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XGraphicsExposeEvent create()
XGraphicsExposeEvent instance allocated with BufferUtils.public static XGraphicsExposeEvent create(long address)
XGraphicsExposeEvent instance for the specified memory address.@Nullable public static XGraphicsExposeEvent createSafe(long address)
public static XGraphicsExposeEvent.Buffer malloc(int capacity)
XGraphicsExposeEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XGraphicsExposeEvent.Buffer calloc(int capacity)
XGraphicsExposeEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XGraphicsExposeEvent.Buffer create(int capacity)
XGraphicsExposeEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XGraphicsExposeEvent.Buffer create(long address, int capacity)
XGraphicsExposeEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XGraphicsExposeEvent.Buffer createSafe(long address, int capacity)
public static XGraphicsExposeEvent mallocStack()
XGraphicsExposeEvent instance allocated on the thread-local MemoryStack.public static XGraphicsExposeEvent callocStack()
XGraphicsExposeEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XGraphicsExposeEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XGraphicsExposeEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XGraphicsExposeEvent callocStack(org.lwjgl.system.MemoryStack stack)
XGraphicsExposeEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XGraphicsExposeEvent.Buffer mallocStack(int capacity)
XGraphicsExposeEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XGraphicsExposeEvent.Buffer callocStack(int capacity)
XGraphicsExposeEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XGraphicsExposeEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XGraphicsExposeEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XGraphicsExposeEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XGraphicsExposeEvent.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 ndrawable(long struct)
drawable().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 int nmajor_code(long struct)
major_code().public static int nminor_code(long struct)
minor_code().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 ndrawable(long struct,
long value)
drawable.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 nmajor_code(long struct,
int value)
major_code.public static void nminor_code(long struct,
int value)
minor_code.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.