public class XSetWindowAttributes
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XSetWindowAttributes.Buffer
An array of
XSetWindowAttributes structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BACKGROUND_PIXEL
The struct member offsets.
|
static int |
BACKGROUND_PIXMAP
The struct member offsets.
|
static int |
BACKING_PIXEL
The struct member offsets.
|
static int |
BACKING_PLANES
The struct member offsets.
|
static int |
BACKING_STORE
The struct member offsets.
|
static int |
BIT_GRAVITY
The struct member offsets.
|
static int |
BORDER_PIXEL
The struct member offsets.
|
static int |
BORDER_PIXMAP
The struct member offsets.
|
static int |
COLORMAP
The struct member offsets.
|
static int |
CURSOR
The struct member offsets.
|
static int |
DO_NOT_PROPAGATE_MASK
The struct member offsets.
|
static int |
EVENT_MASK
The struct member offsets.
|
static int |
OVERRIDE_REDIRECT
The struct member offsets.
|
static int |
SAVE_UNDER
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WIN_GRAVITY
The struct member offsets.
|
| Constructor and Description |
|---|
XSetWindowAttributes(java.nio.ByteBuffer container)
Creates a
XSetWindowAttributes instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
background_pixel()
Returns the value of the
background_pixel field. |
XSetWindowAttributes |
background_pixel(long value)
Sets the specified value to the
background_pixel field. |
long |
background_pixmap()
Returns the value of the
background_pixmap field. |
XSetWindowAttributes |
background_pixmap(long value)
Sets the specified value to the
background_pixmap field. |
long |
backing_pixel()
Returns the value of the
backing_pixel field. |
XSetWindowAttributes |
backing_pixel(long value)
Sets the specified value to the
backing_pixel field. |
long |
backing_planes()
Returns the value of the
backing_planes field. |
XSetWindowAttributes |
backing_planes(long value)
Sets the specified value to the
backing_planes field. |
int |
backing_store()
Returns the value of the
backing_store field. |
XSetWindowAttributes |
backing_store(int value)
Sets the specified value to the
backing_store field. |
int |
bit_gravity()
Returns the value of the
bit_gravity field. |
XSetWindowAttributes |
bit_gravity(int value)
Sets the specified value to the
bit_gravity field. |
long |
border_pixel()
Returns the value of the
border_pixel field. |
XSetWindowAttributes |
border_pixel(long value)
Sets the specified value to the
border_pixel field. |
long |
border_pixmap()
Returns the value of the
border_pixmap field. |
XSetWindowAttributes |
border_pixmap(long value)
Sets the specified value to the
border_pixmap field. |
static XSetWindowAttributes |
calloc()
Returns a new
XSetWindowAttributes instance allocated with memCalloc. |
static XSetWindowAttributes.Buffer |
calloc(int capacity)
Returns a new
XSetWindowAttributes.Buffer instance allocated with memCalloc. |
static XSetWindowAttributes |
callocStack()
Returns a new
XSetWindowAttributes instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XSetWindowAttributes.Buffer |
callocStack(int capacity)
Returns a new
XSetWindowAttributes.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XSetWindowAttributes.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XSetWindowAttributes.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XSetWindowAttributes |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XSetWindowAttributes instance allocated on the specified MemoryStack and initializes all its bits to zero. |
long |
colormap()
Returns the value of the
colormap field. |
XSetWindowAttributes |
colormap(long value)
Sets the specified value to the
colormap field. |
static XSetWindowAttributes |
create()
Returns a new
XSetWindowAttributes instance allocated with BufferUtils. |
static XSetWindowAttributes.Buffer |
create(int capacity)
Returns a new
XSetWindowAttributes.Buffer instance allocated with BufferUtils. |
static XSetWindowAttributes |
create(long address)
Returns a new
XSetWindowAttributes instance for the specified memory address. |
static XSetWindowAttributes.Buffer |
create(long address,
int capacity)
Create a
XSetWindowAttributes.Buffer instance at the specified memory. |
static XSetWindowAttributes |
createSafe(long address)
|
static XSetWindowAttributes.Buffer |
createSafe(long address,
int capacity)
|
long |
cursor()
Returns the value of the
cursor field. |
XSetWindowAttributes |
cursor(long value)
Sets the specified value to the
cursor field. |
long |
do_not_propagate_mask()
Returns the value of the
do_not_propagate_mask field. |
XSetWindowAttributes |
do_not_propagate_mask(long value)
Sets the specified value to the
do_not_propagate_mask field. |
long |
event_mask()
Returns the value of the
event_mask field. |
XSetWindowAttributes |
event_mask(long value)
Sets the specified value to the
event_mask field. |
static XSetWindowAttributes |
malloc()
Returns a new
XSetWindowAttributes instance allocated with memAlloc. |
static XSetWindowAttributes.Buffer |
malloc(int capacity)
Returns a new
XSetWindowAttributes.Buffer instance allocated with memAlloc. |
static XSetWindowAttributes |
mallocStack()
Returns a new
XSetWindowAttributes instance allocated on the thread-local MemoryStack. |
static XSetWindowAttributes.Buffer |
mallocStack(int capacity)
Returns a new
XSetWindowAttributes.Buffer instance allocated on the thread-local MemoryStack. |
static XSetWindowAttributes.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XSetWindowAttributes.Buffer instance allocated on the specified MemoryStack. |
static XSetWindowAttributes |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XSetWindowAttributes instance allocated on the specified MemoryStack. |
static long |
nbackground_pixel(long struct)
Unsafe version of
background_pixel(). |
static void |
nbackground_pixel(long struct,
long value)
Unsafe version of
background_pixel. |
static long |
nbackground_pixmap(long struct)
Unsafe version of
background_pixmap(). |
static void |
nbackground_pixmap(long struct,
long value)
Unsafe version of
background_pixmap. |
static long |
nbacking_pixel(long struct)
Unsafe version of
backing_pixel(). |
static void |
nbacking_pixel(long struct,
long value)
Unsafe version of
backing_pixel. |
static long |
nbacking_planes(long struct)
Unsafe version of
backing_planes(). |
static void |
nbacking_planes(long struct,
long value)
Unsafe version of
backing_planes. |
static int |
nbacking_store(long struct)
Unsafe version of
backing_store(). |
static void |
nbacking_store(long struct,
int value)
Unsafe version of
backing_store. |
static int |
nbit_gravity(long struct)
Unsafe version of
bit_gravity(). |
static void |
nbit_gravity(long struct,
int value)
Unsafe version of
bit_gravity. |
static long |
nborder_pixel(long struct)
Unsafe version of
border_pixel(). |
static void |
nborder_pixel(long struct,
long value)
Unsafe version of
border_pixel. |
static long |
nborder_pixmap(long struct)
Unsafe version of
border_pixmap(). |
static void |
nborder_pixmap(long struct,
long value)
Unsafe version of
border_pixmap. |
static long |
ncolormap(long struct)
Unsafe version of
colormap(). |
static void |
ncolormap(long struct,
long value)
Unsafe version of
colormap. |
static long |
ncursor(long struct)
Unsafe version of
cursor(). |
static void |
ncursor(long struct,
long value)
Unsafe version of
cursor. |
static long |
ndo_not_propagate_mask(long struct)
Unsafe version of
do_not_propagate_mask(). |
static void |
ndo_not_propagate_mask(long struct,
long value)
Unsafe version of
do_not_propagate_mask. |
static long |
nevent_mask(long struct)
Unsafe version of
event_mask(). |
static void |
nevent_mask(long struct,
long value)
Unsafe version of
event_mask. |
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 |
nsave_under(long struct)
Unsafe version of
save_under(). |
static void |
nsave_under(long struct,
int value)
Unsafe version of
save_under. |
static int |
nwin_gravity(long struct)
Unsafe version of
win_gravity(). |
static void |
nwin_gravity(long struct,
int value)
Unsafe version of
win_gravity. |
boolean |
override_redirect()
Returns the value of the
override_redirect field. |
XSetWindowAttributes |
override_redirect(boolean value)
Sets the specified value to the
override_redirect field. |
boolean |
save_under()
Returns the value of the
save_under field. |
XSetWindowAttributes |
save_under(boolean value)
Sets the specified value to the
save_under field. |
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.
|
XSetWindowAttributes |
set(XSetWindowAttributes src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
win_gravity()
Returns the value of the
win_gravity field. |
XSetWindowAttributes |
win_gravity(int value)
Sets the specified value to the
win_gravity field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BACKGROUND_PIXMAP
public static final int BACKGROUND_PIXEL
public static final int BORDER_PIXMAP
public static final int BORDER_PIXEL
public static final int BIT_GRAVITY
public static final int WIN_GRAVITY
public static final int BACKING_STORE
public static final int BACKING_PLANES
public static final int BACKING_PIXEL
public static final int SAVE_UNDER
public static final int EVENT_MASK
public static final int DO_NOT_PROPAGATE_MASK
public static final int OVERRIDE_REDIRECT
public static final int COLORMAP
public static final int CURSOR
public XSetWindowAttributes(java.nio.ByteBuffer container)
XSetWindowAttributes 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 long background_pixmap()
background_pixmap field.public long background_pixel()
background_pixel field.public long border_pixmap()
border_pixmap field.public long border_pixel()
border_pixel field.public int bit_gravity()
bit_gravity field.public int win_gravity()
win_gravity field.public int backing_store()
backing_store field.public long backing_planes()
backing_planes field.public long backing_pixel()
backing_pixel field.public boolean save_under()
save_under field.public long event_mask()
event_mask field.public long do_not_propagate_mask()
do_not_propagate_mask field.public boolean override_redirect()
override_redirect field.public long colormap()
colormap field.public long cursor()
cursor field.public XSetWindowAttributes background_pixmap(long value)
background_pixmap field.public XSetWindowAttributes background_pixel(long value)
background_pixel field.public XSetWindowAttributes border_pixmap(long value)
border_pixmap field.public XSetWindowAttributes border_pixel(long value)
border_pixel field.public XSetWindowAttributes bit_gravity(int value)
bit_gravity field.public XSetWindowAttributes win_gravity(int value)
win_gravity field.public XSetWindowAttributes backing_store(int value)
backing_store field.public XSetWindowAttributes backing_planes(long value)
backing_planes field.public XSetWindowAttributes backing_pixel(long value)
backing_pixel field.public XSetWindowAttributes save_under(boolean value)
save_under field.public XSetWindowAttributes event_mask(long value)
event_mask field.public XSetWindowAttributes do_not_propagate_mask(long value)
do_not_propagate_mask field.public XSetWindowAttributes override_redirect(boolean value)
override_redirect field.public XSetWindowAttributes colormap(long value)
colormap field.public XSetWindowAttributes cursor(long value)
cursor 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)
public XSetWindowAttributes set(XSetWindowAttributes src)
src - the source structpublic static XSetWindowAttributes malloc()
XSetWindowAttributes instance allocated with memAlloc. The instance must be explicitly freed.public static XSetWindowAttributes calloc()
XSetWindowAttributes instance allocated with memCalloc. The instance must be explicitly freed.public static XSetWindowAttributes create()
XSetWindowAttributes instance allocated with BufferUtils.public static XSetWindowAttributes create(long address)
XSetWindowAttributes instance for the specified memory address.@Nullable public static XSetWindowAttributes createSafe(long address)
public static XSetWindowAttributes.Buffer malloc(int capacity)
XSetWindowAttributes.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XSetWindowAttributes.Buffer calloc(int capacity)
XSetWindowAttributes.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XSetWindowAttributes.Buffer create(int capacity)
XSetWindowAttributes.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XSetWindowAttributes.Buffer create(long address, int capacity)
XSetWindowAttributes.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XSetWindowAttributes.Buffer createSafe(long address, int capacity)
public static XSetWindowAttributes mallocStack()
XSetWindowAttributes instance allocated on the thread-local MemoryStack.public static XSetWindowAttributes callocStack()
XSetWindowAttributes instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XSetWindowAttributes mallocStack(org.lwjgl.system.MemoryStack stack)
XSetWindowAttributes instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XSetWindowAttributes callocStack(org.lwjgl.system.MemoryStack stack)
XSetWindowAttributes instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XSetWindowAttributes.Buffer mallocStack(int capacity)
XSetWindowAttributes.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XSetWindowAttributes.Buffer callocStack(int capacity)
XSetWindowAttributes.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XSetWindowAttributes.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XSetWindowAttributes.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XSetWindowAttributes.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XSetWindowAttributes.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 long nbackground_pixmap(long struct)
background_pixmap().public static long nbackground_pixel(long struct)
background_pixel().public static long nborder_pixmap(long struct)
border_pixmap().public static long nborder_pixel(long struct)
border_pixel().public static int nbit_gravity(long struct)
bit_gravity().public static int nwin_gravity(long struct)
win_gravity().public static int nbacking_store(long struct)
backing_store().public static long nbacking_planes(long struct)
backing_planes().public static long nbacking_pixel(long struct)
backing_pixel().public static int nsave_under(long struct)
save_under().public static long nevent_mask(long struct)
event_mask().public static long ndo_not_propagate_mask(long struct)
do_not_propagate_mask().public static int noverride_redirect(long struct)
override_redirect().public static long ncolormap(long struct)
colormap().public static long ncursor(long struct)
cursor().public static void nbackground_pixmap(long struct,
long value)
background_pixmap.public static void nbackground_pixel(long struct,
long value)
background_pixel.public static void nborder_pixmap(long struct,
long value)
border_pixmap.public static void nborder_pixel(long struct,
long value)
border_pixel.public static void nbit_gravity(long struct,
int value)
bit_gravity.public static void nwin_gravity(long struct,
int value)
win_gravity.public static void nbacking_store(long struct,
int value)
backing_store.public static void nbacking_planes(long struct,
long value)
backing_planes.public static void nbacking_pixel(long struct,
long value)
backing_pixel.public static void nsave_under(long struct,
int value)
save_under.public static void nevent_mask(long struct,
long value)
event_mask.public static void ndo_not_propagate_mask(long struct,
long value)
do_not_propagate_mask.public static void noverride_redirect(long struct,
int value)
override_redirect.public static void ncolormap(long struct,
long value)
colormap.public static void ncursor(long struct,
long value)
cursor.Copyright LWJGL. All Rights Reserved. License terms.