Package org.lwjgl.system.linux
Class XVisualInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.XVisualInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class XVisualInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Information used by the visual utility routines to find desired visual type from the many visuals a display may support.Layout
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 Classes Modifier and Type Class Description static class
XVisualInfo.Buffer
An array ofXVisualInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BITS_PER_RGB
BLUE_MASK
CLASS
COLORMAP_SIZE
DEPTH
GREEN_MASK
RED_MASK
SCREENThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
VISUAL
VISUALIDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XVisualInfo(java.nio.ByteBuffer container)
Creates aXVisualInfo
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 int
bits_per_rgb()
XVisualInfo
bits_per_rgb(int value)
Sets the specified value to thebits_per_rgb
field.long
blue_mask()
XVisualInfo
blue_mask(long value)
Sets the specified value to theblue_mask
field.static XVisualInfo
calloc()
Returns a newXVisualInfo
instance allocated withmemCalloc
.static XVisualInfo.Buffer
calloc(int capacity)
Returns a newXVisualInfo.Buffer
instance allocated withmemCalloc
.static XVisualInfo.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXVisualInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XVisualInfo
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXVisualInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XVisualInfo
callocStack()
Deprecated.static XVisualInfo.Buffer
callocStack(int capacity)
Deprecated.static XVisualInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static XVisualInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.int
class$()
XVisualInfo
class$(int value)
Sets the specified value to theclass
field.int
colormap_size()
XVisualInfo
colormap_size(int value)
Sets the specified value to thecolormap_size
field.static XVisualInfo
create()
Returns a newXVisualInfo
instance allocated withBufferUtils
.static XVisualInfo.Buffer
create(int capacity)
Returns a newXVisualInfo.Buffer
instance allocated withBufferUtils
.static XVisualInfo
create(long address)
Returns a newXVisualInfo
instance for the specified memory address.static XVisualInfo.Buffer
create(long address, int capacity)
Create aXVisualInfo.Buffer
instance at the specified memory.static XVisualInfo
createSafe(long address)
static XVisualInfo.Buffer
createSafe(long address, int capacity)
int
depth()
XVisualInfo
depth(int value)
Sets the specified value to thedepth
field.long
green_mask()
XVisualInfo
green_mask(long value)
Sets the specified value to thegreen_mask
field.static XVisualInfo
malloc()
Returns a newXVisualInfo
instance allocated withmemAlloc
.static XVisualInfo.Buffer
malloc(int capacity)
Returns a newXVisualInfo.Buffer
instance allocated withmemAlloc
.static XVisualInfo.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXVisualInfo.Buffer
instance allocated on the specifiedMemoryStack
.static XVisualInfo
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXVisualInfo
instance allocated on the specifiedMemoryStack
.static XVisualInfo
mallocStack()
Deprecated.static XVisualInfo.Buffer
mallocStack(int capacity)
Deprecated.static XVisualInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static XVisualInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static int
nbits_per_rgb(long struct)
Unsafe version ofbits_per_rgb()
.static void
nbits_per_rgb(long struct, int value)
Unsafe version ofbits_per_rgb
.static long
nblue_mask(long struct)
Unsafe version ofblue_mask()
.static void
nblue_mask(long struct, long value)
Unsafe version ofblue_mask
.static int
nclass$(long struct)
Unsafe version ofclass$()
.static void
nclass$(long struct, int value)
Unsafe version ofclass$
.static int
ncolormap_size(long struct)
Unsafe version ofcolormap_size()
.static void
ncolormap_size(long struct, int value)
Unsafe version ofcolormap_size
.static int
ndepth(long struct)
Unsafe version ofdepth()
.static void
ndepth(long struct, int value)
Unsafe version ofdepth
.static long
ngreen_mask(long struct)
Unsafe version ofgreen_mask()
.static void
ngreen_mask(long struct, long value)
Unsafe version ofgreen_mask
.static long
nred_mask(long struct)
Unsafe version ofred_mask()
.static void
nred_mask(long struct, long value)
Unsafe version ofred_mask
.static int
nscreen(long struct)
Unsafe version ofscreen()
.static void
nscreen(long struct, int value)
Unsafe version ofscreen
.static Visual
nvisual(long struct)
Unsafe version ofvisual()
.static void
nvisual(long struct, Visual value)
Unsafe version ofvisual
.static long
nvisualid(long struct)
Unsafe version ofvisualid()
.static void
nvisualid(long struct, long value)
Unsafe version ofvisualid
.long
red_mask()
XVisualInfo
red_mask(long value)
Sets the specified value to thered_mask
field.int
screen()
XVisualInfo
screen(int value)
Sets the specified value to thescreen
field.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.XVisualInfo
set(XVisualInfo src)
Copies the specified struct data to this struct.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.Visual
visual()
XVisualInfo
visual(Visual value)
Sets the address of the specifiedVisual
to thevisual
field.long
visualid()
XVisualInfo
visualid(long value)
Sets the specified value to thevisualid
field.
-
-
-
Constructor Detail
-
XVisualInfo
public XVisualInfo(java.nio.ByteBuffer container)
Creates aXVisualInfo
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
-
visualid
public long visualid()
- Returns:
- the value of the
visualid
field.
-
screen
public int screen()
- Returns:
- the value of the
screen
field.
-
depth
public int depth()
- Returns:
- the value of the
depth
field.
-
class$
public int class$()
- Returns:
- the value of the
class
field.
-
red_mask
public long red_mask()
- Returns:
- the value of the
red_mask
field.
-
green_mask
public long green_mask()
- Returns:
- the value of the
green_mask
field.
-
blue_mask
public long blue_mask()
- Returns:
- the value of the
blue_mask
field.
-
colormap_size
public int colormap_size()
- Returns:
- the value of the
colormap_size
field.
-
bits_per_rgb
public int bits_per_rgb()
- Returns:
- the value of the
bits_per_rgb
field.
-
visual
public XVisualInfo visual(Visual value)
Sets the address of the specifiedVisual
to thevisual
field.
-
visualid
public XVisualInfo visualid(long value)
Sets the specified value to thevisualid
field.
-
screen
public XVisualInfo screen(int value)
Sets the specified value to thescreen
field.
-
depth
public XVisualInfo depth(int value)
Sets the specified value to thedepth
field.
-
class$
public XVisualInfo class$(int value)
Sets the specified value to theclass
field.
-
red_mask
public XVisualInfo red_mask(long value)
Sets the specified value to thered_mask
field.
-
green_mask
public XVisualInfo green_mask(long value)
Sets the specified value to thegreen_mask
field.
-
blue_mask
public XVisualInfo blue_mask(long value)
Sets the specified value to theblue_mask
field.
-
colormap_size
public XVisualInfo colormap_size(int value)
Sets the specified value to thecolormap_size
field.
-
bits_per_rgb
public XVisualInfo bits_per_rgb(int value)
Sets the specified value to thebits_per_rgb
field.
-
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
public XVisualInfo set(XVisualInfo src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static XVisualInfo malloc()
Returns a newXVisualInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static XVisualInfo calloc()
Returns a newXVisualInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static XVisualInfo create()
Returns a newXVisualInfo
instance allocated withBufferUtils
.
-
create
public static XVisualInfo create(long address)
Returns a newXVisualInfo
instance for the specified memory address.
-
createSafe
@Nullable public static XVisualInfo createSafe(long address)
-
malloc
public static XVisualInfo.Buffer malloc(int capacity)
Returns a newXVisualInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static XVisualInfo.Buffer calloc(int capacity)
Returns a newXVisualInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static XVisualInfo.Buffer create(int capacity)
Returns a newXVisualInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static XVisualInfo.Buffer create(long address, int capacity)
Create aXVisualInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static XVisualInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static XVisualInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static XVisualInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static XVisualInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static XVisualInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static XVisualInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static XVisualInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
mallocStack
@Deprecated public static XVisualInfo.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 XVisualInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
malloc
public static XVisualInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXVisualInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static XVisualInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXVisualInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static XVisualInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXVisualInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static XVisualInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXVisualInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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()
.
-
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
-
-