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