Function jiao::core::annotation::annotate_rect_with_url

source ·
pub fn annotate_rect_with_url(
    _canvas: &mut Canvas,
    _rect: &Rect,
    _data: &mut Data
)
Expand description

Annotate the canvas by associating the specified URL with the specified rectangle (in local coordinates, just like draw_rect).

The URL is expected to be escaped and be valid 7-bit ASCII.

If the backend of this canvas does not support annotations, this call is safely ignored.

The caller is responsible for managing its ownership of the Data.