Type Alias harfbuzz_sys::hb_unicode_decompose_func_t

source ·
pub type hb_unicode_decompose_func_t = Option<unsafe extern "C" fn(ufuncs: *mut hb_unicode_funcs_t, ab: hb_codepoint_t, a: *mut hb_codepoint_t, b: *mut hb_codepoint_t, user_data: *mut c_void) -> hb_bool_t>;
Expand description

hb_unicode_decompose_func_t: @ufuncs: A Unicode-functions structure @ab: The code point to decompose @a: (out): The first decomposed code point @b: (out): The second decomposed code point @user_data: user data pointer passed by the caller

A virtual method for the #hb_unicode_funcs_t structure.

This method should decompose an input Unicode code point, returning the two decomposed code points in #hb_codepoint_t output parameters (if successful). The method must return an #hb_bool_t indicating the success of the composition.

Return value: True if @ab decomposed, false otherwise

Aliased Type§

enum hb_unicode_decompose_func_t {
    None,
    Some(unsafe extern "C" fn(_: *mut hb_unicode_funcs_t, _: u32, _: *mut u32, _: *mut u32, _: *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut hb_unicode_funcs_t, _: u32, _: *mut u32, _: *mut u32, _: *mut c_void) -> i32)

Some value of type T.