Package org.lwjgl.system.linux
Class XVisualInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XVisualInfo {
Visual * visual;
VisualID visualid;
int screen;
int depth;
int class;
unsigned long red_mask;
unsigned long green_mask;
unsigned long blue_mask;
int colormap_size;
int bits_per_rgb;
}-
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 size in bytes.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionXVisualInfo(ByteBuffer container) Creates aXVisualInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbits_per_rgb(int value) Sets the specified value to thebits_per_rgbfield.longblue_mask(long value) Sets the specified value to theblue_maskfield.static XVisualInfocalloc()Returns a newXVisualInfoinstance allocated withmemCalloc.static XVisualInfo.Buffercalloc(int capacity) Returns a newXVisualInfo.Bufferinstance allocated withmemCalloc.static XVisualInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newXVisualInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XVisualInfocalloc(MemoryStack stack) Returns a newXVisualInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intclass$()class$(int value) Sets the specified value to theclassfield.intcolormap_size(int value) Sets the specified value to thecolormap_sizefield.static XVisualInfocreate()Returns a newXVisualInfoinstance allocated withBufferUtils.static XVisualInfo.Buffercreate(int capacity) Returns a newXVisualInfo.Bufferinstance allocated withBufferUtils.static XVisualInfocreate(long address) Returns a newXVisualInfoinstance for the specified memory address.static XVisualInfo.Buffercreate(long address, int capacity) Create aXVisualInfo.Bufferinstance at the specified memory.static @Nullable XVisualInfocreateSafe(long address) static @Nullable XVisualInfo.BuffercreateSafe(long address, int capacity) intdepth()depth(int value) Sets the specified value to thedepthfield.longgreen_mask(long value) Sets the specified value to thegreen_maskfield.static XVisualInfomalloc()Returns a newXVisualInfoinstance allocated withmemAlloc.static XVisualInfo.Buffermalloc(int capacity) Returns a newXVisualInfo.Bufferinstance allocated withmemAlloc.static XVisualInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newXVisualInfo.Bufferinstance allocated on the specifiedMemoryStack.static XVisualInfomalloc(MemoryStack stack) Returns a newXVisualInfoinstance allocated on the specifiedMemoryStack.static intnbits_per_rgb(long struct) Unsafe version ofbits_per_rgb().static voidnbits_per_rgb(long struct, int value) Unsafe version ofbits_per_rgb.static longnblue_mask(long struct) Unsafe version ofblue_mask().static voidnblue_mask(long struct, long value) Unsafe version ofblue_mask.static intnclass$(long struct) Unsafe version ofclass$().static voidnclass$(long struct, int value) Unsafe version ofclass$.static intncolormap_size(long struct) Unsafe version ofcolormap_size().static voidncolormap_size(long struct, int value) Unsafe version ofcolormap_size.static intndepth(long struct) Unsafe version ofdepth().static voidndepth(long struct, int value) Unsafe version ofdepth.static longngreen_mask(long struct) Unsafe version ofgreen_mask().static voidngreen_mask(long struct, long value) Unsafe version ofgreen_mask.static longnred_mask(long struct) Unsafe version ofred_mask().static voidnred_mask(long struct, long value) Unsafe version ofred_mask.static intnscreen(long struct) Unsafe version ofscreen().static voidnscreen(long struct, int value) Unsafe version ofscreen.static Visualnvisual(long struct) Unsafe version ofvisual().static voidUnsafe version ofvisual.static longnvisualid(long struct) Unsafe version ofvisualid().static voidnvisualid(long struct, long value) Unsafe version ofvisualid.longred_mask()red_mask(long value) Sets the specified value to thered_maskfield.intscreen()screen(int value) Sets the specified value to thescreenfield.set(Visual visual, long visualid, int screen, int depth, int class$, long red_mask, long green_mask, long blue_mask, int colormap_size, int bits_per_rgb) Initializes this struct with the specified values.set(XVisualInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.visual()Sets the address of the specifiedVisualto thevisualfield.longvisualid()visualid(long value) Sets the specified value to thevisualidfield.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. -
VISUAL
public static final int VISUALThe struct member offsets. -
VISUALID
public static final int VISUALIDThe struct member offsets. -
SCREEN
public static final int SCREENThe struct member offsets. -
DEPTH
public static final int DEPTHThe struct member offsets. -
CLASS
public static final int CLASSThe struct member offsets. -
RED_MASK
public static final int RED_MASKThe struct member offsets. -
GREEN_MASK
public static final int GREEN_MASKThe struct member offsets. -
BLUE_MASK
public static final int BLUE_MASKThe struct member offsets. -
COLORMAP_SIZE
public static final int COLORMAP_SIZEThe struct member offsets. -
BITS_PER_RGB
public static final int BITS_PER_RGBThe struct member offsets.
-
-
Constructor Details
-
XVisualInfo
Creates aXVisualInfoinstance 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<XVisualInfo>
-
visual
- Returns:
- a
Visualview of the struct pointed to by thevisualfield.
-
visualid
public long visualid()- Returns:
- the value of the
visualidfield.
-
screen
public int screen()- Returns:
- the value of the
screenfield.
-
depth
public int depth()- Returns:
- the value of the
depthfield.
-
class$
public int class$()- Returns:
- the value of the
classfield.
-
red_mask
public long red_mask()- Returns:
- the value of the
red_maskfield.
-
green_mask
public long green_mask()- Returns:
- the value of the
green_maskfield.
-
blue_mask
public long blue_mask()- Returns:
- the value of the
blue_maskfield.
-
colormap_size
public int colormap_size()- Returns:
- the value of the
colormap_sizefield.
-
bits_per_rgb
public int bits_per_rgb()- Returns:
- the value of the
bits_per_rgbfield.
-
visual
Sets the address of the specifiedVisualto thevisualfield. -
visualid
Sets the specified value to thevisualidfield. -
screen
Sets the specified value to thescreenfield. -
depth
Sets the specified value to thedepthfield. -
class$
Sets the specified value to theclassfield. -
red_mask
Sets the specified value to thered_maskfield. -
green_mask
Sets the specified value to thegreen_maskfield. -
blue_mask
Sets the specified value to theblue_maskfield. -
colormap_size
Sets the specified value to thecolormap_sizefield. -
bits_per_rgb
Sets the specified value to thebits_per_rgbfield. -
set
public XVisualInfo set(Visual visual, long visualid, int screen, int depth, int class$, long red_mask, long green_mask, long blue_mask, int colormap_size, int bits_per_rgb) 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 newXVisualInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXVisualInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXVisualInfoinstance allocated withBufferUtils. -
create
Returns a newXVisualInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXVisualInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXVisualInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXVisualInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXVisualInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXVisualInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXVisualInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXVisualInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXVisualInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nvisual
Unsafe version ofvisual(). -
nvisualid
public static long nvisualid(long struct) Unsafe version ofvisualid(). -
nscreen
public static int nscreen(long struct) Unsafe version ofscreen(). -
ndepth
public static int ndepth(long struct) Unsafe version ofdepth(). -
nclass$
public static int nclass$(long struct) Unsafe version ofclass$(). -
nred_mask
public static long nred_mask(long struct) Unsafe version ofred_mask(). -
ngreen_mask
public static long ngreen_mask(long struct) Unsafe version ofgreen_mask(). -
nblue_mask
public static long nblue_mask(long struct) Unsafe version ofblue_mask(). -
ncolormap_size
public static int ncolormap_size(long struct) Unsafe version ofcolormap_size(). -
nbits_per_rgb
public static int nbits_per_rgb(long struct) Unsafe version ofbits_per_rgb(). -
nvisual
Unsafe version ofvisual. -
nvisualid
public static void nvisualid(long struct, long value) Unsafe version ofvisualid. -
nscreen
public static void nscreen(long struct, int value) Unsafe version ofscreen. -
ndepth
public static void ndepth(long struct, int value) Unsafe version ofdepth. -
nclass$
public static void nclass$(long struct, int value) Unsafe version ofclass$. -
nred_mask
public static void nred_mask(long struct, long value) Unsafe version ofred_mask. -
ngreen_mask
public static void ngreen_mask(long struct, long value) Unsafe version ofgreen_mask. -
nblue_mask
public static void nblue_mask(long struct, long value) Unsafe version ofblue_mask. -
ncolormap_size
public static void ncolormap_size(long struct, int value) Unsafe version ofcolormap_size. -
nbits_per_rgb
public static void nbits_per_rgb(long struct, int value) Unsafe version ofbits_per_rgb. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-