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.NativeResourceInformation 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 classXVisualInfo.BufferAn array ofXVisualInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBITS_PER_RGB
BLUE_MASK
CLASS
COLORMAP_SIZE
DEPTH
GREEN_MASK
RED_MASK
SCREENThe struct member offsets.static intSIZEOFThe struct size in bytes.static intVISUAL
VISUALIDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XVisualInfo(java.nio.ByteBuffer container)Creates aXVisualInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intbits_per_rgb()XVisualInfobits_per_rgb(int value)Sets the specified value to thebits_per_rgbfield.longblue_mask()XVisualInfoblue_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, org.lwjgl.system.MemoryStack stack)Returns a newXVisualInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XVisualInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newXVisualInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XVisualInfocallocStack()Deprecated.static XVisualInfo.BuffercallocStack(int capacity)Deprecated.static XVisualInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static XVisualInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intclass$()XVisualInfoclass$(int value)Sets the specified value to theclassfield.intcolormap_size()XVisualInfocolormap_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 XVisualInfocreateSafe(long address)static XVisualInfo.BuffercreateSafe(long address, int capacity)intdepth()XVisualInfodepth(int value)Sets the specified value to thedepthfield.longgreen_mask()XVisualInfogreen_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, org.lwjgl.system.MemoryStack stack)Returns a newXVisualInfo.Bufferinstance allocated on the specifiedMemoryStack.static XVisualInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newXVisualInfoinstance allocated on the specifiedMemoryStack.static XVisualInfomallocStack()Deprecated.static XVisualInfo.BuffermallocStack(int capacity)Deprecated.static XVisualInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static XVisualInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 voidnvisual(long struct, Visual value)Unsafe version ofvisual.static longnvisualid(long struct)Unsafe version ofvisualid().static voidnvisualid(long struct, long value)Unsafe version ofvisualid.longred_mask()XVisualInfored_mask(long value)Sets the specified value to thered_maskfield.intscreen()XVisualInfoscreen(int value)Sets the specified value to thescreenfield.XVisualInfoset(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.XVisualInfoset(XVisualInfo src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.Visualvisual()XVisualInfovisual(Visual value)Sets the address of the specifiedVisualto thevisualfield.longvisualid()XVisualInfovisualid(long value)Sets the specified value to thevisualidfield.
-
-
-
Constructor Detail
-
XVisualInfo
public XVisualInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public XVisualInfo visual(Visual value)
Sets the address of the specifiedVisualto thevisualfield.
-
visualid
public XVisualInfo visualid(long value)
Sets the specified value to thevisualidfield.
-
screen
public XVisualInfo screen(int value)
Sets the specified value to thescreenfield.
-
depth
public XVisualInfo depth(int value)
Sets the specified value to thedepthfield.
-
class$
public XVisualInfo class$(int value)
Sets the specified value to theclassfield.
-
red_mask
public XVisualInfo red_mask(long value)
Sets the specified value to thered_maskfield.
-
green_mask
public XVisualInfo green_mask(long value)
Sets the specified value to thegreen_maskfield.
-
blue_mask
public XVisualInfo blue_mask(long value)
Sets the specified value to theblue_maskfield.
-
colormap_size
public XVisualInfo colormap_size(int value)
Sets the specified value to thecolormap_sizefield.
-
bits_per_rgb
public XVisualInfo bits_per_rgb(int value)
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
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 newXVisualInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XVisualInfo calloc()
Returns a newXVisualInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XVisualInfo create()
Returns a newXVisualInfoinstance allocated withBufferUtils.
-
create
public static XVisualInfo create(long address)
Returns a newXVisualInfoinstance for the specified memory address.
-
createSafe
@Nullable public static XVisualInfo createSafe(long address)
-
malloc
public static XVisualInfo.Buffer malloc(int capacity)
Returns a newXVisualInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XVisualInfo.Buffer calloc(int capacity)
Returns a newXVisualInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XVisualInfo.Buffer create(int capacity)
Returns a newXVisualInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XVisualInfo.Buffer create(long address, int capacity)
Create aXVisualInfo.Bufferinstance 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 newXVisualInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XVisualInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXVisualInfoinstance allocated on the specifiedMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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
-
-