MCPcopy Create free account
hub / github.com/JetBrains/skija / getLeftOffsetAtCoord

Method getLeftOffsetAtCoord

shared/java/TextLine.java:145–152  ·  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

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

Callers 2

testAbcMethod · 0.80
drawLineMethod · 0.80

Calls 2

onNativeCallMethod · 0.95

Tested by 1

testAbcMethod · 0.64