API 参考
正在准备搜索索引…

ImGui.CalcTextSize

  • 计算文本尺寸。

    参数

    text
    string | Uint8Array

    要读取的 UTF-8 文本。JS 字符串为本次调用编码;非空且以 NUL 结束的 Uint8Array 直接传入,否则复制字节并补上 NUL。

    返回值

    测量的文字范围的像素尺寸副本 {x: width, y: height}。

    文本工具。

    隐含参数:text_end = null, hide_text_after_double_hash = false, wrap_width = -1.0。

    源码与继承

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0