Package org.lwjgl.system.linux
Class Visual
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 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 size in bytes.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
ConstructorsConstructorDescriptionVisual(ByteBuffer container) Creates aVisualinstance 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 Visualcalloc()Returns a newVisualinstance allocated withmemCalloc.static Visual.Buffercalloc(int capacity) Returns a newVisual.Bufferinstance allocated withmemCalloc.static Visual.Buffercalloc(int capacity, MemoryStack stack) Returns a newVisual.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static Visualcalloc(MemoryStack stack) Returns a newVisualinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intclass$()class$(int value) Sets the specified value to theclassfield.static Visualcreate()Returns a newVisualinstance allocated withBufferUtils.static Visual.Buffercreate(int capacity) Returns a newVisual.Bufferinstance allocated withBufferUtils.static Visualcreate(long address) Returns a newVisualinstance for the specified memory address.static Visual.Buffercreate(long address, int capacity) Create aVisual.Bufferinstance at the specified memory.static @Nullable VisualcreateSafe(long address) static @Nullable Visual.BuffercreateSafe(long address, int capacity) longext_data()ext_data(long value) Sets the specified value to theext_datafield.longgreen_mask(long value) Sets the specified value to thegreen_maskfield.static Visualmalloc()Returns a newVisualinstance allocated withmemAlloc.static Visual.Buffermalloc(int capacity) Returns a newVisual.Bufferinstance allocated withmemAlloc.static Visual.Buffermalloc(int capacity, MemoryStack stack) Returns a newVisual.Bufferinstance allocated on the specifiedMemoryStack.static Visualmalloc(MemoryStack stack) Returns a newVisualinstance allocated on the specifiedMemoryStack.intmap_entries(int value) Sets the specified value to themap_entriesfield.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 longnext_data(long struct) Unsafe version ofext_data().static voidnext_data(long struct, long value) Unsafe version ofext_data.static longngreen_mask(long struct) Unsafe version ofgreen_mask().static voidngreen_mask(long struct, long value) Unsafe version ofgreen_mask.static intnmap_entries(long struct) Unsafe version ofmap_entries().static voidnmap_entries(long struct, int value) Unsafe version ofmap_entries.static longnred_mask(long struct) Unsafe version ofred_mask().static voidnred_mask(long struct, long value) Unsafe version ofred_mask.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.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.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
EXT_DATA
public static final int EXT_DATAThe struct member offsets. -
VISUALID
public static final int VISUALIDThe 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. -
BITS_PER_RGB
public static final int BITS_PER_RGBThe struct member offsets. -
MAP_ENTRIES
public static final int MAP_ENTRIESThe struct member offsets.
-
-
Constructor Details
-
Visual
Creates aVisualinstance 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). -
ext_data
public long ext_data()- Returns:
- the value of the
ext_datafield.
-
visualid
public long visualid()- Returns:
- the value of the
visualidfield.
-
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.
-
bits_per_rgb
public int bits_per_rgb()- Returns:
- the value of the
bits_per_rgbfield.
-
map_entries
public int map_entries()- Returns:
- the value of the
map_entriesfield.
-
ext_data
Sets the specified value to theext_datafield. -
visualid
Sets the specified value to thevisualidfield. -
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. -
bits_per_rgb
Sets the specified value to thebits_per_rgbfield. -
map_entries
Sets the specified value to themap_entriesfield. -
set
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. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVisualinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVisualinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVisualinstance allocated withBufferUtils. -
create
Returns a newVisualinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVisual.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVisual.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVisual.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVisual.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVisualinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVisualinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVisual.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVisual.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
next_data
public static long next_data(long struct) Unsafe version ofext_data(). -
nvisualid
public static long nvisualid(long struct) Unsafe version ofvisualid(). -
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(). -
nbits_per_rgb
public static int nbits_per_rgb(long struct) Unsafe version ofbits_per_rgb(). -
nmap_entries
public static int nmap_entries(long struct) Unsafe version ofmap_entries(). -
next_data
public static void next_data(long struct, long value) Unsafe version ofext_data. -
nvisualid
public static void nvisualid(long struct, long value) Unsafe version ofvisualid. -
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. -
nbits_per_rgb
public static void nbits_per_rgb(long struct, int value) Unsafe version ofbits_per_rgb. -
nmap_entries
public static void nmap_entries(long struct, int value) Unsafe version ofmap_entries.
-