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