For the PDF backend, makes a link over the given rectangle that goes to the respective Canvas#annotateNamedDestination. Does nothing on other backends.
(@NotNull Rect r, @NotNull String name)
| 1081 | * Does nothing on other backends. |
| 1082 | */ |
| 1083 | @NotNull @Contract("_, _ -> this") |
| 1084 | public Canvas annotateLinkToDestination(@NotNull Rect r, @NotNull String name) { |
| 1085 | assert _ptr != 0 : "Canvas is closed"; |
| 1086 | assert r != null : "Can’t annotateLinkToDestination with r == null"; |
| 1087 | assert name != null : "Can’t annotateLinkToDestination with name == null"; |
| 1088 | Stats.onNativeCall(); |
| 1089 | _nAnnotateLinkToDestination(_ptr, r._left, r._top, r._right, r._bottom, name); |
| 1090 | return this; |
| 1091 | } |
| 1092 | |
| 1093 | /** |
| 1094 | * Replaces Matrix with matrix. |