Package org.lwjgl.util.freetype
Class FT_Incremental_Funcs
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FT_Incremental_FuncsRec {
{@link FT_Incremental_GetGlyphDataFuncI FT_Incremental_GetGlyphDataFunc} get_glyph_data;
{@link FT_Incremental_FreeGlyphDataFuncI FT_Incremental_FreeGlyphDataFunc} free_glyph_data;
{@link FT_Incremental_GetGlyphMetricsFuncI FT_Incremental_GetGlyphMetricsFunc} get_glyph_metrics;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFT_Incremental_Funcs
(ByteBuffer container) Creates aFT_Incremental_Funcs
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Incremental_Funcs
calloc()
Returns a newFT_Incremental_Funcs
instance allocated withmemCalloc
.static FT_Incremental_Funcs.Buffer
calloc
(int capacity) Returns a newFT_Incremental_Funcs.Buffer
instance allocated withmemCalloc
.static FT_Incremental_Funcs.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFT_Incremental_Funcs.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Incremental_Funcs
calloc
(MemoryStack stack) Returns a newFT_Incremental_Funcs
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Incremental_Funcs
create()
Returns a newFT_Incremental_Funcs
instance allocated withBufferUtils
.static FT_Incremental_Funcs.Buffer
create
(int capacity) Returns a newFT_Incremental_Funcs.Buffer
instance allocated withBufferUtils
.static FT_Incremental_Funcs
create
(long address) Returns a newFT_Incremental_Funcs
instance for the specified memory address.static FT_Incremental_Funcs.Buffer
create
(long address, int capacity) Create aFT_Incremental_Funcs.Buffer
instance at the specified memory.static @Nullable FT_Incremental_Funcs
createSafe
(long address) static @Nullable FT_Incremental_Funcs.Buffer
createSafe
(long address, int capacity) Sets the specified value to thefree_glyph_data
field.Sets the specified value to theget_glyph_data
field.@Nullable FT_Incremental_GetGlyphMetricsFunc
get_glyph_metrics
(@Nullable FT_Incremental_GetGlyphMetricsFuncI value) Sets the specified value to theget_glyph_metrics
field.static FT_Incremental_Funcs
malloc()
Returns a newFT_Incremental_Funcs
instance allocated withmemAlloc
.static FT_Incremental_Funcs.Buffer
malloc
(int capacity) Returns a newFT_Incremental_Funcs.Buffer
instance allocated withmemAlloc
.static FT_Incremental_Funcs.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFT_Incremental_Funcs.Buffer
instance allocated on the specifiedMemoryStack
.static FT_Incremental_Funcs
malloc
(MemoryStack stack) Returns a newFT_Incremental_Funcs
instance allocated on the specifiedMemoryStack
.nfree_glyph_data
(long struct) Unsafe version offree_glyph_data()
.static void
nfree_glyph_data
(long struct, FT_Incremental_FreeGlyphDataFuncI value) Unsafe version offree_glyph_data
.nget_glyph_data
(long struct) Unsafe version ofget_glyph_data()
.static void
nget_glyph_data
(long struct, FT_Incremental_GetGlyphDataFuncI value) Unsafe version ofget_glyph_data
.static @Nullable FT_Incremental_GetGlyphMetricsFunc
nget_glyph_metrics
(long struct) Unsafe version ofget_glyph_metrics()
.static void
nget_glyph_metrics
(long struct, @Nullable FT_Incremental_GetGlyphMetricsFuncI value) Unsafe version ofget_glyph_metrics
.set
(FT_Incremental_Funcs src) Copies the specified struct data to this struct.set
(FT_Incremental_GetGlyphDataFuncI get_glyph_data, FT_Incremental_FreeGlyphDataFuncI free_glyph_data, FT_Incremental_GetGlyphMetricsFuncI get_glyph_metrics) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
GET_GLYPH_DATA
public static final int GET_GLYPH_DATAThe struct member offsets. -
FREE_GLYPH_DATA
public static final int FREE_GLYPH_DATAThe struct member offsets. -
GET_GLYPH_METRICS
public static final int GET_GLYPH_METRICSThe struct member offsets.
-
-
Constructor Details
-
FT_Incremental_Funcs
Creates aFT_Incremental_Funcs
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<FT_Incremental_Funcs>
-
get_glyph_data
- Returns:
- the value of the
get_glyph_data
field.
-
free_glyph_data
- Returns:
- the value of the
free_glyph_data
field.
-
get_glyph_metrics
- Returns:
- the value of the
get_glyph_metrics
field.
-
get_glyph_data
Sets the specified value to theget_glyph_data
field. -
free_glyph_data
Sets the specified value to thefree_glyph_data
field. -
get_glyph_metrics
Sets the specified value to theget_glyph_metrics
field. -
set
public FT_Incremental_Funcs set(FT_Incremental_GetGlyphDataFuncI get_glyph_data, FT_Incremental_FreeGlyphDataFuncI free_glyph_data, FT_Incremental_GetGlyphMetricsFuncI get_glyph_metrics) 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 newFT_Incremental_Funcs
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFT_Incremental_Funcs
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFT_Incremental_Funcs
instance allocated withBufferUtils
. -
create
Returns a newFT_Incremental_Funcs
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Incremental_Funcs.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFT_Incremental_Funcs.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFT_Incremental_Funcs.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFT_Incremental_Funcs.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Incremental_Funcs
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFT_Incremental_Funcs
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFT_Incremental_Funcs.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFT_Incremental_Funcs.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nget_glyph_data
Unsafe version ofget_glyph_data()
. -
nfree_glyph_data
Unsafe version offree_glyph_data()
. -
nget_glyph_metrics
Unsafe version ofget_glyph_metrics()
. -
nget_glyph_data
Unsafe version ofget_glyph_data
. -
nfree_glyph_data
Unsafe version offree_glyph_data
. -
nget_glyph_metrics
public static void nget_glyph_metrics(long struct, @Nullable FT_Incremental_GetGlyphMetricsFuncI value) Unsafe version ofget_glyph_metrics
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-