public class XVisualInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XVisualInfo.Buffer
An array of
XVisualInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BITS_PER_RGB
The struct member offsets.
|
static int |
BLUE_MASK
The struct member offsets.
|
static int |
CLASS
The struct member offsets.
|
static int |
COLORMAP_SIZE
The struct member offsets.
|
static int |
DEPTH
The struct member offsets.
|
static int |
GREEN_MASK
The struct member offsets.
|
static int |
RED_MASK
The struct member offsets.
|
static int |
SCREEN
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VISUAL
The struct member offsets.
|
static int |
VISUALID
The struct member offsets.
|
| Constructor and Description |
|---|
XVisualInfo(java.nio.ByteBuffer container)
Creates a
XVisualInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
bits_per_rgb()
Returns the value of the
bits_per_rgb field. |
XVisualInfo |
bits_per_rgb(int value)
Sets the specified value to the
bits_per_rgb field. |
long |
blue_mask()
Returns the value of the
blue_mask field. |
XVisualInfo |
blue_mask(long value)
Sets the specified value to the
blue_mask field. |
static XVisualInfo |
calloc()
Returns a new
XVisualInfo instance allocated with memCalloc. |
static XVisualInfo.Buffer |
calloc(int capacity)
Returns a new
XVisualInfo.Buffer instance allocated with memCalloc. |
static XVisualInfo |
callocStack()
Returns a new
XVisualInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XVisualInfo.Buffer |
callocStack(int capacity)
Returns a new
XVisualInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XVisualInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XVisualInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XVisualInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XVisualInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
class$()
Returns the value of the
class field. |
XVisualInfo |
class$(int value)
Sets the specified value to the
class field. |
int |
colormap_size()
Returns the value of the
colormap_size field. |
XVisualInfo |
colormap_size(int value)
Sets the specified value to the
colormap_size field. |
static XVisualInfo |
create()
Returns a new
XVisualInfo instance allocated with BufferUtils. |
static XVisualInfo.Buffer |
create(int capacity)
Returns a new
XVisualInfo.Buffer instance allocated with BufferUtils. |
static XVisualInfo |
create(long address)
Returns a new
XVisualInfo instance for the specified memory address. |
static XVisualInfo.Buffer |
create(long address,
int capacity)
Create a
XVisualInfo.Buffer instance at the specified memory. |
static XVisualInfo |
createSafe(long address)
|
static XVisualInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
depth()
Returns the value of the
depth field. |
XVisualInfo |
depth(int value)
Sets the specified value to the
depth field. |
long |
green_mask()
Returns the value of the
green_mask field. |
XVisualInfo |
green_mask(long value)
Sets the specified value to the
green_mask field. |
static XVisualInfo |
malloc()
Returns a new
XVisualInfo instance allocated with memAlloc. |
static XVisualInfo.Buffer |
malloc(int capacity)
Returns a new
XVisualInfo.Buffer instance allocated with memAlloc. |
static XVisualInfo |
mallocStack()
Returns a new
XVisualInfo instance allocated on the thread-local MemoryStack. |
static XVisualInfo.Buffer |
mallocStack(int capacity)
Returns a new
XVisualInfo.Buffer instance allocated on the thread-local MemoryStack. |
static XVisualInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XVisualInfo.Buffer instance allocated on the specified MemoryStack. |
static XVisualInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XVisualInfo instance allocated on the specified MemoryStack. |
static int |
nbits_per_rgb(long struct)
Unsafe version of
bits_per_rgb(). |
static void |
nbits_per_rgb(long struct,
int value)
Unsafe version of
bits_per_rgb. |
static long |
nblue_mask(long struct)
Unsafe version of
blue_mask(). |
static void |
nblue_mask(long struct,
long value)
Unsafe version of
blue_mask. |
static int |
nclass$(long struct)
Unsafe version of
class$(). |
static void |
nclass$(long struct,
int value)
Unsafe version of
class$. |
static int |
ncolormap_size(long struct)
Unsafe version of
colormap_size(). |
static void |
ncolormap_size(long struct,
int value)
Unsafe version of
colormap_size. |
static int |
ndepth(long struct)
Unsafe version of
depth(). |
static void |
ndepth(long struct,
int value)
Unsafe version of
depth. |
static long |
ngreen_mask(long struct)
Unsafe version of
green_mask(). |
static void |
ngreen_mask(long struct,
long value)
Unsafe version of
green_mask. |
static long |
nred_mask(long struct)
Unsafe version of
red_mask(). |
static void |
nred_mask(long struct,
long value)
Unsafe version of
red_mask. |
static int |
nscreen(long struct)
Unsafe version of
screen(). |
static void |
nscreen(long struct,
int value)
Unsafe version of
screen. |
static Visual |
nvisual(long struct)
Unsafe version of
visual(). |
static void |
nvisual(long struct,
Visual value)
Unsafe version of
visual. |
static long |
nvisualid(long struct)
Unsafe version of
visualid(). |
static void |
nvisualid(long struct,
long value)
Unsafe version of
visualid. |
long |
red_mask()
Returns the value of the
red_mask field. |
XVisualInfo |
red_mask(long value)
Sets the specified value to the
red_mask field. |
int |
screen()
Returns the value of the
screen field. |
XVisualInfo |
screen(int value)
Sets the specified value to the
screen 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 be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
Visual |
visual()
Returns a
Visual view of the struct pointed to by the visual field. |
XVisualInfo |
visual(Visual value)
Sets the address of the specified
Visual to the visual field. |
long |
visualid()
Returns the value of the
visualid field. |
XVisualInfo |
visualid(long value)
Sets the specified value to the
visualid field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int VISUAL
public static final int VISUALID
public static final int SCREEN
public static final int DEPTH
public static final int CLASS
public static final int RED_MASK
public static final int GREEN_MASK
public static final int BLUE_MASK
public static final int COLORMAP_SIZE
public static final int BITS_PER_RGB
public XVisualInfo(java.nio.ByteBuffer container)
XVisualInfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long visualid()
visualid field.public int screen()
screen field.public int depth()
depth field.public int class$()
class field.public long red_mask()
red_mask field.public long green_mask()
green_mask field.public long blue_mask()
blue_mask field.public int colormap_size()
colormap_size field.public int bits_per_rgb()
bits_per_rgb field.public XVisualInfo visual(Visual value)
Visual to the visual field.public XVisualInfo visualid(long value)
visualid field.public XVisualInfo screen(int value)
screen field.public XVisualInfo depth(int value)
depth field.public XVisualInfo class$(int value)
class field.public XVisualInfo red_mask(long value)
red_mask field.public XVisualInfo green_mask(long value)
green_mask field.public XVisualInfo blue_mask(long value)
blue_mask field.public XVisualInfo colormap_size(int value)
colormap_size field.public XVisualInfo bits_per_rgb(int value)
bits_per_rgb field.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)
public XVisualInfo set(XVisualInfo src)
src - the source structpublic static XVisualInfo malloc()
XVisualInfo instance allocated with memAlloc. The instance must be explicitly freed.public static XVisualInfo calloc()
XVisualInfo instance allocated with memCalloc. The instance must be explicitly freed.public static XVisualInfo create()
XVisualInfo instance allocated with BufferUtils.public static XVisualInfo create(long address)
XVisualInfo instance for the specified memory address.@Nullable public static XVisualInfo createSafe(long address)
public static XVisualInfo.Buffer malloc(int capacity)
XVisualInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XVisualInfo.Buffer calloc(int capacity)
XVisualInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XVisualInfo.Buffer create(int capacity)
XVisualInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XVisualInfo.Buffer create(long address, int capacity)
XVisualInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XVisualInfo.Buffer createSafe(long address, int capacity)
public static XVisualInfo mallocStack()
XVisualInfo instance allocated on the thread-local MemoryStack.public static XVisualInfo callocStack()
XVisualInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XVisualInfo mallocStack(org.lwjgl.system.MemoryStack stack)
XVisualInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XVisualInfo callocStack(org.lwjgl.system.MemoryStack stack)
XVisualInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XVisualInfo.Buffer mallocStack(int capacity)
XVisualInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XVisualInfo.Buffer callocStack(int capacity)
XVisualInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XVisualInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XVisualInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XVisualInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XVisualInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nvisualid(long struct)
visualid().public static int nscreen(long struct)
screen().public static int ndepth(long struct)
depth().public static int nclass$(long struct)
class$().public static long nred_mask(long struct)
red_mask().public static long ngreen_mask(long struct)
green_mask().public static long nblue_mask(long struct)
blue_mask().public static int ncolormap_size(long struct)
colormap_size().public static int nbits_per_rgb(long struct)
bits_per_rgb().public static void nvisualid(long struct,
long value)
visualid.public static void nscreen(long struct,
int value)
screen.public static void ndepth(long struct,
int value)
depth.public static void nclass$(long struct,
int value)
class$.public static void nred_mask(long struct,
long value)
red_mask.public static void ngreen_mask(long struct,
long value)
green_mask.public static void nblue_mask(long struct,
long value)
blue_mask.public static void ncolormap_size(long struct,
int value)
colormap_size.public static void nbits_per_rgb(long struct,
int value)
bits_per_rgb.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.