Function mupdf_sys::fz_walk_path

source ·
pub unsafe extern "C" fn fz_walk_path(
    ctx: *mut fz_context,
    path: *const fz_path,
    walker: *const fz_path_walker,
    arg: *mut c_void
)
Expand description

Walk the segments of a path, calling the appropriate callback function from a given set for each segment of the path.

path: The path to walk.

walker: The set of callback functions to use. The first 4 callback pointers in the set must be non-NULL. The subsequent ones can either be supplied, or can be left as NULL, in which case the top 4 functions will be called as appropriate to simulate them.

arg: An opaque argument passed in to each callback.

Exceptions will only be thrown if the underlying callback functions throw them.