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

public Class XGraphicsExposeEvent

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

Layout


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;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
COUNT

The struct member offsets.

public static final int
DISPLAY

The struct member offsets.

public static final int
DRAWABLE

The struct member offsets.

public static final int
HEIGHT

The struct member offsets.

public static final int
MAJOR_CODE

The struct member offsets.

public static final int
MINOR_CODE

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
TYPE

The struct member offsets.

public static final int
WIDTH

The struct member offsets.

public static final int
X

The struct member offsets.

public static final int
Y

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
XGraphicsExposeEvent(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static XGraphicsExposeEvent
calloc()

Returns a new XGraphicsExposeEvent instance allocated with memCalloc.

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

Returns a new XGraphicsExposeEvent.Buffer instance allocated with memCalloc.

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

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

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

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

public static XGraphicsExposeEvent
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public int
count()

if non-zero, at least this many more

public XGraphicsExposeEvent
count(int value)

Sets the specified value to the count field.

protected XGraphicsExposeEvent
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 XGraphicsExposeEvent
create()

Returns a new XGraphicsExposeEvent instance allocated with BufferUtils.

public static XGraphicsExposeEvent
create(long address)

Returns a new XGraphicsExposeEvent instance for the specified memory address.

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

Returns a new XGraphicsExposeEvent.Buffer instance allocated with BufferUtils.

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

Create a XGraphicsExposeEvent.Buffer instance at the specified memory.

public static XGraphicsExposeEvent
createSafe(long address)

Like create, but returns null if address is NULL.

public static XGraphicsExposeEvent.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 XGraphicsExposeEvent
display(long value)

Sets the specified value to the display field.

public long

Returns:

the value of the drawable field.
drawable
()

public XGraphicsExposeEvent
drawable(long value)

Sets the specified value to the drawable field.

public int

Returns:

the value of the height field.
height
()

public XGraphicsExposeEvent
height(int value)

Sets the specified value to the height field.

public int
major_code()

core is CopyArea or CopyPlane

public XGraphicsExposeEvent
major_code(int value)

Sets the specified value to the major_code field.

public static XGraphicsExposeEvent
malloc()

Returns a new XGraphicsExposeEvent instance allocated with memAlloc.

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

Returns a new XGraphicsExposeEvent.Buffer instance allocated with memAlloc.

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

Returns a new XGraphicsExposeEvent instance allocated on the specified MemoryStack.

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

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

public static XGraphicsExposeEvent
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public int
minor_code()

not defined in the core

public XGraphicsExposeEvent
minor_code(int value)

Sets the specified value to the minor_code field.

public static int
ncount(long struct)

Unsafe version of count.

public static void
ncount(long struct, int value)

Unsafe version of count.

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
ndrawable(long struct)

Unsafe version of drawable.

public static void
ndrawable(long struct, long value)

Unsafe version of drawable.

public static int
nheight(long struct)

Unsafe version of height.

public static void
nheight(long struct, int value)

Unsafe version of height.

public static int
nmajor_code(long struct)

Unsafe version of major_code.

public static void
nmajor_code(long struct, int value)

Unsafe version of major_code.

public static int
nminor_code(long struct)

Unsafe version of minor_code.

public static void
nminor_code(long struct, int value)

Unsafe version of minor_code.

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
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public static int
nwidth(long struct)

Unsafe version of width.

public static void
nwidth(long struct, int value)

Unsafe version of width.

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
ny(long struct)

Unsafe version of y.

public static void
ny(long struct, int value)

Unsafe version of y.

public boolean
send_event()

true if this came from an X11#XSendEvent request

public XGraphicsExposeEvent
send_event(boolean value)

Sets the specified value to the send_event field.

public long
serial()

# of last request processed by server

public XGraphicsExposeEvent
serial(long value)

Sets the specified value to the serial 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)

Initializes this struct with the specified values.

public XGraphicsExposeEvent

Returns:

this struct
set
(XGraphicsExposeEvent
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

Returns:

the value of the type field.
type
()

public XGraphicsExposeEvent
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 int

Returns:

the value of the width field.
width
()

public XGraphicsExposeEvent
width(int value)

Sets the specified value to the width field.

public int

Returns:

the value of the x field.
x
()

public XGraphicsExposeEvent
x(int value)

Sets the specified value to the x field.

public int

Returns:

the value of the y field.
y
()

public XGraphicsExposeEvent
y(int value)

Sets the specified value to the y field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate