Package org.freedesktop.harfbuzz
Class OtColorLayer
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.OtColorLayer
- All Implemented Interfaces:
Proxy
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.
-
Constructor Summary
ConstructorDescriptionAllocate a new OtColorLayer.OtColorLayer
(Arena arena) Allocate a new OtColorLayer.OtColorLayer
(MemorySegment address) Create a OtColorLayer proxy instance for the provided memory address.OtColorLayer
(Codepoint glyph, int colorIndex) Allocate a new OtColorLayer with the fields set to the provided values.OtColorLayer
(Codepoint glyph, int colorIndex, Arena arena) Allocate a new OtColorLayer with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.int
Read the value of the fieldcolor_index
.Read the value of the fieldglyph
.void
writeColorIndex
(int colorIndex) Write a value in the fieldcolor_index
.void
writeGlyph
(Codepoint glyph) Write a value in the fieldglyph
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
OtColorLayer
Create a OtColorLayer proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
OtColorLayer
Allocate a new OtColorLayer.- Parameters:
arena
- to control the memory allocation scope
-
OtColorLayer
public OtColorLayer()Allocate a new OtColorLayer. The memory is allocated withArena.ofAuto()
. -
OtColorLayer
-
OtColorLayer
Allocate a new OtColorLayer with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
glyph
- value for the fieldglyph
colorIndex
- value for the fieldcolorIndex
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readGlyph
Read the value of the fieldglyph
.- Returns:
- The value of the field
glyph
-
writeGlyph
Write a value in the fieldglyph
.- Parameters:
glyph
- The new value for the fieldglyph
-
readColorIndex
public int readColorIndex()Read the value of the fieldcolor_index
.- Returns:
- The value of the field
color_index
-
writeColorIndex
public void writeColorIndex(int colorIndex) Write a value in the fieldcolor_index
.- Parameters:
colorIndex
- The new value for the fieldcolor_index
-