LIBRSVG: C library for rendering SVG

LIBRSVG 2.62.3 C library for rendering SVG

Loading...
Searching...
No Matches
Functions
Cancel
librsvg

Interrupt rendering from another thread. More...

## Functions
void | rsvg_handle_set_cancellable_for_rendering (RsvgHandle *handle, GCancellable *cancellable)
| Interrupt rendering from another thread.

## Detailed Description

Interrupt rendering from another thread.

## Function Documentation

## ◆ rsvg_handle_set_cancellable_for_rendering()

void rsvg_handle_set_cancellable_for_rendering | ( | RsvgHandle * | handle,
|  | GCancellable * | cancellable
| ) |  |

`#include <rsvg.h>`

Interrupt rendering from another thread.

@handle: A #RsvgHandle @cancellable: (nullable): a #GCancellable or NULL

Sets a cancellable that can interrupt rendering while the handle is being rendered in another thread. Call g_cancellable_cancel() from another thread to stop rendering.

If rendering is interrupted, rsvg_handle_render_document() and the other rendering functions return an error with domain #G_IO_ERROR and code #G_IO_ERROR_CANCELLED.

Since
  2.59