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

Method getLeftOffsetAtCoord

shared/java/TextLine.java:144–151  ·  view source on GitHub ↗

@param x coordinate in px @return UTF-16 offset of glyph strictly left of coord

(float x)

Source from the content-addressed store, hash-verified

142 * @return UTF-16 offset of glyph strictly left of coord
143 */
144 public int getLeftOffsetAtCoord(float x) {
145 try {
146 Stats.onNativeCall();
147 return _nGetLeftOffsetAtCoord(_ptr, x);
148 } finally {
149 ReferenceUtil.reachabilityFence(this);
150 }
151 }
152
153 /**
154 * @param offset UTF-16 character offset

Callers 2

testAbcMethod · 0.80
drawLineMethod · 0.80

Calls 3

onNativeCallMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 1

testAbcMethod · 0.64