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

Method getRectsForRange

shared/java/paragraph/Paragraph.java:115–122  ·  view source on GitHub ↗

Returns a vector of bounding boxes that enclose all text between start and end char indices, including start and excluding end.

(int start, int end, RectHeightMode rectHeightMode, RectWidthMode rectWidthMode)

Source from the content-addressed store, hash-verified

113 * start and end char indices, including start and excluding end.
114 */
115 public TextBox[] getRectsForRange(int start, int end, RectHeightMode rectHeightMode, RectWidthMode rectWidthMode) {
116 try {
117 Stats.onNativeCall();
118 return _nGetRectsForRange(_ptr, start, end, rectHeightMode.ordinal(), rectWidthMode.ordinal());
119 } finally {
120 ReferenceUtil.reachabilityFence(this);
121 }
122 }
123
124 public TextBox[] getRectsForPlaceholders() {
125 try {

Calls 3

onNativeCallMethod · 0.95
_nGetRectsForRangeMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected