Package org.lwjgl.util.harfbuzz
Class hb_ot_color_layer_t
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<hb_ot_color_layer_t>
org.lwjgl.util.harfbuzz.hb_ot_color_layer_t
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class hb_ot_color_layer_t
extends org.lwjgl.system.Struct<hb_ot_color_layer_t>
implements org.lwjgl.system.NativeResource
Pairs of glyph and color index.
A color index of 0xFFFF does not refer to a palette color, but indicates that the foreground color should be used.
Layout
struct hb_ot_color_layer_t {
hb_codepoint_t glyph();
unsigned int color_index();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionhb_ot_color_layer_t(ByteBuffer container) Creates ahb_ot_color_layer_tinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic hb_ot_color_layer_tcalloc()Returns a newhb_ot_color_layer_tinstance allocated withmemCalloc.static hb_ot_color_layer_t.Buffercalloc(int capacity) Returns a newhb_ot_color_layer_t.Bufferinstance allocated withmemCalloc.static hb_ot_color_layer_t.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newhb_ot_color_layer_t.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static hb_ot_color_layer_tcalloc(org.lwjgl.system.MemoryStack stack) Returns a newhb_ot_color_layer_tinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intthe palette color index of the layercolor_index(int value) Sets the specified value to thecolor_index()field.static hb_ot_color_layer_tcreate()Returns a newhb_ot_color_layer_tinstance allocated withBufferUtils.static hb_ot_color_layer_t.Buffercreate(int capacity) Returns a newhb_ot_color_layer_t.Bufferinstance allocated withBufferUtils.static hb_ot_color_layer_tcreate(long address) Returns a newhb_ot_color_layer_tinstance for the specified memory address.static hb_ot_color_layer_t.Buffercreate(long address, int capacity) Create ahb_ot_color_layer_t.Bufferinstance at the specified memory.static @Nullable hb_ot_color_layer_tcreateSafe(long address) static @Nullable hb_ot_color_layer_t.BuffercreateSafe(long address, int capacity) intglyph()the glyph ID of the layerglyph(int value) Sets the specified value to theglyph()field.static hb_ot_color_layer_tmalloc()Returns a newhb_ot_color_layer_tinstance allocated withmemAlloc.static hb_ot_color_layer_t.Buffermalloc(int capacity) Returns a newhb_ot_color_layer_t.Bufferinstance allocated withmemAlloc.static hb_ot_color_layer_t.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newhb_ot_color_layer_t.Bufferinstance allocated on the specifiedMemoryStack.static hb_ot_color_layer_tmalloc(org.lwjgl.system.MemoryStack stack) Returns a newhb_ot_color_layer_tinstance allocated on the specifiedMemoryStack.static intncolor_index(long struct) Unsafe version ofcolor_index().static voidncolor_index(long struct, int value) Unsafe version ofcolor_index.static intnglyph(long struct) Unsafe version ofglyph().static voidnglyph(long struct, int value) Unsafe version ofglyph.set(int glyph, int color_index) Initializes this struct with the specified values.set(hb_ot_color_layer_t src) Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
GLYPH
public static final int GLYPHThe struct member offsets. -
COLOR_INDEX
public static final int COLOR_INDEXThe struct member offsets.
-
-
Constructor Details
-
hb_ot_color_layer_t
Creates ahb_ot_color_layer_tinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<hb_ot_color_layer_t>
-
glyph
public int glyph()the glyph ID of the layer -
color_index
public int color_index()the palette color index of the layer -
glyph
Sets the specified value to theglyph()field. -
color_index
Sets the specified value to thecolor_index()field. -
set
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 newhb_ot_color_layer_tinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newhb_ot_color_layer_tinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newhb_ot_color_layer_tinstance allocated withBufferUtils. -
create
Returns a newhb_ot_color_layer_tinstance for the specified memory address. -
createSafe
-
malloc
Returns a newhb_ot_color_layer_t.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newhb_ot_color_layer_t.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newhb_ot_color_layer_t.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create ahb_ot_color_layer_t.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newhb_ot_color_layer_tinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newhb_ot_color_layer_tinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newhb_ot_color_layer_t.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newhb_ot_color_layer_t.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nglyph
public static int nglyph(long struct) Unsafe version ofglyph(). -
ncolor_index
public static int ncolor_index(long struct) Unsafe version ofcolor_index(). -
nglyph
public static void nglyph(long struct, int value) Unsafe version ofglyph. -
ncolor_index
public static void ncolor_index(long struct, int value) Unsafe version ofcolor_index.
-