Top Description Fields Methods
org.lwjgl.util.harfbuzz

public Interface hb_font_paint_glyph_func_tI

extends CallbackI
Known Direct Implementers
org.lwjgl.util.harfbuzz.hb_font_paint_glyph_func_t
Annotations
@FunctionalInterface
@NativeType:hb_font_paint_glyph_func_t
Imports
org.lwjgl.system.*, org.lwjgl.system.libffi.*

Type


void (*invoke) (
    hb_font_t *font,
    void *font_data,
    hb_codepoint_t glyph,
    hb_paint_funcs_t *paint_funcs,
    void *paint_data,
    unsigned int palette_index,
    hb_color_t foreground,
    void *user_data
)

Field Summary

Modifier and TypeField and Description
public static final FFICIF

Method Summary

Modifier and TypeMethod and Description
public default void
callback(long
a pointer to the memory used for the function's return value.

If the function is declared as returning void, then this value is garbage and should not be used.

Otherwise, the callback must fill the object to which this points, following the same special promotion behavior as LibFFI#ffi_call. That is, in most cases, ret points to an object of exactly the size of the type specified when CIF was constructed. However, integral types narrower than the system register size are widened. In these cases your program may assume that ret points to an ffi_arg object.

ret
,
long
a vector of pointers to memory holding the arguments to the function
args
)

Implements org.lwjgl.system.CallbackI.callback.

The Java method that will be called from native code when the native callback function is invoked.
public default FFICIF
getCallInterface()

Implements org.lwjgl.system.CallbackI.getCallInterface.

Returns the libffi Call Interface for this callback function.
public void
invoke(long
hb_font_t to work upon
font
,
long
user data pointer
font_data
,
int
the glyph ID to query
glyph
,
long
the paint functions to use
paint_funcs
,
long
the data accompanying the paint functions
paint_data
,
int
the color palette to use
palette_index
,
int
the foreground color
foreground
,
long
user data pointer passed by the caller
user_data
)

A virtual method for the hb_font_funcs_t of an hb_font_t object.

Inherited from org.lwjgl.system.CallbackI:
address

Field Detail

CIFback to summary
public static final FFICIF CIF

Method Detail

callbackback to summary
public default void callback(long ret, long args)

Implements org.lwjgl.system.CallbackI.callback.

Doc from org.lwjgl.system.CallbackI.callback.

The Java method that will be called from native code when the native callback function is invoked.

Parameters
ret:long

a pointer to the memory used for the function's return value.

If the function is declared as returning void, then this value is garbage and should not be used.

Otherwise, the callback must fill the object to which this points, following the same special promotion behavior as LibFFI#ffi_call. That is, in most cases, ret points to an object of exactly the size of the type specified when CIF was constructed. However, integral types narrower than the system register size are widened. In these cases your program may assume that ret points to an ffi_arg object.

args:long

a vector of pointers to memory holding the arguments to the function

Annotations
@Override
getCallInterfaceback to summary
public default FFICIF getCallInterface()

Implements org.lwjgl.system.CallbackI.getCallInterface.

Doc from org.lwjgl.system.CallbackI.getCallInterface.

Returns the libffi Call Interface for this callback function. [INTERNAL API]

Returns:FFICIF

the CIF structure for this callback function

Annotations
@Override
invokeback to summary
public void invoke(long font, long font_data, int glyph, long paint_funcs, long paint_data, int palette_index, int foreground, long user_data)

A virtual method for the hb_font_funcs_t of an hb_font_t object.

Parameters
font:long

hb_font_t to work upon

font_data:long

user data pointer

glyph:int

the glyph ID to query

paint_funcs:long

the paint functions to use

paint_data:long

the data accompanying the paint functions

palette_index:int

the color palette to use

foreground:int

the foreground color

user_data:long

user data pointer passed by the caller