fz_match_callback_fn

Type Alias fz_match_callback_fn 

Source
pub type fz_match_callback_fn = Option<unsafe extern "C" fn(ctx: *mut fz_context, opaque: *mut c_void, num_quads: c_int, hit_bbox: *mut fz_quad, chapter: c_int, page: c_int) -> c_int>;
Expand description

Callback function for use in searching.

Called with the list of quads that correspond to a single hit.

The callback should return with 0 to continue the search, or 1 to abort it.
All other values are reserved at this point.

Aliased Type§

pub enum fz_match_callback_fn {
    None,
    Some(unsafe extern "C" fn(*mut fz_context, *mut c_void, i32, *mut fz_quad, i32, i32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut fz_context, *mut c_void, i32, *mut fz_quad, i32, i32) -> i32)

Some value of type T.