Top Description Inners Fields Constructors Methods
org.lwjgl.system.linux

public Class Visual

extends Struct<Visual>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Visual structure; contains information about colormapping possible.

Layout


struct Visual {
    void * ext_data;
    VisualID visualid;
    int class;
    unsigned long red_mask;
    unsigned long green_mask;
    unsigned long blue_mask;
    int bits_per_rgb;
    int map_entries;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Visual.Buffer

An array of Visual structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BITS_PER_RGB

The struct member offsets.

public static final int
BLUE_MASK

The struct member offsets.

public static final int
CLASS

The struct member offsets.

public static final int
EXT_DATA

The struct member offsets.

public static final int
GREEN_MASK

The struct member offsets.

public static final int
MAP_ENTRIES

The struct member offsets.

public static final int
RED_MASK

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
VISUALID

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
Visual(long address, ByteBuffer container)

public
Visual(ByteBuffer container)

Creates a Visual instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the bits_per_rgb field.
bits_per_rgb
()

public Visual
bits_per_rgb(int value)

Sets the specified value to the bits_per_rgb field.

public long

Returns:

the value of the blue_mask field.
blue_mask
()

public Visual
blue_mask(long value)

Sets the specified value to the blue_mask field.

public static Visual
calloc()

Returns a new Visual instance allocated with memCalloc.

public static Visual.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new Visual.Buffer instance allocated with memCalloc.

public static Visual
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new Visual instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static Visual.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new Visual.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static Visual
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static Visual
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static Visual.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static Visual.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int

Returns:

the value of the class field.
class$
()

public Visual
class$(int value)

Sets the specified value to the class field.

protected Visual
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static Visual
create()

Returns a new Visual instance allocated with BufferUtils.

public static Visual
create(long address)

Returns a new Visual instance for the specified memory address.

public static Visual.Buffer
create(int
the buffer capacity
capacity
)

Returns a new Visual.Buffer instance allocated with BufferUtils.

public static Visual.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a Visual.Buffer instance at the specified memory.

public static Visual
createSafe(long address)

Like create, but returns null if address is NULL.

public static Visual.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long

Returns:

the value of the ext_data field.
ext_data
()

public Visual
ext_data(long value)

Sets the specified value to the ext_data field.

public long

Returns:

the value of the green_mask field.
green_mask
()

public Visual
green_mask(long value)

Sets the specified value to the green_mask field.

public static Visual
malloc()

Returns a new Visual instance allocated with memAlloc.

public static Visual.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new Visual.Buffer instance allocated with memAlloc.

public static Visual
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new Visual instance allocated on the specified MemoryStack.

public static Visual.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new Visual.Buffer instance allocated on the specified MemoryStack.

public static Visual
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static Visual
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static Visual.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static Visual.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int

Returns:

the value of the map_entries field.
map_entries
()

public Visual
map_entries(int value)

Sets the specified value to the map_entries field.

public static int
nbits_per_rgb(long struct)

Unsafe version of bits_per_rgb.

public static void
nbits_per_rgb(long struct, int value)

Unsafe version of bits_per_rgb.

public static long
nblue_mask(long struct)

Unsafe version of blue_mask.

public static void
nblue_mask(long struct, long value)

Unsafe version of blue_mask.

public static int
nclass$(long struct)

Unsafe version of class$.

public static void
nclass$(long struct, int value)

Unsafe version of class$.

public static long
next_data(long struct)

Unsafe version of ext_data.

public static void
next_data(long struct, long value)

Unsafe version of ext_data.

public static long
ngreen_mask(long struct)

Unsafe version of green_mask.

public static void
ngreen_mask(long struct, long value)

Unsafe version of green_mask.

public static int
nmap_entries(long struct)

Unsafe version of map_entries.

public static void
nmap_entries(long struct, int value)

Unsafe version of map_entries.

public static long
nred_mask(long struct)

Unsafe version of red_mask.

public static void
nred_mask(long struct, long value)

Unsafe version of red_mask.

public static long
nvisualid(long struct)

Unsafe version of visualid.

public static void
nvisualid(long struct, long value)

Unsafe version of visualid.

public long

Returns:

the value of the red_mask field.
red_mask
()

public Visual
red_mask(long value)

Sets the specified value to the red_mask field.

public Visual
set(long ext_data, long visualid, int class$, long red_mask, long green_mask, long blue_mask, int bits_per_rgb, int map_entries)

Initializes this struct with the specified values.

public Visual

Returns:

this struct
set
(Visual
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public long

Returns:

the value of the visualid field.
visualid
()

public Visual
visualid(long value)

Sets the specified value to the visualid field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

BITS_PER_RGBback to summary
public static final int BITS_PER_RGB

The struct member offsets.

BLUE_MASKback to summary
public static final int BLUE_MASK

The struct member offsets.

CLASSback to summary
public static final int CLASS

The struct member offsets.

EXT_DATAback to summary
public static final int EXT_DATA

The struct member offsets.

GREEN_MASKback to summary
public static final int GREEN_MASK

The struct member offsets.

MAP_ENTRIESback to summary
public static final int MAP_ENTRIES

The struct member offsets.

RED_MASKback to summary
public static final int RED_MASK

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

VISUALIDback to summary
public static final int VISUALID

The struct member offsets.

Constructor Detail

Visualback to summary
protected Visual(long address, ByteBuffer container)
Visualback to summary
public Visual(ByteBuffer container)

Creates a Visual 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.

Method Detail

bits_per_rgbback to summary
public int bits_per_rgb()
Returns:int

the value of the bits_per_rgb field.

bits_per_rgbback to summary
public Visual bits_per_rgb(int value)

Sets the specified value to the bits_per_rgb field.

blue_maskback to summary
public long blue_mask()
Returns:long

the value of the blue_mask field.

Annotations
@NativeType:unsigned long
blue_maskback to summary
public Visual blue_mask(long value)

Sets the specified value to the blue_mask field.

callocback to summary
public static Visual calloc()

Returns a new Visual instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static Visual.Buffer calloc(int capacity)

Returns a new Visual.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static Visual calloc(MemoryStack stack)

Returns a new Visual instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static Visual.Buffer calloc(int capacity, MemoryStack stack)

Returns a new Visual.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static Visual callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static Visual callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static Visual.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static Visual.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
class$back to summary
public int class$()
Returns:int

the value of the class field.

class$back to summary
public Visual class$(int value)

Sets the specified value to the class field.

createback to summary
protected Visual create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static Visual create()

Returns a new Visual instance allocated with BufferUtils.

createback to summary
public static Visual create(long address)

Returns a new Visual instance for the specified memory address.

createback to summary
public static Visual.Buffer create(int capacity)

Returns a new Visual.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static Visual.Buffer create(long address, int capacity)

Create a Visual.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static Visual createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static Visual.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
ext_databack to summary
public long ext_data()
Returns:long

the value of the ext_data field.

Annotations
@NativeType:void *
ext_databack to summary
public Visual ext_data(long value)

Sets the specified value to the ext_data field.

green_maskback to summary
public long green_mask()
Returns:long

the value of the green_mask field.

Annotations
@NativeType:unsigned long
green_maskback to summary
public Visual green_mask(long value)

Sets the specified value to the green_mask field.

mallocback to summary
public static Visual malloc()

Returns a new Visual instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static Visual.Buffer malloc(int capacity)

Returns a new Visual.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static Visual malloc(MemoryStack stack)

Returns a new Visual instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static Visual.Buffer malloc(int capacity, MemoryStack stack)

Returns a new Visual.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static Visual mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static Visual mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static Visual.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static Visual.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
map_entriesback to summary
public int map_entries()
Returns:int

the value of the map_entries field.

map_entriesback to summary
public Visual map_entries(int value)

Sets the specified value to the map_entries field.

nbits_per_rgbback to summary
public static int nbits_per_rgb(long struct)

Unsafe version of bits_per_rgb.

nbits_per_rgbback to summary
public static void nbits_per_rgb(long struct, int value)

Unsafe version of bits_per_rgb.

nblue_maskback to summary
public static long nblue_mask(long struct)

Unsafe version of blue_mask.

nblue_maskback to summary
public static void nblue_mask(long struct, long value)

Unsafe version of blue_mask.

nclass$back to summary
public static int nclass$(long struct)

Unsafe version of class$.

nclass$back to summary
public static void nclass$(long struct, int value)

Unsafe version of class$.

next_databack to summary
public static long next_data(long struct)

Unsafe version of ext_data.

next_databack to summary
public static void next_data(long struct, long value)

Unsafe version of ext_data.

ngreen_maskback to summary
public static long ngreen_mask(long struct)

Unsafe version of green_mask.

ngreen_maskback to summary
public static void ngreen_mask(long struct, long value)

Unsafe version of green_mask.

nmap_entriesback to summary
public static int nmap_entries(long struct)

Unsafe version of map_entries.

nmap_entriesback to summary
public static void nmap_entries(long struct, int value)

Unsafe version of map_entries.

nred_maskback to summary
public static long nred_mask(long struct)

Unsafe version of red_mask.

nred_maskback to summary
public static void nred_mask(long struct, long value)

Unsafe version of red_mask.

nvisualidback to summary
public static long nvisualid(long struct)

Unsafe version of visualid.

nvisualidback to summary
public static void nvisualid(long struct, long value)

Unsafe version of visualid.

red_maskback to summary
public long red_mask()
Returns:long

the value of the red_mask field.

Annotations
@NativeType:unsigned long
red_maskback to summary
public Visual red_mask(long value)

Sets the specified value to the red_mask field.

setback to summary
public Visual set(long ext_data, long visualid, int class$, long red_mask, long green_mask, long blue_mask, int bits_per_rgb, int map_entries)

Initializes this struct with the specified values.

setback to summary
public Visual set(Visual src)

Copies the specified struct data to this struct.

Parameters
src:Visual

the source struct

Returns:Visual

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
visualidback to summary
public long visualid()
Returns:long

the value of the visualid field.

Annotations
@NativeType:VisualID
visualidback to summary
public Visual visualid(long value)

Sets the specified value to the visualid field.

org.lwjgl.system.linux back to summary

public Class Visual.Buffer

extends StructBuffer<Visual, Visual.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of Visual structs.

Field Summary

Modifier and TypeField and Description
private static final Visual

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new Visual.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the bits_per_rgb field.
bits_per_rgb
()

public Visual.Buffer
bits_per_rgb(int value)

Sets the specified value to the bits_per_rgb field.

public long

Returns:

the value of the blue_mask field.
blue_mask
()

public Visual.Buffer
blue_mask(long value)

Sets the specified value to the blue_mask field.

public int

Returns:

the value of the class field.
class$
()

public Visual.Buffer
class$(int value)

Sets the specified value to the class field.

public long

Returns:

the value of the ext_data field.
ext_data
()

public Visual.Buffer
ext_data(long value)

Sets the specified value to the ext_data field.

protected Visual
public long

Returns:

the value of the green_mask field.
green_mask
()

public Visual.Buffer
green_mask(long value)

Sets the specified value to the green_mask field.

public int

Returns:

the value of the map_entries field.
map_entries
()

public Visual.Buffer
map_entries(int value)

Sets the specified value to the map_entries field.

public long

Returns:

the value of the red_mask field.
red_mask
()

public Visual.Buffer
red_mask(long value)

Sets the specified value to the red_mask field.

protected Visual.Buffer
public long

Returns:

the value of the visualid field.
visualid
()

public Visual.Buffer
visualid(long value)

Sets the specified value to the visualid field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final Visual ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new Visual.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by Visual#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

bits_per_rgbback to summary
public int bits_per_rgb()
Returns:int

the value of the bits_per_rgb field.

bits_per_rgbback to summary
public Visual.Buffer bits_per_rgb(int value)

Sets the specified value to the bits_per_rgb field.

blue_maskback to summary
public long blue_mask()
Returns:long

the value of the blue_mask field.

Annotations
@NativeType:unsigned long
blue_maskback to summary
public Visual.Buffer blue_mask(long value)

Sets the specified value to the blue_mask field.

class$back to summary
public int class$()
Returns:int

the value of the class field.

class$back to summary
public Visual.Buffer class$(int value)

Sets the specified value to the class field.

ext_databack to summary
public long ext_data()
Returns:long

the value of the ext_data field.

Annotations
@NativeType:void *
ext_databack to summary
public Visual.Buffer ext_data(long value)

Sets the specified value to the ext_data field.

getElementFactoryback to summary
protected Visual getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
green_maskback to summary
public long green_mask()
Returns:long

the value of the green_mask field.

Annotations
@NativeType:unsigned long
green_maskback to summary
public Visual.Buffer green_mask(long value)

Sets the specified value to the green_mask field.

map_entriesback to summary
public int map_entries()
Returns:int

the value of the map_entries field.

map_entriesback to summary
public Visual.Buffer map_entries(int value)

Sets the specified value to the map_entries field.

red_maskback to summary
public long red_mask()
Returns:long

the value of the red_mask field.

Annotations
@NativeType:unsigned long
red_maskback to summary
public Visual.Buffer red_mask(long value)

Sets the specified value to the red_mask field.

selfback to summary
protected Visual.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
visualidback to summary
public long visualid()
Returns:long

the value of the visualid field.

Annotations
@NativeType:VisualID
visualidback to summary
public Visual.Buffer visualid(long value)

Sets the specified value to the visualid field.