Skip to main content

link_to_destination

Function link_to_destination 

pub fn link_to_destination(
    canvas: &Canvas,
    rect: impl AsRef<Rect>,
    data: &RCHandle<SkData>,
)
Expand description

Annotates the canvas by making the specified rectangle link to a named destination.

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

  • canvas canvas to annotate
  • rect rectangle to link
  • data destination name data