public class XFocusChangeEvent
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
type – one of:X11.FocusIn | X11.FocusOut |
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 tomode – one of:X11.NotifyNormal | X11.NotifyWhileGrabbed | X11.NotifyGrab | X11.NotifyUngrab |
detail – one of:X11.NotifyAncestor | X11.NotifyVirtual | X11.NotifyInferior | X11.NotifyNonlinear | X11.NotifyNonlinearVirtual |
X11.NotifyPointer | X11.NotifyPointerRoot | X11.NotifyDetailNone |
struct XFocusChangeEvent {
int type;
unsigned long serial;
Bool send_event;
Display * display;
Window window;
int mode;
int detail;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XFocusChangeEvent.Buffer
An array of
XFocusChangeEvent structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DETAIL
The struct member offsets.
|
static int |
DISPLAY
The struct member offsets.
|
static int |
MODE
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 |
WINDOW
The struct member offsets.
|
| Constructor and Description |
|---|
XFocusChangeEvent(java.nio.ByteBuffer container)
Creates a
XFocusChangeEvent instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XFocusChangeEvent |
calloc()
Returns a new
XFocusChangeEvent instance allocated with memCalloc. |
static XFocusChangeEvent.Buffer |
calloc(int capacity)
Returns a new
XFocusChangeEvent.Buffer instance allocated with memCalloc. |
static XFocusChangeEvent |
callocStack()
Returns a new
XFocusChangeEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XFocusChangeEvent.Buffer |
callocStack(int capacity)
Returns a new
XFocusChangeEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XFocusChangeEvent.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XFocusChangeEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XFocusChangeEvent |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XFocusChangeEvent instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XFocusChangeEvent |
create()
Returns a new
XFocusChangeEvent instance allocated with BufferUtils. |
static XFocusChangeEvent.Buffer |
create(int capacity)
Returns a new
XFocusChangeEvent.Buffer instance allocated with BufferUtils. |
static XFocusChangeEvent |
create(long address)
Returns a new
XFocusChangeEvent instance for the specified memory address. |
static XFocusChangeEvent.Buffer |
create(long address,
int capacity)
Create a
XFocusChangeEvent.Buffer instance at the specified memory. |
static XFocusChangeEvent |
createSafe(long address)
|
static XFocusChangeEvent.Buffer |
createSafe(long address,
int capacity)
|
int |
detail()
Returns the value of the
detail field. |
XFocusChangeEvent |
detail(int value)
Sets the specified value to the
detail field. |
long |
display()
Returns the value of the
display field. |
XFocusChangeEvent |
display(long value)
Sets the specified value to the
display field. |
static XFocusChangeEvent |
malloc()
Returns a new
XFocusChangeEvent instance allocated with memAlloc. |
static XFocusChangeEvent.Buffer |
malloc(int capacity)
Returns a new
XFocusChangeEvent.Buffer instance allocated with memAlloc. |
static XFocusChangeEvent |
mallocStack()
Returns a new
XFocusChangeEvent instance allocated on the thread-local MemoryStack. |
static XFocusChangeEvent.Buffer |
mallocStack(int capacity)
Returns a new
XFocusChangeEvent.Buffer instance allocated on the thread-local MemoryStack. |
static XFocusChangeEvent.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XFocusChangeEvent.Buffer instance allocated on the specified MemoryStack. |
static XFocusChangeEvent |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XFocusChangeEvent instance allocated on the specified MemoryStack. |
int |
mode()
Returns the value of the
mode field. |
XFocusChangeEvent |
mode(int value)
Sets the specified value to the
mode field. |
static int |
ndetail(long struct)
Unsafe version of
detail(). |
static void |
ndetail(long struct,
int value)
Unsafe version of
detail. |
static long |
ndisplay(long struct)
Unsafe version of
display(). |
static void |
ndisplay(long struct,
long value)
Unsafe version of
display. |
static int |
nmode(long struct)
Unsafe version of
mode(). |
static void |
nmode(long struct,
int value)
Unsafe version of
mode. |
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 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. |
XFocusChangeEvent |
send_event(boolean value)
Sets the specified value to the
send_event field. |
long |
serial()
Returns the value of the
serial field. |
XFocusChangeEvent |
serial(long value)
Sets the specified value to the
serial field. |
XFocusChangeEvent |
set(int type,
long serial,
boolean send_event,
long display,
long window,
int mode,
int detail)
Initializes this struct with the specified values.
|
XFocusChangeEvent |
set(XFocusChangeEvent src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
XFocusChangeEvent |
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. |
XFocusChangeEvent |
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 MODE
public static final int DETAIL
public XFocusChangeEvent(java.nio.ByteBuffer container)
XFocusChangeEvent 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 mode()
mode field.public int detail()
detail field.public XFocusChangeEvent type(int value)
type field.public XFocusChangeEvent serial(long value)
serial field.public XFocusChangeEvent send_event(boolean value)
send_event field.public XFocusChangeEvent display(long value)
display field.public XFocusChangeEvent window(long value)
window field.public XFocusChangeEvent mode(int value)
mode field.public XFocusChangeEvent detail(int value)
detail field.public XFocusChangeEvent set(int type, long serial, boolean send_event, long display, long window, int mode, int detail)
public XFocusChangeEvent set(XFocusChangeEvent src)
src - the source structpublic static XFocusChangeEvent malloc()
XFocusChangeEvent instance allocated with memAlloc. The instance must be explicitly freed.public static XFocusChangeEvent calloc()
XFocusChangeEvent instance allocated with memCalloc. The instance must be explicitly freed.public static XFocusChangeEvent create()
XFocusChangeEvent instance allocated with BufferUtils.public static XFocusChangeEvent create(long address)
XFocusChangeEvent instance for the specified memory address.@Nullable public static XFocusChangeEvent createSafe(long address)
public static XFocusChangeEvent.Buffer malloc(int capacity)
XFocusChangeEvent.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XFocusChangeEvent.Buffer calloc(int capacity)
XFocusChangeEvent.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XFocusChangeEvent.Buffer create(int capacity)
XFocusChangeEvent.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XFocusChangeEvent.Buffer create(long address, int capacity)
XFocusChangeEvent.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XFocusChangeEvent.Buffer createSafe(long address, int capacity)
public static XFocusChangeEvent mallocStack()
XFocusChangeEvent instance allocated on the thread-local MemoryStack.public static XFocusChangeEvent callocStack()
XFocusChangeEvent instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XFocusChangeEvent mallocStack(org.lwjgl.system.MemoryStack stack)
XFocusChangeEvent instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XFocusChangeEvent callocStack(org.lwjgl.system.MemoryStack stack)
XFocusChangeEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XFocusChangeEvent.Buffer mallocStack(int capacity)
XFocusChangeEvent.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XFocusChangeEvent.Buffer callocStack(int capacity)
XFocusChangeEvent.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XFocusChangeEvent.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XFocusChangeEvent.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XFocusChangeEvent.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XFocusChangeEvent.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 nmode(long struct)
mode().public static int ndetail(long struct)
detail().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 nmode(long struct,
int value)
mode.public static void ndetail(long struct,
int value)
detail.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.