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

ImGui.ListBoxCallbackEx

  • 带 JavaScript 取值回调的 ListBox。

    参数

    label
    string | Uint8Array

    标签。

    currentItem
    Int32Array

    当前选中项,长度为 1,可写回。

    itemsCount
    number

    条目数量。

    getter

    条目文本回调。

    userData
    null | bigint = null

    透传给回调的指针。

    heightInItems
    number = -1

    显示高度,单位为条目数。

    返回值

    boolean

    是否选中了条目。

    源码与继承

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