FoldView.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:incubator-netbeans 作者:
static TextHitInfo x2RelOffset(TextLayout textLayout, float x) {
    TextHitInfo hit;
    x -= EXTRA_MARGIN_WIDTH;
    if (x >= textLayout.getAdvance()) {
        hit = TextHitInfo.trailing(textLayout.getCharacterCount());
    } else {
        hit = textLayout.hitTestChar(x, 0); // What about backward bias -> with higher offsets it may go back visually
    }
    return hit;

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号