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

ImGui.ListClipper_SeekCursorForItem

  • 将光标移向指定项目。

    参数

    self

    此方法操作的 ImGuiListClipper 句柄。

    item_index
    number

    要包含或定位到的从零开始的项索引,须在裁剪器项数范围内。

    返回值

    void

    在步进过程中自动调用。

    • 事先不知道项目总数时,可使用 ImGui.ListClipper_Begin(self, 2147483647)。

    • 此时所有步进完成后,应调用 ImGui.ListClipper_SeekCursorForItem(self, item_count)。

    源码与继承

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