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
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 classXSetWindowAttributes.BufferAn array ofXSetWindowAttributesstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe 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 aXSetWindowAttributesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description longbackground_pixel()Returns the value of thebackground_pixelfield.XSetWindowAttributesbackground_pixel(long value)Sets the specified value to thebackground_pixelfield.longbackground_pixmap()Returns the value of thebackground_pixmapfield.XSetWindowAttributesbackground_pixmap(long value)Sets the specified value to thebackground_pixmapfield.longbacking_pixel()Returns the value of thebacking_pixelfield.XSetWindowAttributesbacking_pixel(long value)Sets the specified value to thebacking_pixelfield.longbacking_planes()Returns the value of thebacking_planesfield.XSetWindowAttributesbacking_planes(long value)Sets the specified value to thebacking_planesfield.intbacking_store()Returns the value of thebacking_storefield.XSetWindowAttributesbacking_store(int value)Sets the specified value to thebacking_storefield.intbit_gravity()Returns the value of thebit_gravityfield.XSetWindowAttributesbit_gravity(int value)Sets the specified value to thebit_gravityfield.longborder_pixel()Returns the value of theborder_pixelfield.XSetWindowAttributesborder_pixel(long value)Sets the specified value to theborder_pixelfield.longborder_pixmap()Returns the value of theborder_pixmapfield.XSetWindowAttributesborder_pixmap(long value)Sets the specified value to theborder_pixmapfield.static XSetWindowAttributescalloc()Returns a newXSetWindowAttributesinstance allocated withmemCalloc.static XSetWindowAttributes.Buffercalloc(int capacity)Returns a newXSetWindowAttributes.Bufferinstance allocated withmemCalloc.static XSetWindowAttributescallocStack()Returns a newXSetWindowAttributesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static XSetWindowAttributes.BuffercallocStack(int capacity)Returns a newXSetWindowAttributes.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static XSetWindowAttributes.BuffercallocStack(int capacity, MemoryStack stack)Returns a newXSetWindowAttributes.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XSetWindowAttributescallocStack(MemoryStack stack)Returns a newXSetWindowAttributesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longcolormap()Returns the value of thecolormapfield.XSetWindowAttributescolormap(long value)Sets the specified value to thecolormapfield.static XSetWindowAttributescreate()Returns a newXSetWindowAttributesinstance allocated withBufferUtils.static XSetWindowAttributes.Buffercreate(int capacity)Returns a newXSetWindowAttributes.Bufferinstance allocated withBufferUtils.static XSetWindowAttributescreate(long address)Returns a newXSetWindowAttributesinstance for the specified memory address ornullif the address isNULL.static XSetWindowAttributes.Buffercreate(long address, int capacity)Create aXSetWindowAttributes.Bufferinstance at the specified memory.longcursor()Returns the value of thecursorfield.XSetWindowAttributescursor(long value)Sets the specified value to thecursorfield.longdo_not_propagate_mask()Returns the value of thedo_not_propagate_maskfield.XSetWindowAttributesdo_not_propagate_mask(long value)Sets the specified value to thedo_not_propagate_maskfield.longevent_mask()Returns the value of theevent_maskfield.XSetWindowAttributesevent_mask(long value)Sets the specified value to theevent_maskfield.static XSetWindowAttributesmalloc()Returns a newXSetWindowAttributesinstance allocated withmemAlloc.static XSetWindowAttributes.Buffermalloc(int capacity)Returns a newXSetWindowAttributes.Bufferinstance allocated withmemAlloc.static XSetWindowAttributesmallocStack()Returns a newXSetWindowAttributesinstance allocated on the thread-localMemoryStack.static XSetWindowAttributes.BuffermallocStack(int capacity)Returns a newXSetWindowAttributes.Bufferinstance allocated on the thread-localMemoryStack.static XSetWindowAttributes.BuffermallocStack(int capacity, MemoryStack stack)Returns a newXSetWindowAttributes.Bufferinstance allocated on the specifiedMemoryStack.static XSetWindowAttributesmallocStack(MemoryStack stack)Returns a newXSetWindowAttributesinstance allocated on the specifiedMemoryStack.XSetWindowAttributesnset(long struct)Unsafe version ofset.intoverride_redirect()Returns the value of theoverride_redirectfield.XSetWindowAttributesoverride_redirect(int value)Sets the specified value to theoverride_redirectfield.intsave_under()Returns the value of thesave_underfield.XSetWindowAttributessave_under(int value)Sets the specified value to thesave_underfield.XSetWindowAttributesset(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, int save_under, long event_mask, long do_not_propagate_mask, int override_redirect, long colormap, long cursor)Initializes this struct with the specified values.XSetWindowAttributesset(XSetWindowAttributes src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intwin_gravity()Returns the value of thewin_gravityfield.XSetWindowAttributeswin_gravity(int value)Sets the specified value to thewin_gravityfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
XSetWindowAttributes
public XSetWindowAttributes(java.nio.ByteBuffer container)
Creates aXSetWindowAttributesinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturns thesizeof(struct).
-
background_pixmap
public long background_pixmap()
Returns the value of thebackground_pixmapfield.
-
background_pixel
public long background_pixel()
Returns the value of thebackground_pixelfield.
-
border_pixmap
public long border_pixmap()
Returns the value of theborder_pixmapfield.
-
border_pixel
public long border_pixel()
Returns the value of theborder_pixelfield.
-
bit_gravity
public int bit_gravity()
Returns the value of thebit_gravityfield.
-
win_gravity
public int win_gravity()
Returns the value of thewin_gravityfield.
-
backing_store
public int backing_store()
Returns the value of thebacking_storefield.
-
backing_planes
public long backing_planes()
Returns the value of thebacking_planesfield.
-
backing_pixel
public long backing_pixel()
Returns the value of thebacking_pixelfield.
-
save_under
public int save_under()
Returns the value of thesave_underfield.
-
event_mask
public long event_mask()
Returns the value of theevent_maskfield.
-
do_not_propagate_mask
public long do_not_propagate_mask()
Returns the value of thedo_not_propagate_maskfield.
-
override_redirect
public int override_redirect()
Returns the value of theoverride_redirectfield.
-
colormap
public long colormap()
Returns the value of thecolormapfield.
-
cursor
public long cursor()
Returns the value of thecursorfield.
-
background_pixmap
public XSetWindowAttributes background_pixmap(long value)
Sets the specified value to thebackground_pixmapfield.
-
background_pixel
public XSetWindowAttributes background_pixel(long value)
Sets the specified value to thebackground_pixelfield.
-
border_pixmap
public XSetWindowAttributes border_pixmap(long value)
Sets the specified value to theborder_pixmapfield.
-
border_pixel
public XSetWindowAttributes border_pixel(long value)
Sets the specified value to theborder_pixelfield.
-
bit_gravity
public XSetWindowAttributes bit_gravity(int value)
Sets the specified value to thebit_gravityfield.
-
win_gravity
public XSetWindowAttributes win_gravity(int value)
Sets the specified value to thewin_gravityfield.
-
backing_store
public XSetWindowAttributes backing_store(int value)
Sets the specified value to thebacking_storefield.
-
backing_planes
public XSetWindowAttributes backing_planes(long value)
Sets the specified value to thebacking_planesfield.
-
backing_pixel
public XSetWindowAttributes backing_pixel(long value)
Sets the specified value to thebacking_pixelfield.
-
save_under
public XSetWindowAttributes save_under(int value)
Sets the specified value to thesave_underfield.
-
event_mask
public XSetWindowAttributes event_mask(long value)
Sets the specified value to theevent_maskfield.
-
do_not_propagate_mask
public XSetWindowAttributes do_not_propagate_mask(long value)
Sets the specified value to thedo_not_propagate_maskfield.
-
override_redirect
public XSetWindowAttributes override_redirect(int value)
Sets the specified value to theoverride_redirectfield.
-
colormap
public XSetWindowAttributes colormap(long value)
Sets the specified value to thecolormapfield.
-
cursor
public XSetWindowAttributes cursor(long value)
Sets the specified value to thecursorfield.
-
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, int save_under, long event_mask, long do_not_propagate_mask, int override_redirect, long colormap, long cursor)
Initializes this struct with the specified values.
-
nset
public XSetWindowAttributes nset(long struct)
Unsafe version ofset.
-
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 newXSetWindowAttributesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XSetWindowAttributes calloc()
Returns a newXSetWindowAttributesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XSetWindowAttributes create()
Returns a newXSetWindowAttributesinstance allocated withBufferUtils.
-
create
public static XSetWindowAttributes create(long address)
Returns a newXSetWindowAttributesinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static XSetWindowAttributes.Buffer malloc(int capacity)
Returns a newXSetWindowAttributes.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XSetWindowAttributes.Buffer calloc(int capacity)
Returns a newXSetWindowAttributes.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XSetWindowAttributes.Buffer create(int capacity)
Returns a newXSetWindowAttributes.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XSetWindowAttributes.Buffer create(long address, int capacity)
Create aXSetWindowAttributes.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static XSetWindowAttributes mallocStack()
Returns a newXSetWindowAttributesinstance allocated on the thread-localMemoryStack.
-
callocStack
public static XSetWindowAttributes callocStack()
Returns a newXSetWindowAttributesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static XSetWindowAttributes mallocStack(MemoryStack stack)
Returns a newXSetWindowAttributesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static XSetWindowAttributes callocStack(MemoryStack stack)
Returns a newXSetWindowAttributesinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static XSetWindowAttributes.Buffer callocStack(int capacity)
Returns a newXSetWindowAttributes.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static XSetWindowAttributes.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newXSetWindowAttributes.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-