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