Package org.lwjgl.system.linux
Class XSetWindowAttributes
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.XSetWindowAttributes
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class XSetWindowAttributes extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
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 Class Summary
Nested Classes Modifier and Type Class Description static class
XSetWindowAttributes.Buffer
An array ofXSetWindowAttributes
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BACKGROUND_PIXEL
BACKGROUND_PIXMAP
BACKING_PIXEL
BACKING_PLANES
BACKING_STORE
BIT_GRAVITY
BORDER_PIXEL
BORDER_PIXMAP
COLORMAP
CURSOR
DO_NOT_PROPAGATE_MASK
EVENT_MASK
OVERRIDE_REDIRECT
SAVE_UNDERThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
WIN_GRAVITY
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description XSetWindowAttributes(java.nio.ByteBuffer container)
Creates aXSetWindowAttributes
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long
background_pixel()
XSetWindowAttributes
background_pixel(long value)
Sets the specified value to thebackground_pixel
field.long
background_pixmap()
XSetWindowAttributes
background_pixmap(long value)
Sets the specified value to thebackground_pixmap
field.long
backing_pixel()
XSetWindowAttributes
backing_pixel(long value)
Sets the specified value to thebacking_pixel
field.long
backing_planes()
XSetWindowAttributes
backing_planes(long value)
Sets the specified value to thebacking_planes
field.int
backing_store()
XSetWindowAttributes
backing_store(int value)
Sets the specified value to thebacking_store
field.int
bit_gravity()
XSetWindowAttributes
bit_gravity(int value)
Sets the specified value to thebit_gravity
field.long
border_pixel()
XSetWindowAttributes
border_pixel(long value)
Sets the specified value to theborder_pixel
field.long
border_pixmap()
XSetWindowAttributes
border_pixmap(long value)
Sets the specified value to theborder_pixmap
field.static XSetWindowAttributes
calloc()
Returns a newXSetWindowAttributes
instance allocated withmemCalloc
.static XSetWindowAttributes.Buffer
calloc(int capacity)
Returns a newXSetWindowAttributes.Buffer
instance allocated withmemCalloc
.static XSetWindowAttributes.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXSetWindowAttributes.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XSetWindowAttributes
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXSetWindowAttributes
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XSetWindowAttributes
callocStack()
Deprecated.static XSetWindowAttributes.Buffer
callocStack(int capacity)
Deprecated.static XSetWindowAttributes.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static XSetWindowAttributes
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.long
colormap()
XSetWindowAttributes
colormap(long value)
Sets the specified value to thecolormap
field.static XSetWindowAttributes
create()
Returns a newXSetWindowAttributes
instance allocated withBufferUtils
.static XSetWindowAttributes.Buffer
create(int capacity)
Returns a newXSetWindowAttributes.Buffer
instance allocated withBufferUtils
.static XSetWindowAttributes
create(long address)
Returns a newXSetWindowAttributes
instance for the specified memory address.static XSetWindowAttributes.Buffer
create(long address, int capacity)
Create aXSetWindowAttributes.Buffer
instance at the specified memory.static XSetWindowAttributes
createSafe(long address)
static XSetWindowAttributes.Buffer
createSafe(long address, int capacity)
long
cursor()
XSetWindowAttributes
cursor(long value)
Sets the specified value to thecursor
field.long
do_not_propagate_mask()
XSetWindowAttributes
do_not_propagate_mask(long value)
Sets the specified value to thedo_not_propagate_mask
field.long
event_mask()
XSetWindowAttributes
event_mask(long value)
Sets the specified value to theevent_mask
field.static XSetWindowAttributes
malloc()
Returns a newXSetWindowAttributes
instance allocated withmemAlloc
.static XSetWindowAttributes.Buffer
malloc(int capacity)
Returns a newXSetWindowAttributes.Buffer
instance allocated withmemAlloc
.static XSetWindowAttributes.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXSetWindowAttributes.Buffer
instance allocated on the specifiedMemoryStack
.static XSetWindowAttributes
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXSetWindowAttributes
instance allocated on the specifiedMemoryStack
.static XSetWindowAttributes
mallocStack()
Deprecated.static XSetWindowAttributes.Buffer
mallocStack(int capacity)
Deprecated.static XSetWindowAttributes.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static XSetWindowAttributes
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static long
nbackground_pixel(long struct)
Unsafe version ofbackground_pixel()
.static void
nbackground_pixel(long struct, long value)
Unsafe version ofbackground_pixel
.static long
nbackground_pixmap(long struct)
Unsafe version ofbackground_pixmap()
.static void
nbackground_pixmap(long struct, long value)
Unsafe version ofbackground_pixmap
.static long
nbacking_pixel(long struct)
Unsafe version ofbacking_pixel()
.static void
nbacking_pixel(long struct, long value)
Unsafe version ofbacking_pixel
.static long
nbacking_planes(long struct)
Unsafe version ofbacking_planes()
.static void
nbacking_planes(long struct, long value)
Unsafe version ofbacking_planes
.static int
nbacking_store(long struct)
Unsafe version ofbacking_store()
.static void
nbacking_store(long struct, int value)
Unsafe version ofbacking_store
.static int
nbit_gravity(long struct)
Unsafe version ofbit_gravity()
.static void
nbit_gravity(long struct, int value)
Unsafe version ofbit_gravity
.static long
nborder_pixel(long struct)
Unsafe version ofborder_pixel()
.static void
nborder_pixel(long struct, long value)
Unsafe version ofborder_pixel
.static long
nborder_pixmap(long struct)
Unsafe version ofborder_pixmap()
.static void
nborder_pixmap(long struct, long value)
Unsafe version ofborder_pixmap
.static long
ncolormap(long struct)
Unsafe version ofcolormap()
.static void
ncolormap(long struct, long value)
Unsafe version ofcolormap
.static long
ncursor(long struct)
Unsafe version ofcursor()
.static void
ncursor(long struct, long value)
Unsafe version ofcursor
.static long
ndo_not_propagate_mask(long struct)
Unsafe version ofdo_not_propagate_mask()
.static void
ndo_not_propagate_mask(long struct, long value)
Unsafe version ofdo_not_propagate_mask
.static long
nevent_mask(long struct)
Unsafe version ofevent_mask()
.static void
nevent_mask(long struct, long value)
Unsafe version ofevent_mask
.static int
noverride_redirect(long struct)
Unsafe version ofoverride_redirect()
.static void
noverride_redirect(long struct, int value)
Unsafe version ofoverride_redirect
.static int
nsave_under(long struct)
Unsafe version ofsave_under()
.static void
nsave_under(long struct, int value)
Unsafe version ofsave_under
.static int
nwin_gravity(long struct)
Unsafe version ofwin_gravity()
.static void
nwin_gravity(long struct, int value)
Unsafe version ofwin_gravity
.boolean
override_redirect()
XSetWindowAttributes
override_redirect(boolean value)
Sets the specified value to theoverride_redirect
field.boolean
save_under()
XSetWindowAttributes
save_under(boolean value)
Sets the specified value to thesave_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()
XSetWindowAttributes
win_gravity(int value)
Sets the specified value to thewin_gravity
field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
BACKGROUND_PIXMAP, BACKGROUND_PIXEL, BORDER_PIXMAP, BORDER_PIXEL, BIT_GRAVITY, WIN_GRAVITY, BACKING_STORE, BACKING_PLANES, BACKING_PIXEL, SAVE_UNDER, EVENT_MASK, DO_NOT_PROPAGATE_MASK, OVERRIDE_REDIRECT, COLORMAP, CURSOR
The struct member offsets.
-
-
Constructor Detail
-
XSetWindowAttributes
public XSetWindowAttributes(java.nio.ByteBuffer container)
Creates aXSetWindowAttributes
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
background_pixmap
public long background_pixmap()
- Returns:
- the value of the
background_pixmap
field.
-
background_pixel
public long background_pixel()
- Returns:
- the value of the
background_pixel
field.
-
border_pixmap
public long border_pixmap()
- Returns:
- the value of the
border_pixmap
field.
-
border_pixel
public long border_pixel()
- Returns:
- the value of the
border_pixel
field.
-
bit_gravity
public int bit_gravity()
- Returns:
- the value of the
bit_gravity
field.
-
win_gravity
public int win_gravity()
- Returns:
- the value of the
win_gravity
field.
-
backing_store
public int backing_store()
- Returns:
- the value of the
backing_store
field.
-
backing_planes
public long backing_planes()
- Returns:
- the value of the
backing_planes
field.
-
backing_pixel
public long backing_pixel()
- Returns:
- the value of the
backing_pixel
field.
-
save_under
public boolean save_under()
- Returns:
- the value of the
save_under
field.
-
event_mask
public long event_mask()
- Returns:
- the value of the
event_mask
field.
-
do_not_propagate_mask
public long do_not_propagate_mask()
- Returns:
- the value of the
do_not_propagate_mask
field.
-
override_redirect
public boolean override_redirect()
- Returns:
- the value of the
override_redirect
field.
-
colormap
public long colormap()
- Returns:
- the value of the
colormap
field.
-
cursor
public long cursor()
- Returns:
- the value of the
cursor
field.
-
background_pixmap
public XSetWindowAttributes background_pixmap(long value)
Sets the specified value to thebackground_pixmap
field.
-
background_pixel
public XSetWindowAttributes background_pixel(long value)
Sets the specified value to thebackground_pixel
field.
-
border_pixmap
public XSetWindowAttributes border_pixmap(long value)
Sets the specified value to theborder_pixmap
field.
-
border_pixel
public XSetWindowAttributes border_pixel(long value)
Sets the specified value to theborder_pixel
field.
-
bit_gravity
public XSetWindowAttributes bit_gravity(int value)
Sets the specified value to thebit_gravity
field.
-
win_gravity
public XSetWindowAttributes win_gravity(int value)
Sets the specified value to thewin_gravity
field.
-
backing_store
public XSetWindowAttributes backing_store(int value)
Sets the specified value to thebacking_store
field.
-
backing_planes
public XSetWindowAttributes backing_planes(long value)
Sets the specified value to thebacking_planes
field.
-
backing_pixel
public XSetWindowAttributes backing_pixel(long value)
Sets the specified value to thebacking_pixel
field.
-
save_under
public XSetWindowAttributes save_under(boolean value)
Sets the specified value to thesave_under
field.
-
event_mask
public XSetWindowAttributes event_mask(long value)
Sets the specified value to theevent_mask
field.
-
do_not_propagate_mask
public XSetWindowAttributes do_not_propagate_mask(long value)
Sets the specified value to thedo_not_propagate_mask
field.
-
override_redirect
public XSetWindowAttributes override_redirect(boolean value)
Sets the specified value to theoverride_redirect
field.
-
colormap
public XSetWindowAttributes colormap(long value)
Sets the specified value to thecolormap
field.
-
cursor
public XSetWindowAttributes cursor(long value)
Sets the specified value to thecursor
field.
-
set
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.
-
set
public XSetWindowAttributes set(XSetWindowAttributes src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static XSetWindowAttributes malloc()
Returns a newXSetWindowAttributes
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static XSetWindowAttributes calloc()
Returns a newXSetWindowAttributes
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static XSetWindowAttributes create()
Returns a newXSetWindowAttributes
instance allocated withBufferUtils
.
-
create
public static XSetWindowAttributes create(long address)
Returns a newXSetWindowAttributes
instance for the specified memory address.
-
createSafe
@Nullable public static XSetWindowAttributes createSafe(long address)
-
malloc
public static XSetWindowAttributes.Buffer malloc(int capacity)
Returns a newXSetWindowAttributes.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static XSetWindowAttributes.Buffer calloc(int capacity)
Returns a newXSetWindowAttributes.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static XSetWindowAttributes.Buffer create(int capacity)
Returns a newXSetWindowAttributes.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static XSetWindowAttributes.Buffer create(long address, int capacity)
Create aXSetWindowAttributes.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static XSetWindowAttributes.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static XSetWindowAttributes mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static XSetWindowAttributes callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static XSetWindowAttributes mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static XSetWindowAttributes callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static XSetWindowAttributes.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static XSetWindowAttributes.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
mallocStack
@Deprecated public static XSetWindowAttributes.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static XSetWindowAttributes.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
malloc
public static XSetWindowAttributes malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXSetWindowAttributes
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static XSetWindowAttributes calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXSetWindowAttributes
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static XSetWindowAttributes.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXSetWindowAttributes.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static XSetWindowAttributes.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXSetWindowAttributes.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nbackground_pixmap
public static long nbackground_pixmap(long struct)
Unsafe version ofbackground_pixmap()
.
-
nbackground_pixel
public static long nbackground_pixel(long struct)
Unsafe version ofbackground_pixel()
.
-
nborder_pixmap
public static long nborder_pixmap(long struct)
Unsafe version ofborder_pixmap()
.
-
nborder_pixel
public static long nborder_pixel(long struct)
Unsafe version ofborder_pixel()
.
-
nbit_gravity
public static int nbit_gravity(long struct)
Unsafe version ofbit_gravity()
.
-
nwin_gravity
public static int nwin_gravity(long struct)
Unsafe version ofwin_gravity()
.
-
nbacking_store
public static int nbacking_store(long struct)
Unsafe version ofbacking_store()
.
-
nbacking_planes
public static long nbacking_planes(long struct)
Unsafe version ofbacking_planes()
.
-
nbacking_pixel
public static long nbacking_pixel(long struct)
Unsafe version ofbacking_pixel()
.
-
nsave_under
public static int nsave_under(long struct)
Unsafe version ofsave_under()
.
-
nevent_mask
public static long nevent_mask(long struct)
Unsafe version ofevent_mask()
.
-
ndo_not_propagate_mask
public static long ndo_not_propagate_mask(long struct)
Unsafe version ofdo_not_propagate_mask()
.
-
noverride_redirect
public static int noverride_redirect(long struct)
Unsafe version ofoverride_redirect()
.
-
ncolormap
public static long ncolormap(long struct)
Unsafe version ofcolormap()
.
-
ncursor
public static long ncursor(long struct)
Unsafe version ofcursor()
.
-
nbackground_pixmap
public static void nbackground_pixmap(long struct, long value)
Unsafe version ofbackground_pixmap
.
-
nbackground_pixel
public static void nbackground_pixel(long struct, long value)
Unsafe version ofbackground_pixel
.
-
nborder_pixmap
public static void nborder_pixmap(long struct, long value)
Unsafe version ofborder_pixmap
.
-
nborder_pixel
public static void nborder_pixel(long struct, long value)
Unsafe version ofborder_pixel
.
-
nbit_gravity
public static void nbit_gravity(long struct, int value)
Unsafe version ofbit_gravity
.
-
nwin_gravity
public static void nwin_gravity(long struct, int value)
Unsafe version ofwin_gravity
.
-
nbacking_store
public static void nbacking_store(long struct, int value)
Unsafe version ofbacking_store
.
-
nbacking_planes
public static void nbacking_planes(long struct, long value)
Unsafe version ofbacking_planes
.
-
nbacking_pixel
public static void nbacking_pixel(long struct, long value)
Unsafe version ofbacking_pixel
.
-
nsave_under
public static void nsave_under(long struct, int value)
Unsafe version ofsave_under
.
-
nevent_mask
public static void nevent_mask(long struct, long value)
Unsafe version ofevent_mask
.
-
ndo_not_propagate_mask
public static void ndo_not_propagate_mask(long struct, long value)
Unsafe version ofdo_not_propagate_mask
.
-
noverride_redirect
public static void noverride_redirect(long struct, int value)
Unsafe version ofoverride_redirect
.
-
ncolormap
public static void ncolormap(long struct, long value)
Unsafe version ofcolormap
.
-
ncursor
public static void ncursor(long struct, long value)
Unsafe version ofcursor
.
-
-