Package org.lwjgl.system.linux
Class XSetWindowAttributes
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXSetWindowAttributes(ByteBuffer container) Creates aXSetWindowAttributesinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongbackground_pixel(long value) Sets the specified value to thebackground_pixelfield.longbackground_pixmap(long value) Sets the specified value to thebackground_pixmapfield.longbacking_pixel(long value) Sets the specified value to thebacking_pixelfield.longbacking_planes(long value) Sets the specified value to thebacking_planesfield.intbacking_store(int value) Sets the specified value to thebacking_storefield.intbit_gravity(int value) Sets the specified value to thebit_gravityfield.longborder_pixel(long value) Sets the specified value to theborder_pixelfield.longborder_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 XSetWindowAttributes.Buffercalloc(int capacity, MemoryStack stack) Returns a newXSetWindowAttributes.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XSetWindowAttributescalloc(MemoryStack stack) Returns a newXSetWindowAttributesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XSetWindowAttributesDeprecated.static XSetWindowAttributes.BuffercallocStack(int capacity) Deprecated.static XSetWindowAttributes.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static XSetWindowAttributescallocStack(MemoryStack stack) Deprecated.longcolormap()colormap(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.static XSetWindowAttributes.Buffercreate(long address, int capacity) Create aXSetWindowAttributes.Bufferinstance at the specified memory.static @Nullable XSetWindowAttributescreateSafe(long address) static @Nullable XSetWindowAttributes.BuffercreateSafe(long address, int capacity) longcursor()cursor(long value) Sets the specified value to thecursorfield.longdo_not_propagate_mask(long value) Sets the specified value to thedo_not_propagate_maskfield.longevent_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 XSetWindowAttributes.Buffermalloc(int capacity, MemoryStack stack) Returns a newXSetWindowAttributes.Bufferinstance allocated on the specifiedMemoryStack.static XSetWindowAttributesmalloc(MemoryStack stack) Returns a newXSetWindowAttributesinstance allocated on the specifiedMemoryStack.static XSetWindowAttributesDeprecated.static XSetWindowAttributes.BuffermallocStack(int capacity) Deprecated.static XSetWindowAttributes.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static XSetWindowAttributesmallocStack(MemoryStack stack) Deprecated.static longnbackground_pixel(long struct) Unsafe version ofbackground_pixel().static voidnbackground_pixel(long struct, long value) Unsafe version ofbackground_pixel.static longnbackground_pixmap(long struct) Unsafe version ofbackground_pixmap().static voidnbackground_pixmap(long struct, long value) Unsafe version ofbackground_pixmap.static longnbacking_pixel(long struct) Unsafe version ofbacking_pixel().static voidnbacking_pixel(long struct, long value) Unsafe version ofbacking_pixel.static longnbacking_planes(long struct) Unsafe version ofbacking_planes().static voidnbacking_planes(long struct, long value) Unsafe version ofbacking_planes.static intnbacking_store(long struct) Unsafe version ofbacking_store().static voidnbacking_store(long struct, int value) Unsafe version ofbacking_store.static intnbit_gravity(long struct) Unsafe version ofbit_gravity().static voidnbit_gravity(long struct, int value) Unsafe version ofbit_gravity.static longnborder_pixel(long struct) Unsafe version ofborder_pixel().static voidnborder_pixel(long struct, long value) Unsafe version ofborder_pixel.static longnborder_pixmap(long struct) Unsafe version ofborder_pixmap().static voidnborder_pixmap(long struct, long value) Unsafe version ofborder_pixmap.static longncolormap(long struct) Unsafe version ofcolormap().static voidncolormap(long struct, long value) Unsafe version ofcolormap.static longncursor(long struct) Unsafe version ofcursor().static voidncursor(long struct, long value) Unsafe version ofcursor.static longndo_not_propagate_mask(long struct) Unsafe version ofdo_not_propagate_mask().static voidndo_not_propagate_mask(long struct, long value) Unsafe version ofdo_not_propagate_mask.static longnevent_mask(long struct) Unsafe version ofevent_mask().static voidnevent_mask(long struct, long value) Unsafe version ofevent_mask.static intnoverride_redirect(long struct) Unsafe version ofoverride_redirect().static voidnoverride_redirect(long struct, int value) Unsafe version ofoverride_redirect.static intnsave_under(long struct) Unsafe version ofsave_under().static voidnsave_under(long struct, int value) Unsafe version ofsave_under.static intnwin_gravity(long struct) Unsafe version ofwin_gravity().static voidnwin_gravity(long struct, int value) Unsafe version ofwin_gravity.booleanoverride_redirect(boolean value) Sets the specified value to theoverride_redirectfield.booleansave_under(boolean value) Sets the specified value to thesave_underfield.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(XSetWindowAttributes src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intwin_gravity(int value) Sets the specified value to thewin_gravityfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
BACKGROUND_PIXMAP
public static final int BACKGROUND_PIXMAPThe struct member offsets. -
BACKGROUND_PIXEL
public static final int BACKGROUND_PIXELThe struct member offsets. -
BORDER_PIXMAP
public static final int BORDER_PIXMAPThe struct member offsets. -
BORDER_PIXEL
public static final int BORDER_PIXELThe struct member offsets. -
BIT_GRAVITY
public static final int BIT_GRAVITYThe struct member offsets. -
WIN_GRAVITY
public static final int WIN_GRAVITYThe struct member offsets. -
BACKING_STORE
public static final int BACKING_STOREThe struct member offsets. -
BACKING_PLANES
public static final int BACKING_PLANESThe struct member offsets. -
BACKING_PIXEL
public static final int BACKING_PIXELThe struct member offsets. -
SAVE_UNDER
public static final int SAVE_UNDERThe struct member offsets. -
EVENT_MASK
public static final int EVENT_MASKThe struct member offsets. -
DO_NOT_PROPAGATE_MASK
public static final int DO_NOT_PROPAGATE_MASKThe struct member offsets. -
OVERRIDE_REDIRECT
public static final int OVERRIDE_REDIRECTThe struct member offsets. -
COLORMAP
public static final int COLORMAPThe struct member offsets. -
CURSOR
public static final int CURSORThe struct member offsets.
-
-
Constructor Details
-
XSetWindowAttributes
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XSetWindowAttributes>
-
background_pixmap
public long background_pixmap()- Returns:
- the value of the
background_pixmapfield.
-
background_pixel
public long background_pixel()- Returns:
- the value of the
background_pixelfield.
-
border_pixmap
public long border_pixmap()- Returns:
- the value of the
border_pixmapfield.
-
border_pixel
public long border_pixel()- Returns:
- the value of the
border_pixelfield.
-
bit_gravity
public int bit_gravity()- Returns:
- the value of the
bit_gravityfield.
-
win_gravity
public int win_gravity()- Returns:
- the value of the
win_gravityfield.
-
backing_store
public int backing_store()- Returns:
- the value of the
backing_storefield.
-
backing_planes
public long backing_planes()- Returns:
- the value of the
backing_planesfield.
-
backing_pixel
public long backing_pixel()- Returns:
- the value of the
backing_pixelfield.
-
save_under
public boolean save_under()- Returns:
- the value of the
save_underfield.
-
event_mask
public long event_mask()- Returns:
- the value of the
event_maskfield.
-
do_not_propagate_mask
public long do_not_propagate_mask()- Returns:
- the value of the
do_not_propagate_maskfield.
-
override_redirect
public boolean override_redirect()- Returns:
- the value of the
override_redirectfield.
-
colormap
public long colormap()- Returns:
- the value of the
colormapfield.
-
cursor
public long cursor()- Returns:
- the value of the
cursorfield.
-
background_pixmap
Sets the specified value to thebackground_pixmapfield. -
background_pixel
Sets the specified value to thebackground_pixelfield. -
border_pixmap
Sets the specified value to theborder_pixmapfield. -
border_pixel
Sets the specified value to theborder_pixelfield. -
bit_gravity
Sets the specified value to thebit_gravityfield. -
win_gravity
Sets the specified value to thewin_gravityfield. -
backing_store
Sets the specified value to thebacking_storefield. -
backing_planes
Sets the specified value to thebacking_planesfield. -
backing_pixel
Sets the specified value to thebacking_pixelfield. -
save_under
Sets the specified value to thesave_underfield. -
event_mask
Sets the specified value to theevent_maskfield. -
do_not_propagate_mask
Sets the specified value to thedo_not_propagate_maskfield. -
override_redirect
Sets the specified value to theoverride_redirectfield. -
colormap
Sets the specified value to thecolormapfield. -
cursor
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, 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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXSetWindowAttributesinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXSetWindowAttributesinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXSetWindowAttributesinstance allocated withBufferUtils. -
create
Returns a newXSetWindowAttributesinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXSetWindowAttributes.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXSetWindowAttributes.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXSetWindowAttributes.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXSetWindowAttributes.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newXSetWindowAttributesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXSetWindowAttributesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXSetWindowAttributes.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXSetWindowAttributes.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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.
-