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, NativeResource, Pointer
public class XSetWindowAttributes extends Struct implements 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 and Description static class
XSetWindowAttributes.Buffer
An array ofXSetWindowAttributes
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 Modifier and Type Method and Description long
background_pixel()
Returns the value of thebackground_pixel
field.XSetWindowAttributes
background_pixel(long value)
Sets the specified value to thebackground_pixel
field.long
background_pixmap()
Returns the value of thebackground_pixmap
field.XSetWindowAttributes
background_pixmap(long value)
Sets the specified value to thebackground_pixmap
field.long
backing_pixel()
Returns the value of thebacking_pixel
field.XSetWindowAttributes
backing_pixel(long value)
Sets the specified value to thebacking_pixel
field.long
backing_planes()
Returns the value of thebacking_planes
field.XSetWindowAttributes
backing_planes(long value)
Sets the specified value to thebacking_planes
field.int
backing_store()
Returns the value of thebacking_store
field.XSetWindowAttributes
backing_store(int value)
Sets the specified value to thebacking_store
field.int
bit_gravity()
Returns the value of thebit_gravity
field.XSetWindowAttributes
bit_gravity(int value)
Sets the specified value to thebit_gravity
field.long
border_pixel()
Returns the value of theborder_pixel
field.XSetWindowAttributes
border_pixel(long value)
Sets the specified value to theborder_pixel
field.long
border_pixmap()
Returns the value of theborder_pixmap
field.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
callocStack()
Returns a newXSetWindowAttributes
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static XSetWindowAttributes.Buffer
callocStack(int capacity)
Returns a newXSetWindowAttributes.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static XSetWindowAttributes.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newXSetWindowAttributes.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XSetWindowAttributes
callocStack(MemoryStack stack)
Returns a newXSetWindowAttributes
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.long
colormap()
Returns the value of thecolormap
field.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 ornull
if the address isNULL
.static XSetWindowAttributes.Buffer
create(long address, int capacity)
Create aXSetWindowAttributes.Buffer
instance at the specified memory.long
cursor()
Returns the value of thecursor
field.XSetWindowAttributes
cursor(long value)
Sets the specified value to thecursor
field.long
do_not_propagate_mask()
Returns the value of thedo_not_propagate_mask
field.XSetWindowAttributes
do_not_propagate_mask(long value)
Sets the specified value to thedo_not_propagate_mask
field.long
event_mask()
Returns the value of theevent_mask
field.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
mallocStack()
Returns a newXSetWindowAttributes
instance allocated on the thread-localMemoryStack
.static XSetWindowAttributes.Buffer
mallocStack(int capacity)
Returns a newXSetWindowAttributes.Buffer
instance allocated on the thread-localMemoryStack
.static XSetWindowAttributes.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newXSetWindowAttributes.Buffer
instance allocated on the specifiedMemoryStack
.static XSetWindowAttributes
mallocStack(MemoryStack stack)
Returns a newXSetWindowAttributes
instance allocated on the specifiedMemoryStack
.boolean
override_redirect()
Returns the value of theoverride_redirect
field.XSetWindowAttributes
override_redirect(boolean value)
Sets the specified value to theoverride_redirect
field.boolean
save_under()
Returns the value of thesave_under
field.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()
Returnssizeof(struct)
.int
win_gravity()
Returns the value of thewin_gravity
field.XSetWindowAttributes
win_gravity(int value)
Sets the specified value to thewin_gravity
field.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
-
-
-
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()
Description copied from class:Struct
Returnssizeof(struct)
.
-
background_pixmap
public long background_pixmap()
Returns the value of thebackground_pixmap
field.
-
background_pixel
public long background_pixel()
Returns the value of thebackground_pixel
field.
-
border_pixmap
public long border_pixmap()
Returns the value of theborder_pixmap
field.
-
border_pixel
public long border_pixel()
Returns the value of theborder_pixel
field.
-
bit_gravity
public int bit_gravity()
Returns the value of thebit_gravity
field.
-
win_gravity
public int win_gravity()
Returns the value of thewin_gravity
field.
-
backing_store
public int backing_store()
Returns the value of thebacking_store
field.
-
backing_planes
public long backing_planes()
Returns the value of thebacking_planes
field.
-
backing_pixel
public long backing_pixel()
Returns the value of thebacking_pixel
field.
-
save_under
public boolean save_under()
Returns the value of thesave_under
field.
-
event_mask
public long event_mask()
Returns the value of theevent_mask
field.
-
do_not_propagate_mask
public long do_not_propagate_mask()
Returns the value of thedo_not_propagate_mask
field.
-
override_redirect
public boolean override_redirect()
Returns the value of theoverride_redirect
field.
-
colormap
public long colormap()
Returns the value of thecolormap
field.
-
cursor
public long cursor()
Returns the value of thecursor
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 ornull
if the address isNULL
.
-
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
-
mallocStack
public static XSetWindowAttributes mallocStack()
Returns a newXSetWindowAttributes
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static XSetWindowAttributes callocStack()
Returns a newXSetWindowAttributes
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static XSetWindowAttributes mallocStack(MemoryStack stack)
Returns a newXSetWindowAttributes
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static XSetWindowAttributes callocStack(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
-
mallocStack
public static XSetWindowAttributes.Buffer mallocStack(int capacity)
Returns a newXSetWindowAttributes.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static XSetWindowAttributes.Buffer callocStack(int capacity)
Returns a newXSetWindowAttributes.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static XSetWindowAttributes.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newXSetWindowAttributes.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static XSetWindowAttributes.Buffer callocStack(int capacity, 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
-
-