Top Description Inners Fields Constructors Methods
org.lwjgl.system.linux

public Class XButtonEvent

extends Struct<XButtonEvent>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Button event.

Layout


struct XButtonEvent {
    int type;
    unsigned long serial;
    Bool send_event;
    Display * display;
    Window window;
    Window root;
    Window subwindow;
    Time time;
    int x;
    int y;
    int x_root;
    int y_root;
    unsigned int state;
    unsigned int button;
    Bool same_screen;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
XButtonEvent.Buffer

An array of XButtonEvent structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BUTTON

The struct member offsets.

public static final int
DISPLAY

The struct member offsets.

public static final int
ROOT

The struct member offsets.

public static final int
SAME_SCREEN

The struct member offsets.

public static final int
SEND_EVENT

The struct member offsets.

public static final int
SERIAL

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STATE

The struct member offsets.

public static final int
SUBWINDOW

The struct member offsets.

public static final int
TIME

The struct member offsets.

public static final int
TYPE

The struct member offsets.

public static final int
WINDOW

The struct member offsets.

public static final int
X

The struct member offsets.

public static final int
X_ROOT

The struct member offsets.

public static final int
Y

The struct member offsets.

public static final int
Y_ROOT

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
XButtonEvent(long address, ByteBuffer container)

public
XButtonEvent(ByteBuffer container)

Creates a XButtonEvent instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
button()

detail

public XButtonEvent
button(int value)

Sets the specified value to the button field.

public static XButtonEvent
calloc()

Returns a new XButtonEvent instance allocated with memCalloc.

public static XButtonEvent.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new XButtonEvent.Buffer instance allocated with memCalloc.

public static XButtonEvent
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XButtonEvent instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XButtonEvent.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XButtonEvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XButtonEvent
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static XButtonEvent
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static XButtonEvent.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static XButtonEvent.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected XButtonEvent
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static XButtonEvent
create()

Returns a new XButtonEvent instance allocated with BufferUtils.

public static XButtonEvent
create(long address)

Returns a new XButtonEvent instance for the specified memory address.

public static XButtonEvent.Buffer
create(int
the buffer capacity
capacity
)

Returns a new XButtonEvent.Buffer instance allocated with BufferUtils.

public static XButtonEvent.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a XButtonEvent.Buffer instance at the specified memory.

public static XButtonEvent
createSafe(long address)

Like create, but returns null if address is NULL.

public static XButtonEvent.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long
display()

Display the event was read from

public XButtonEvent
display(long value)

Sets the specified value to the display field.

public static XButtonEvent
malloc()

Returns a new XButtonEvent instance allocated with memAlloc.

public static XButtonEvent.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new XButtonEvent.Buffer instance allocated with memAlloc.

public static XButtonEvent
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XButtonEvent instance allocated on the specified MemoryStack.

public static XButtonEvent.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XButtonEvent.Buffer instance allocated on the specified MemoryStack.

public static XButtonEvent
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static XButtonEvent
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static XButtonEvent.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static XButtonEvent.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nbutton(long struct)

Unsafe version of button.

public static void
nbutton(long struct, int value)

Unsafe version of button.

public static long
ndisplay(long struct)

Unsafe version of display.

public static void
ndisplay(long struct, long value)

Unsafe version of display.

public static long
nroot(long struct)

Unsafe version of root.

public static void
nroot(long struct, long value)

Unsafe version of root.

public static int
nsame_screen(long struct)

Unsafe version of same_screen.

public static void
nsame_screen(long struct, int value)

Unsafe version of same_screen.

public static int
nsend_event(long struct)

Unsafe version of send_event.

public static void
nsend_event(long struct, int value)

Unsafe version of send_event.

public static long
nserial(long struct)

Unsafe version of serial.

public static void
nserial(long struct, long value)

Unsafe version of serial.

public static int
nstate(long struct)

Unsafe version of state.

public static void
nstate(long struct, int value)

Unsafe version of state.

public static long
nsubwindow(long struct)

Unsafe version of subwindow.

public static void
nsubwindow(long struct, long value)

Unsafe version of subwindow.

public static long
ntime(long struct)

Unsafe version of time.

public static void
ntime(long struct, long value)

Unsafe version of time.

public static int
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public static long
nwindow(long struct)

Unsafe version of window.

public static void
nwindow(long struct, long value)

Unsafe version of window.

public static int
nx(long struct)

Unsafe version of x.

public static void
nx(long struct, int value)

Unsafe version of x.

public static int
nx_root(long struct)

Unsafe version of x_root.

public static void
nx_root(long struct, int value)

Unsafe version of x_root.

public static int
ny(long struct)

Unsafe version of y.

public static void
ny(long struct, int value)

Unsafe version of y.

public static int
ny_root(long struct)

Unsafe version of y_root.

public static void
ny_root(long struct, int value)

Unsafe version of y_root.

public long
root()

root window that the event occurred on

public XButtonEvent
root(long value)

Sets the specified value to the root field.

public boolean
same_screen()

same screen flag

public XButtonEvent
same_screen(boolean value)

Sets the specified value to the same_screen field.

public boolean
send_event()

true if this came from an X11#XSendEvent request

public XButtonEvent
send_event(boolean value)

Sets the specified value to the send_event field.

public long
serial()

# of last request processed by server

public XButtonEvent
serial(long value)

Sets the specified value to the serial field.

public XButtonEvent
set(int type, long serial, boolean send_event, long display, long window, long root, long subwindow, long time, int x, int y, int x_root, int y_root, int state, int button, boolean same_screen)

Initializes this struct with the specified values.

public XButtonEvent

Returns:

this struct
set
(XButtonEvent
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
state()

button mask

public XButtonEvent
state(int value)

Sets the specified value to the state field.

public long
subwindow()

child window

public XButtonEvent
subwindow(long value)

Sets the specified value to the subwindow field.

public long
time()

milliseconds

public XButtonEvent
time(long value)

Sets the specified value to the time field.

public int
type()

the event type.

public XButtonEvent
type(int value)

Sets the specified value to the type field.

public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public long
window()

window it reported relative to

public XButtonEvent
window(long value)

Sets the specified value to the window field.

public int
x()

pointer x coordinate in event window

public XButtonEvent
x(int value)

Sets the specified value to the x field.

public int
x_root()

x coordinate relative to root

public XButtonEvent
x_root(int value)

Sets the specified value to the x_root field.

public int
y()

pointer y coordinate in event window

public XButtonEvent
y(int value)

Sets the specified value to the y field.

public int
y_root()

y coordinate relative to root

public XButtonEvent
y_root(int value)

Sets the specified value to the y_root field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate