pub unsafe extern "C" fn fz_unshare_stroke_state(
    ctx: *mut fz_context,
    shared: *mut fz_stroke_state
) -> *mut fz_stroke_state
Expand description

Given a reference to a (possibly) shared stroke_state structure, return a reference to an equivalent stroke_state structure that is guaranteed to be unshared (i.e. one that can safely be modified).

shared: The reference to a (possibly) shared structure to unshare. Ownership of this reference is passed in to this function, even in the case of exceptions being thrown.

Exceptions may be thrown in the event of failure to allocate if required.