MCPcopy Create free account
hub / github.com/HumbleUI/Skija / annotateLinkToDestination

Method annotateLinkToDestination

shared/java/Canvas.java:1083–1091  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

executeMethod · 0.80

Calls 2

onNativeCallMethod · 0.95

Tested by 1

executeMethod · 0.64