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

public Class XSetWindowAttributes

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

Data structure for setting window attributes.

Layout


struct XSetWindowAttributes {
    Pixmap background_pixmap;
    unsigned long background_pixel;
    Pixmap border_pixmap;
    unsigned long border_pixel;
    int bit_gravity;
    int win_gravity;
    int backing_store;
    unsigned long backing_planes;
    unsigned long backing_pixel;
    Bool save_under;
    long event_mask;
    long do_not_propagate_mask;
    Bool override_redirect;
    Colormap colormap;
    Cursor cursor;
}

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
BACKGROUND_PIXEL

The struct member offsets.

public static final int
BACKGROUND_PIXMAP

The struct member offsets.

public static final int
BACKING_PIXEL

The struct member offsets.

public static final int
BACKING_PLANES

The struct member offsets.

public static final int
BACKING_STORE

The struct member offsets.

public static final int
BIT_GRAVITY

The struct member offsets.

public static final int
BORDER_PIXEL

The struct member offsets.

public static final int
BORDER_PIXMAP

The struct member offsets.

public static final int
COLORMAP

The struct member offsets.

public static final int
CURSOR

The struct member offsets.

public static final int
DO_NOT_PROPAGATE_MASK

The struct member offsets.

public static final int
EVENT_MASK

The struct member offsets.

public static final int
OVERRIDE_REDIRECT

The struct member offsets.

public static final int
SAVE_UNDER

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
WIN_GRAVITY

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
XSetWindowAttributes(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the value of the background_pixel field.
background_pixel
()

public XSetWindowAttributes
background_pixel(long value)

Sets the specified value to the background_pixel field.

public long

Returns:

the value of the background_pixmap field.
background_pixmap
()

public XSetWindowAttributes
background_pixmap(long value)

Sets the specified value to the background_pixmap field.

public long

Returns:

the value of the backing_pixel field.
backing_pixel
()

public XSetWindowAttributes
backing_pixel(long value)

Sets the specified value to the backing_pixel field.

public long

Returns:

the value of the backing_planes field.
backing_planes
()

public XSetWindowAttributes
backing_planes(long value)

Sets the specified value to the backing_planes field.

public int

Returns:

the value of the backing_store field.
backing_store
()

public XSetWindowAttributes
backing_store(int value)

Sets the specified value to the backing_store field.

public int

Returns:

the value of the bit_gravity field.
bit_gravity
()

public XSetWindowAttributes
bit_gravity(int value)

Sets the specified value to the bit_gravity field.

public long

Returns:

the value of the border_pixel field.
border_pixel
()

public XSetWindowAttributes
border_pixel(long value)

Sets the specified value to the border_pixel field.

public long

Returns:

the value of the border_pixmap field.
border_pixmap
()

public XSetWindowAttributes
border_pixmap(long value)

Sets the specified value to the border_pixmap field.

public static XSetWindowAttributes
calloc()

Returns a new XSetWindowAttributes instance allocated with memCalloc.

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

Returns a new XSetWindowAttributes.Buffer instance allocated with memCalloc.

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

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

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

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

public static XSetWindowAttributes
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public long

Returns:

the value of the colormap field.
colormap
()

public XSetWindowAttributes
colormap(long value)

Sets the specified value to the colormap field.

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

Returns a new XSetWindowAttributes instance allocated with BufferUtils.

public static XSetWindowAttributes
create(long address)

Returns a new XSetWindowAttributes instance for the specified memory address.

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

Returns a new XSetWindowAttributes.Buffer instance allocated with BufferUtils.

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

Create a XSetWindowAttributes.Buffer instance at the specified memory.

public static XSetWindowAttributes
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public long

Returns:

the value of the cursor field.
cursor
()

public XSetWindowAttributes
cursor(long value)

Sets the specified value to the cursor field.

public long

Returns:

the value of the do_not_propagate_mask field.
do_not_propagate_mask
()

public XSetWindowAttributes
do_not_propagate_mask(long value)

Sets the specified value to the do_not_propagate_mask field.

public long

Returns:

the value of the event_mask field.
event_mask
()

public XSetWindowAttributes
event_mask(long value)

Sets the specified value to the event_mask field.

public static XSetWindowAttributes
malloc()

Returns a new XSetWindowAttributes instance allocated with memAlloc.

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

Returns a new XSetWindowAttributes.Buffer instance allocated with memAlloc.

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

Returns a new XSetWindowAttributes instance allocated on the specified MemoryStack.

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

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

public static XSetWindowAttributes
mallocStack()

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

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

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

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

Unsafe version of background_pixel.

public static void
nbackground_pixel(long struct, long value)

Unsafe version of background_pixel.

public static long
nbackground_pixmap(long struct)

Unsafe version of background_pixmap.

public static void
nbackground_pixmap(long struct, long value)

Unsafe version of background_pixmap.

public static long
nbacking_pixel(long struct)

Unsafe version of backing_pixel.

public static void
nbacking_pixel(long struct, long value)

Unsafe version of backing_pixel.

public static long
nbacking_planes(long struct)

Unsafe version of backing_planes.

public static void
nbacking_planes(long struct, long value)

Unsafe version of backing_planes.

public static int
nbacking_store(long struct)

Unsafe version of backing_store.

public static void
nbacking_store(long struct, int value)

Unsafe version of backing_store.

public static int
nbit_gravity(long struct)

Unsafe version of bit_gravity.

public static void
nbit_gravity(long struct, int value)

Unsafe version of bit_gravity.

public static long
nborder_pixel(long struct)

Unsafe version of border_pixel.

public static void
nborder_pixel(long struct, long value)

Unsafe version of border_pixel.

public static long
nborder_pixmap(long struct)

Unsafe version of border_pixmap.

public static void
nborder_pixmap(long struct, long value)

Unsafe version of border_pixmap.

public static long
ncolormap(long struct)

Unsafe version of colormap.

public static void
ncolormap(long struct, long value)

Unsafe version of colormap.

public static long
ncursor(long struct)

Unsafe version of cursor.

public static void
ncursor(long struct, long value)

Unsafe version of cursor.

public static long
ndo_not_propagate_mask(long struct)

Unsafe version of do_not_propagate_mask.

public static void
ndo_not_propagate_mask(long struct, long value)

Unsafe version of do_not_propagate_mask.

public static long
nevent_mask(long struct)

Unsafe version of event_mask.

public static void
nevent_mask(long struct, long value)

Unsafe version of event_mask.

public static int
noverride_redirect(long struct)

Unsafe version of override_redirect.

public static void
noverride_redirect(long struct, int value)

Unsafe version of override_redirect.

public static int
nsave_under(long struct)

Unsafe version of save_under.

public static void
nsave_under(long struct, int value)

Unsafe version of save_under.

public static int
nwin_gravity(long struct)

Unsafe version of win_gravity.

public static void
nwin_gravity(long struct, int value)

Unsafe version of win_gravity.

public boolean

Returns:

the value of the override_redirect field.
override_redirect
()

public XSetWindowAttributes
override_redirect(boolean value)

Sets the specified value to the override_redirect field.

public boolean

Returns:

the value of the save_under field.
save_under
()

public XSetWindowAttributes
save_under(boolean value)

Sets the specified value to the save_under field.

public XSetWindowAttributes
set(long background_pixmap, long background_pixel, long border_pixmap, long border_pixel, int bit_gravity, int win_gravity, int backing_store, long backing_planes, long backing_pixel, boolean save_under, long event_mask, long do_not_propagate_mask, boolean override_redirect, long colormap, long cursor)

Initializes this struct with the specified values.

public XSetWindowAttributes

Returns:

this struct
set
(XSetWindowAttributes
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 win_gravity field.
win_gravity
()

public XSetWindowAttributes
win_gravity(int value)

Sets the specified value to the win_gravity field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate